Changeset 4422 for waeup/branches/ulif-rewrite/src
- Timestamp:
- 23 Jul 2009, 12:44:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/faculty.py
r4248 r4422 2 2 from zope.component.interfaces import IFactory 3 3 from zope.component import createObject 4 from zope.interface import implementedBy 4 5 from waeup.interfaces import IFaculty, IDepartment 5 6 from waeup.viewlets import (MainArea, LeftSidebar, Index, FormWrapMixin, … … 20 21 def addDepartment(self, department): 21 22 if not IDepartment.providedBy(department): 22 raise TypeError('Facult ues contain only IDepartment instances')23 raise TypeError('Faculties contain only IDepartment instances') 23 24 self[department.code] = department 24 25 … … 37 38 description = u"This factory instantiates new faculty instances." 38 39 39 def __call__(self ):40 def __call__(self, *args, **kw): 40 41 return Faculty() 41 42
Note: See TracChangeset for help on using the changeset viewer.