Changeset 6822


Ignore:
Timestamp:
28 Sep 2011, 05:31:57 (13 years ago)
Author:
Henrik Bettermann
Message:

We need a StudentStudyCourseFactory? for imports (only).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/studycourse.py

    r6815 r6822  
    143143        'waeup.local.ClearanceOfficer')
    144144    return dept_officers + fac_officers
     145
     146class StudentStudyCourseFactory(grok.GlobalUtility):
     147    """A factory for students.
     148    """
     149    grok.implements(IFactory)
     150    grok.name(u'waeup.StudentStudyCourse')
     151    title = u"Create a new student study course.",
     152    description = u"This factory instantiates new student study course instances."
     153
     154    def __call__(self, *args, **kw):
     155        return StudentStudyCourse()
     156
     157    def getInterfaces(self):
     158        return implementedBy(StudentStudyCourse)
Note: See TracChangeset for help on using the changeset viewer.