Changeset 6937 for main/waeup.sirp/trunk


Ignore:
Timestamp:
25 Oct 2011, 05:40:59 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename purchase_accesscode create_accesscode.

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  
    1818from waeup.sirp.accesscodes.accesscode import (
    1919    get_access_code, invalidate_accesscode, disable_accesscode,
    20     reenable_accesscode, purchase_accesscode,
     20    reenable_accesscode, create_accesscode,
    2121    AccessCode, AccessCodeBatch, AccessCodeBatchContainer)
    2222
     
    3030    'disable_accesscode',
    3131    'reenable_accesscode',
    32     'purchase_accesscode',
     32    'create_accesscode',
    3333    ]
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscode.py

    r6936 r6937  
    549549    return fire_transition(access_code, 'reenable', comment=comment)
    550550
    551 def purchase_accesscode(batch_prefix, batch_num, owner):
     551def create_accesscode(batch_prefix, batch_num, owner):
    552552    """
    553553    """
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6936 r6937  
    2222from zope.component import createObject
    2323from waeup.sirp.accesscodes import (
    24     invalidate_accesscode, get_access_code, purchase_accesscode)
     24    invalidate_accesscode, get_access_code, create_accesscode)
    2525from waeup.sirp.accesscodes.workflow import USED
    2626from waeup.sirp.browser import (
     
    933933        if self.context.p_category == 'clearance':
    934934            # Create CLR access code
    935             pin, error = purchase_accesscode('CLR',0,student.student_id)
     935            pin, error = create_accesscode('CLR',0,student.student_id)
    936936            if error:
    937937                self.flash(error)
     
    941941        elif self.context.p_category == 'schoolfee':
    942942            # Create SFE access code
    943             pin, error = purchase_accesscode('SFE',0)
     943            pin, error = create_accesscode('SFE',0)
    944944            if error:
    945945                self.flash(error)
Note: See TracChangeset for help on using the changeset viewer.