Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py	(revision 10652)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py	(revision 10653)
@@ -115,2 +115,10 @@
             applicant_id=(None, None))
         return self.export(applicants, filepath)
+
+    def export_filtered(self, site, filepath=None, **kw):
+        """Export applicants in container.
+
+        If `filepath` is ``None``, a raw string with CSV data should
+        be returned.
+        """
+        return self.export(kw['container'].values(), filepath=filepath)
Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py	(revision 10652)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py	(revision 10653)
@@ -201,2 +201,33 @@
             in result)
         return
+
+    def test_export_filtered(self):
+        self.applicant = self.setup_applicant(self.applicant)
+        exporter = ApplicantsExporter()
+        exporter.export_filtered(self.app, self.outfile, container=self.container)
+        result = open(self.outfile, 'rb').read()
+        self.assertTrue(
+            'applicant_id,application_date,application_number,course1,course2,'
+            'course_admitted,date_of_birth,display_fullname,email,firstname,'
+            'history,lastname,locked,middlename,notice,password,phone,'
+            'reg_number,sex,state,'
+            'student_id,suspended,container_code\r\n'
+            'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,'
+            'Anna M. Tester,anna@sample.com,Anna,'
+            in result)
+        self.assertTrue(
+            'Application initialized by system\'],'
+            'Tester,0,M.,"Some notice\nin lines.",any password,'
+            '+234-123-12345#,123456,f,initialized,,0,dp2011\r\n'
+            in result)
+        # In empty container no applicants are exported
+        container = ApplicantsContainer()
+        exporter.export_filtered(self.app, self.outfile, container=container)
+        result = open(self.outfile, 'rb').read()
+        self.assertTrue(
+            'applicant_id,application_date,application_number,course1,'
+            'course2,course_admitted,date_of_birth,display_fullname,email,'
+            'firstname,history,lastname,locked,middlename,notice,password,'
+            'phone,reg_number,sex,state,student_id,suspended,container_code\r\n'
+            in result)
+        return
