Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/export.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/export.py	(revision 17914)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/export.py	(revision 17915)
@@ -192,4 +192,40 @@
             MedicalHistoryExporter, self).mangle_value(
             value, name, context=context)
+
+def get_routingslip_exists(students, **kw):
+    """Get students with outstanding certificate courses.
+    """
+    students_with_slip = []
+    for student in students:
+        file_id = IFileStoreNameChooser(student).chooseName(
+            attr='routingslip.pdf')
+        os_path = getUtility(IExtFileStore)._pathFromFileID(file_id)
+        if os.path.exists(os_path):
+            students_with_slip.append(student)
+    return students_with_slip
+
+class RoutingSlipExporter(grok.GlobalUtility, StudentExporterBase):
+    """
+    """
+    grok.name('routingslip')
+
+    fields = ('student_id',)
+    title = 'Routing Slip Exists'
+
+    def filter_func(self, x, **kw):
+        return get_routingslip_exists(x, **kw)
+
+    #def mangle_value(self, value, name, context=None):
+    #    if name == 'routing_slip':
+    #        file_id = IFileStoreNameChooser(context).chooseName(
+    #            attr='routingslip.pdf')
+    #        os_path = getUtility(IExtFileStore)._pathFromFileID(file_id)
+    #        if not os.path.exists(os_path):
+    #            value = None
+    #        else:
+    #            value = '1'
+    #    return super(
+    #        RoutingSlipExporter, self).mangle_value(
+    #        value, name, context=context)
 
 
Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py	(revision 17914)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py	(revision 17915)
@@ -877,4 +877,5 @@
             'trimmedpayments',
             'medicalhistory',
+            'routingslip',
             'nysc',
             )
