Changeset 4333 for waeup/branches


Ignore:
Timestamp:
22 Jun 2009, 12:57:54 (15 years ago)
Author:
uli
Message:

Make courses and certificates in departments know about their parent.

File:
1 edited

Legend:

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

    r4324 r4333  
    2020        self.code = code
    2121        self.courses = createObject(u'waeup.CourseContainer')
     22        self.courses.__parent__ = self
     23        self.courses.__name__ = 'courses'
    2224        self.certificates = createObject(u'waeup.CertificateContainer')
     25        self.certificates.__parent__ = self
     26        self.certificates.__name__ = 'certificates'
     27       
    2328
    2429class DepartmentFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.