Changeset 5953


Ignore:
Timestamp:
20 Apr 2011, 21:46:16 (14 years ago)
Author:
uli
Message:

Let models implement also the appropriate I...Add interfaces.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/university
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py

    r5949 r5953  
    1212from zope.interface import implementedBy
    1313from waeup.sirp.university.interfaces import (
    14     ICertificate, ICertificateCourse, ICourse)
     14    ICertificate, ICertificateAdd, ICertificateCourse, ICourse)
    1515
    1616class Certificate(grok.Container):
    1717    """A certificate.
    1818    """
    19     grok.implements(ICertificate)
     19    grok.implements(ICertificate, ICertificateAdd)
    2020
    2121    def __init__(self, code=u'NA', title=u'Unnamed Certificate',
  • main/waeup.sirp/trunk/src/waeup/sirp/university/course.py

    r5944 r5953  
    44from zope.interface import implementedBy
    55from zope.component.interfaces import IFactory
    6 from waeup.sirp.university.interfaces import ICourse
     6from waeup.sirp.university.interfaces import ICourse, ICourseAdd
    77
    88class Course(grok.Model):
    99    """A university course.
    1010    """
    11     grok.implements(ICourse)
     11    grok.implements(ICourse, ICourseAdd)
    1212
    1313    def __init__(self,
  • main/waeup.sirp/trunk/src/waeup/sirp/university/department.py

    r5005 r5953  
    55from zope.component.interfaces import IFactory
    66from zope.interface import implementedBy
    7 from waeup.sirp.university.interfaces import IDepartment
     7from waeup.sirp.university.interfaces import IDepartment, IDepartmentAdd
    88
    99class Department(grok.Container):
    1010    """A university department.
    1111    """
    12     grok.implements(IDepartment)
     12    grok.implements(IDepartment, IDepartmentAdd)
    1313
    1414    # A simple counter for ids.
  • main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py

    r5915 r5953  
    55from zope.component.interfaces import IFactory
    66from zope.interface import implementedBy
    7 from waeup.sirp.university.interfaces import IFaculty, IDepartment
     7from waeup.sirp.university.interfaces import (
     8    IFaculty, IFacultyAdd, IDepartment)
    89
    910class Faculty(grok.Container):
    1011    """A university faculty.
    1112    """
    12     grok.implements(IFaculty)
     13    grok.implements(IFaculty, IFacultyAdd)
    1314
    1415    def __init__(self,
Note: See TracChangeset for help on using the changeset viewer.