Changeset 4385 for waeup/branches


Ignore:
Timestamp:
28 Jun 2009, 00:06:21 (15 years ago)
Author:
uli
Message:

Fix certificate factory to comply with IFactory.

File:
1 edited

Legend:

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

    r4331 r4385  
    44from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    55from zope.component.interfaces import IFactory
     6from zope.interface import implementedBy
    67from waeup.interfaces import (ICertificate, ICertificateContainer,
    78                              ICertificateCourse, ICourse, IDepartment)
     
    6768    description = u"This factory instantiates new certificate instances."
    6869
    69     def __call__(self):
    70         return Certificate()
     70    def __call__(self, *args, **kw):
     71        return Certificate(*args, **kw)
    7172
    7273    def getInterfaces(self):
Note: See TracChangeset for help on using the changeset viewer.