Changeset 5464 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 22 Aug 2010, 14:26:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/jambtables/authentication.py
r5462 r5464 52 52 grok.implements(IApplicantPrincipalInfo) 53 53 54 # def __init__(self, id, title, description):55 # def __init__(self, reg_no, access_code):56 54 def __init__(self, access_code, jamb_reg_no=None): 57 55 self.id = principal_id(access_code, jamb_reg_no) … … 72 70 grok.implements(IApplicantPrincipal) 73 71 74 def __init__(self, reg_no, access_code): 75 self.id = '%s-%s' % (reg_no, access_code) 72 def __init__(self, access_code, reg_no, prefix=None): 73 self.id = principal_id(access_code, reg_no) 74 if prefix is not None: 75 self.id = '%s.%s' % (prefix, self.id) 76 76 self.title = u'Applicant' 77 77 self.description = u'An applicant' … … 100 100 def __call__(self, authentication): 101 101 principal = ApplicantPrincipal( 102 authentication.prefix + self.info.reg_no, 103 self.info.access_code 102 self.info.access_code, 103 self.info.reg_no, 104 authentication.prefix, 104 105 ) 105 106 notify(
Note: See TracChangeset for help on using the changeset viewer.