Changeset 4459
- Timestamp:
- 28 Jul 2009, 00:17:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/department.py
r4453 r4459 6 6 from zope.interface import implementedBy 7 7 from waeup.interfaces import IDepartment 8 from waeup.utils.helpers import getName 8 9 from waeup.widgets.interfaces import ITableProvider 9 10 from waeup.viewlets import MainArea, LeftSidebar, Index, FormWrapMixin, Manage … … 52 53 return implementedBy(Department) 53 54 54 55 class DisplayForm(grok.DisplayForm):56 grok.context(IDepartment)57 form_fields = grok.AutoFields(IDepartment)58 55 59 class Content( FormWrapMixin,grok.Viewlet):56 class Content(grok.Viewlet): 60 57 """A viewlet that wraps the `AddDepartmentForm`. 61 58 """ … … 68 65 # to be rendered in this viewlet. 69 66 67 def getName(self): 68 return getName(self.context) 69 70 def getParentName(self): 71 return getName(self.context.__parent__) 70 72 71 73 class CourseList(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.