Changeset 6937 for main/waeup.sirp/trunk/src
- Timestamp:
- 25 Oct 2011, 05:40:59 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/__init__.py
r6936 r6937 18 18 from waeup.sirp.accesscodes.accesscode import ( 19 19 get_access_code, invalidate_accesscode, disable_accesscode, 20 reenable_accesscode, purchase_accesscode,20 reenable_accesscode, create_accesscode, 21 21 AccessCode, AccessCodeBatch, AccessCodeBatchContainer) 22 22 … … 30 30 'disable_accesscode', 31 31 'reenable_accesscode', 32 ' purchase_accesscode',32 'create_accesscode', 33 33 ] -
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscode.py
r6936 r6937 549 549 return fire_transition(access_code, 'reenable', comment=comment) 550 550 551 def purchase_accesscode(batch_prefix, batch_num, owner):551 def create_accesscode(batch_prefix, batch_num, owner): 552 552 """ 553 553 """ -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r6936 r6937 22 22 from zope.component import createObject 23 23 from waeup.sirp.accesscodes import ( 24 invalidate_accesscode, get_access_code, purchase_accesscode)24 invalidate_accesscode, get_access_code, create_accesscode) 25 25 from waeup.sirp.accesscodes.workflow import USED 26 26 from waeup.sirp.browser import ( … … 933 933 if self.context.p_category == 'clearance': 934 934 # Create CLR access code 935 pin, error = purchase_accesscode('CLR',0,student.student_id)935 pin, error = create_accesscode('CLR',0,student.student_id) 936 936 if error: 937 937 self.flash(error) … … 941 941 elif self.context.p_category == 'schoolfee': 942 942 # Create SFE access code 943 pin, error = purchase_accesscode('SFE',0)943 pin, error = create_accesscode('SFE',0) 944 944 if error: 945 945 self.flash(error)
Note: See TracChangeset for help on using the changeset viewer.