Changeset 4474 for waeup


Ignore:
Timestamp:
28 Jul 2009, 15:36:25 (15 years ago)
Author:
uli
Message:

Manually set parent and name of facultycontainer when a university is
created. We need this to determine the URLs of subobjects, but it
should happen automatically. Is there a workaround?

File:
1 edited

Legend:

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

    r4463 r4474  
    3333        self.hostels = createObject(u'waeup.HostelContainer')
    3434        self.faculties = createObject(u'waeup.FacultyContainer')
     35        # TODO: We need this to get URLs of subobjects. Can we avoid it?
     36        self.faculties.__parent__ = self
     37        self.faculties.__name__ = 'faculties'
    3538        self.users = UserContainer()
    3639        self.datacenter = DataCenter()
Note: See TracChangeset for help on using the changeset viewer.