Changeset 4422


Ignore:
Timestamp:
23 Jul 2009, 12:44:50 (15 years ago)
Author:
uli
Message:

Fix typo, make factory compatible with its interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/university/faculty.py

    r4248 r4422  
    22from zope.component.interfaces import IFactory
    33from zope.component import createObject
     4from zope.interface import implementedBy
    45from waeup.interfaces import IFaculty, IDepartment
    56from waeup.viewlets import (MainArea, LeftSidebar, Index, FormWrapMixin,
     
    2021    def addDepartment(self, department):
    2122        if not IDepartment.providedBy(department):
    22             raise TypeError('Facultues contain only IDepartment instances')
     23            raise TypeError('Faculties contain only IDepartment instances')
    2324        self[department.code] = department
    2425
     
    3738    description = u"This factory instantiates new faculty instances."
    3839
    39     def __call__(self):
     40    def __call__(self, *args, **kw):
    4041        return Faculty()
    4142
Note: See TracChangeset for help on using the changeset viewer.