- Timestamp:
- 7 Feb 2009, 11:00:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/faculty.py
r3913 r3926 1 1 import grok 2 from waeup.basecontainer import BaseContainer3 2 from waeup.interfaces import IFaculty 3 from waeup.viewlets import MainArea, LeftSidebar, Index, FormWrapMixin 4 4 5 class Faculty( BaseContainer):5 class Faculty(grok.Container): 6 6 grok.implements(IFaculty) 7 7 … … 10 10 self.name = name 11 11 12 class Index(grok.DisplayForm): 12 class DisplayForm(grok.DisplayForm): 13 grok.context(IFaculty) 13 14 form_fields = grok.AutoFields(IFaculty) 14 15 16 class Content(FormWrapMixin, grok.Viewlet): 17 """A viewlet that wraps the `AddFacultyForm`. 18 """ 19 grok.viewletmanager(MainArea) 20 grok.context(IFaculty) 21 grok.view(Index) 22 grok.require('waeup.manageUniversity') 23 24 formview_name = 'displayform' # The name of the formview we want 25 # to be rendered in this viewlet. 26 15 27 grok.global_utility(Faculty, provides=IFaculty)
Note: See TracChangeset for help on using the changeset viewer.