Changeset 1106


Ignore:
Timestamp:
20 Dec 2006, 21:42:57 (18 years ago)
Author:
Henrik Bettermann
Message:

second bug removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r1101 r1106  
    1 ## Script (Python) "clearance_edit"
    2 ##bind container=container
    3 ##bind context=context
    4 ##bind namespace=
    5 ##bind script=script
    6 ##bind subpath=traverse_subpath
    7 ##parameters=REQUEST, acknowledge=None
    8 ##title=
    91# $Id$
    102"""
     
    116108            missing = False
    117109            for scan in required_scans:
    118                 if not hasattr(clear_doc,scan):
     110                if not getattr(clear_doc,scan):
    119111                    missing = True
    120112                    break
    121113            if not missing:
    122                 if not hasattr(clear_doc,"age_dec") and\
    123                 not hasattr(clear_doc,"birth_certificate"):
     114                if not getattr(clear_doc,"age_dec") and\
     115                not getattr(clear_doc,"birth_certificate"):
    124116                    missing = True
    125117            if missing:
    126118                logger.info('"%s","requested clearance with documents missing"' % (student_id))
    127                 psm = "You have not uploaded all necessary documents to request clearance"
     119                psm = "You have not uploaded all necessary documents to request clearance!"
    128120            else:
    129121                logger.info('"%s","requested clearance"' % (student_id))
     
    161153url = clear.absolute_url() + action + '?' + urlencode(args)
    162154REQUEST.RESPONSE.redirect(url)
     155
Note: See TracChangeset for help on using the changeset viewer.