Changeset 4149
- Timestamp:
- 20 May 2009, 07:57:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/app.py
r4107 r4149 10 10 from waeup.viewlets import MainArea, LeftSidebar, Index, Manage, FormWrapMixin 11 11 from waeup.authentication import setup_authentication 12 from waeup.datacenter import DataCenter 12 13 from waeup.users import UserContainer 13 14 … … 32 33 self.faculties = createObject(u'waeup.FacultyContainer') 33 34 self.users = UserContainer() 35 self.datacenter = DataCenter() 34 36 35 37 def traverse(self, name): … … 44 46 elif name == 'users': 45 47 return self.users 48 elif name == 'datacenter': 49 return self.datacenter 46 50 return None 47 51 … … 127 131 def render(self): 128 132 return u'<div class="portlet"><a href="users">Manage users</a></div>' 133 134 class ManageDataCenter(grok.Viewlet): 135 grok.viewletmanager(LeftSidebar) 136 grok.context(IUniversity) 137 grok.view(Index) 138 grok.order(6) 139 grok.require('waeup.manageUniversity') 140 141 def render(self): 142 return u'<div class="portlet"><a href="datacenter">Data Centre</a></div>' 143
Note: See TracChangeset for help on using the changeset viewer.