Changeset 6067 for main/waeup.sirp/trunk
- Timestamp:
- 13 May 2011, 05:54:32 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6063 r6067 80 80 MultiListDisplayWidget, subwidget=results_display_widget) 81 81 82 class Applica tionsPage(WAeUPPage):82 class ApplicantsRootPage(WAeUPPage): 83 83 grok.context(IApplicantsRoot) 84 84 grok.name('index') … … 87 87 88 88 def update(self): 89 super(Applica tionsPage, self).update()89 super(ApplicantsRootPage, self).update() 90 90 datatable.need() 91 91 return 92 92 93 def getApplications(self):94 """Get a list of all stored applicant containers.95 """96 for key, val in self.context.items():97 url = self.url(val)98 yield(dict(url=url, name=key, container=val))93 #def getApplications(self): 94 # """Get a list of all stored applicant containers. 95 # """ 96 # for key, val in self.context.items(): 97 # url = self.url(val) 98 # yield(dict(url=url, name=key, container=val)) 99 99 100 100 class ManageApplicantsRootActionButton(ManageActionButton): 101 101 grok.context(IApplicantsRoot) 102 grok.view(Applica tionsPage)102 grok.view(ApplicantsRootPage) 103 103 text = 'Manage applicant containers' 104 104 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootpage.pt
r6066 r6067 6 6 </thead> 7 7 <tbody> 8 <tr tal:repeat="entry view/getApplications"8 <tr tal:repeat="entry context/values" 9 9 class="gradeB"> 10 10 <td> 11 11 <a href="" 12 tal:attributes="href entry/url"12 tal:attributes="href python:view.url(entry)" 13 13 tal:content="entry/name" 14 14 >Name</a> 15 15 </td> 16 <td tal:content="entry/ container/title">16 <td tal:content="entry/title"> 17 17 Title 18 18 </td>
Note: See TracChangeset for help on using the changeset viewer.