Changeset 5073 for main/waeup.sirp
- Timestamp:
- 23 Mar 2010, 14:34:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py
r5068 r5073 3 3 import grok 4 4 from random import SystemRandom as random 5 from waeup.sirp.interfaces import IWAeUPSIRPPluggable 5 6 from waeup.sirp.accesscodes.interfaces import IAccessCode, IAccessCodeBatch 6 7 … … 65 66 result += str(random().randint(0, 9)) 66 67 return result 68 69 class AccessCodeContainer(grok.Container): 70 pass 71 72 class 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.