Index: /WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py	(revision 1105)
+++ /WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py	(revision 1106)
@@ -1,10 +1,2 @@
-## Script (Python) "clearance_edit"
-##bind container=container
-##bind context=context
-##bind namespace=
-##bind script=script
-##bind subpath=traverse_subpath
-##parameters=REQUEST, acknowledge=None
-##title=
 # $Id$
 """
@@ -116,14 +108,14 @@
             missing = False
             for scan in required_scans:
-                if not hasattr(clear_doc,scan):
+                if not getattr(clear_doc,scan):
                     missing = True
                     break
             if not missing:
-                if not hasattr(clear_doc,"age_dec") and\
-                not hasattr(clear_doc,"birth_certificate"):
+                if not getattr(clear_doc,"age_dec") and\
+                not getattr(clear_doc,"birth_certificate"):
                     missing = True
             if missing:
                 logger.info('"%s","requested clearance with documents missing"' % (student_id))
-                psm = "You have not uploaded all necessary documents to request clearance"
+                psm = "You have not uploaded all necessary documents to request clearance!"
             else:
                 logger.info('"%s","requested clearance"' % (student_id))
@@ -161,2 +153,3 @@
 url = clear.absolute_url() + action + '?' + urlencode(args)
 REQUEST.RESPONSE.redirect(url)
+
