Changeset 7603 for main/waeup.custom


Ignore:
Timestamp:
8 Feb 2012, 09:51:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Also StudentFactory? must be customized. Otherwise the importer creates Student objects which implement IStudent of the base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/students/student.py

    r7525 r7603  
    4242# set.
    4343Student = attrs_to_fields(Student)
     44
     45class StudentFactory(StudentFactory):
     46    """A factory for students.
     47    """
     48
     49    def __call__(self, *args, **kw):
     50        return Student()
     51
     52    def getInterfaces(self):
     53        return implementedBy(Student)
Note: See TracChangeset for help on using the changeset viewer.