Changeset 5381 for main/waeup.sirp/trunk/src
- Timestamp:
- 7 Aug 2010, 14:09:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.py
r5155 r5381 7 7 from waeup.sirp.browser.pages import UniversityPage 8 8 from waeup.sirp.browser.viewlets import ( 9 AdminTask, AddActionButton, SearchActionButton, LeftSidebar, BatchOpButton)9 AdminTask, AddActionButton, SearchActionButton, BatchOpButton, ManageLink) 10 10 from waeup.sirp.interfaces import IWAeUPObject, IUniversity 11 11 … … 205 205 text = 'Search Scratch Cards' 206 206 207 class ManageAccessCodes(grok.Viewlet): 208 """Link on front page to access code management. 209 """ 210 grok.viewletmanager(LeftSidebar) 211 grok.context(IUniversity) 212 grok.view(UniversityPage) 207 class ManageAccessCodes(ManageLink): 208 """Link in upper left box to access code management. 209 """ 213 210 grok.order(6) 214 211 grok.require('waeup.manageACBatches') 215 212 216 def render(self):217 return u'<div class="portlet"><a href="accesscodes">Manage access-codes</a></div>'213 link = u'accesscodes' 214 text = u'Manage access-codes'
Note: See TracChangeset for help on using the changeset viewer.