- Timestamp:
- 10 Jun 2011, 08:26:06 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicants.py
r6322 r6324 50 50 #Initialize workflow state... 51 51 IWorkflowInfo(self).fireTransition('init') 52 53 @property 54 def getApplicationState(self): 55 state = IWorkflowState(self).getState() 56 return state 52 57 53 58 # Set all attributes of Applicant required in IApplicant as field -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6322 r6324 470 470 return 'not yet admitted' 471 471 472 @property473 def getApplicationState(self):474 state = IWorkflowState(self.context).getState()475 return state472 #@property 473 #def getApplicationState(self): 474 # state = IWorkflowState(self.context).getState() 475 # return state 476 476 477 477 class ApplicantsManageActionButton(ManageActionButton): … … 522 522 return transitions 523 523 524 @property525 def getApplicationState(self):526 state = IWorkflowState(self.context).getState()527 return state524 #@property 525 #def getApplicationState(self): 526 # state = IWorkflowState(self.context).getState() 527 # return state 528 528 529 529 @grok.action('Save') -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt
r6206 r6324 82 82 </thead> 83 83 <tbody> 84 <tr tal:repeat="appl context/values"> <td> 85 <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> </td> <td> 84 <tr tal:repeat="appl context/values"> 85 <td> 86 <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> 87 </td> 88 <td> 86 89 <a tal:attributes="href python: view.url(appl)" 87 tal:content="appl/__name__"> ID </a> </td> <td>88 <span tal:condition="not: appl/locked">in progress89 </span>90 <span tal: condition="appl/locked">submitted91 </span></td>90 tal:content="appl/__name__"> ID </a> 91 </td> 92 <td> 93 <span tal:replace="appl/getApplicationState">state</span> 94 </td> 92 95 </tr> 93 96 </tbody> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_display.pt
r6323 r6324 3 3 tal:content="view/label">Label</h2> 4 4 5 <h2> ... <span tal:replace=" view/getApplicationState">Application State</span> ... </h2>5 <h2> ... <span tal:replace="context/getApplicationState">Application State</span> ... </h2> 6 6 7 7 <div class="workflow" tal:content="structure context/msgs">Application Workflow</div> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt
r6323 r6324 6 6 tal:content="view/label">Label</h2> 7 7 8 <h2> ... <span tal:replace=" view/getApplicationState">Application State</span> ... </h2>8 <h2> ... <span tal:replace="context/getApplicationState">Application State</span> ... </h2> 9 9 10 10 <div class="workflow" tal:content="structure context/msgs">Application Workflow</div> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6323 r6324 389 389 ) 390 390 391 def getApplicationState(): 392 """ 393 Returns the application state of an applicant. 394 """ 395 391 396 class IApplicant(IApplicantBaseData): 392 397 """An applicant.
Note: See TracChangeset for help on using the changeset viewer.