Changeset 4444
- Timestamp:
- 27 Jul 2009, 14:59:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/department.py
r4371 r4444 6 6 from zope.interface import implementedBy 7 7 from waeup.interfaces import IDepartment 8 from waeup.widgets.interfaces import ITableProvider 8 9 from waeup.viewlets import MainArea, LeftSidebar, Index, FormWrapMixin, Manage 9 10 … … 28 29 self.certificates.__parent__ = self 29 30 self.certificates.__name__ = 'certificates' 31 32 def traverse(self, name): 33 if name == 'courses': 34 return self.courses 35 elif name == 'certificates': 36 return self.certificates 37 return None 30 38 31 39 … … 60 68 # to be rendered in this viewlet. 61 69 70 class CourseList(grok.Viewlet): 71 grok.viewletmanager(MainArea) 72 grok.context(IDepartment) 73 grok.view(Index) 74 grok.order(3) 62 75 76 def update(self): 77 #pass 78 self.table = ITableProvider(self.context).getTable(view=self.view) 79 self.table.need() 80 81 82 63 83 class ManageForm(grok.EditForm): 64 84 """Manage the basic properties of a `Department` instance.
Note: See TracChangeset for help on using the changeset viewer.