Changeset 5073 for main/waeup.sirp


Ignore:
Timestamp:
23 Mar 2010, 14:34:47 (15 years ago)
Author:
uli
Message:

Add containers for accesscodes on creation of University objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r5068 r5073  
    33import grok
    44from random import SystemRandom as random
     5from waeup.sirp.interfaces import IWAeUPSIRPPluggable
    56from waeup.sirp.accesscodes.interfaces import IAccessCode, IAccessCodeBatch
    67
     
    6566                result += str(random().randint(0, 9))
    6667        return result
     68
     69class AccessCodeContainer(grok.Container):
     70    pass
     71
     72class AccessCodePlugin(grok.GlobalUtility):
     73    grok.name('accesscodes')
     74    grok.implements(IWAeUPSIRPPluggable)
     75
     76    def setup(self, site, name, logger):
     77        pass
     78
     79    def update(self, site, name, logger):
     80        pass
Note: See TracChangeset for help on using the changeset viewer.