Changeset 7686 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 23 Feb 2012, 09:34:11 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7652 r7686 35 35 from waeup.sirp.utils.helpers import attrs_to_fields 36 36 from waeup.sirp.applicants.interfaces import IApplicant, IApplicantEdit 37 from waeup.sirp.applicants.workflow import application_states_dict 37 38 38 39 class Applicant(grok.Container): … … 54 55 @property 55 56 def state(self): 56 state = IWorkflowState(self).getState() 57 return state 57 return IWorkflowState(self).getState() 58 59 @property 60 def translated_state(self): 61 return application_states_dict[self.state] 58 62 59 63 @property -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt
r7669 r7686 87 87 </td> 88 88 <td> 89 <span tal:replace="appl/ state">State89 <span tal:replace="appl/translated_state">State 90 90 </span> 91 91 </td> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r7652 r7686 23 23 from waeup.sirp.applicants.interfaces import IApplicantBaseData 24 24 from waeup.sirp.interfaces import IObjectHistory, ISIRPWorkflowInfo 25 from waeup.sirp.interfaces import MessageFactory as _ 25 26 from waeup.sirp.workflow import SIRPWorkflow, SIRPWorkflowInfo 26 27 … … 32 33 NOT_ADMITTED = 'not admitted' 33 34 CREATED = 'created' 35 36 application_states_dict = { 37 INITIALIZED: _('initialized'), 38 STARTED: _('started'), 39 PAID: _('paid'), 40 SUBMITTED: _('submitted'), 41 ADMITTED: _('admitted'), 42 NOT_ADMITTED: _('not admitted'), 43 CREATED: _('created'), 44 } 45 34 46 35 47 APPLICATION_TRANSITIONS = (
Note: See TracChangeset for help on using the changeset viewer.