Changeset 6406 for main/waeup.sirp/branches/accesscodes-with-workflow/src/waeup/sirp/accesscodes/accesscodes.py
- Timestamp:
- 19 Jun 2011, 13:30:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/accesscodes-with-workflow/src/waeup/sirp/accesscodes/accesscodes.py
r6403 r6406 6 6 from BTrees.OIBTree import OIBTree 7 7 from datetime import datetime 8 from hurry.workflow.interfaces import IWorkflowInfo, InvalidTransitionError 8 from hurry.workflow.interfaces import ( 9 IWorkflowInfo, InvalidTransitionError, IWorkflowState 10 ) 9 11 from random import SystemRandom as random 10 from waeup.sirp.interfaces import IWAeUPSIRPPluggable 12 from waeup.sirp.interfaces import IWAeUPSIRPPluggable, IObjectHistory 11 13 from waeup.sirp.accesscodes.interfaces import ( 12 14 IAccessCode, IAccessCodeBatch, IAccessCodeBatchContainer … … 51 53 return None 52 54 return self.batch.cost 55 56 @property 57 def state(self): 58 state = IWorkflowState(self).getState() 59 return state 60 61 @property 62 def history(self): 63 history = IObjectHistory(self) 64 return history 53 65 54 66 class AccessCodeBatch(grok.Model):
Note: See TracChangeset for help on using the changeset viewer.