Changeset 4747 for waeup/branches


Ignore:
Timestamp:
8 Jan 2010, 14:30:32 (15 years ago)
Author:
uli
Message:

Make faculties a container item instead of an attribute.

File:
1 edited

Legend:

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

    r4742 r4747  
    2727        self.students = createObject(u'waeup.StudentContainer')
    2828        self.hostels = createObject(u'waeup.HostelContainer')
    29         self.faculties = createObject(u'waeup.FacultyContainer')
    30         # TODO: We need this to get URLs of subobjects. Can we avoid it?
    31         self.faculties.__parent__ = self
    32         self.faculties.__name__ = 'faculties'
     29        self['faculties'] = createObject(u'waeup.FacultyContainer')
    3330        self['users'] = UserContainer()
    3431        self['datacenter'] = DataCenter()
     
    3835        # `faculties` attribute.
    3936        if name == 'faculties':
    40             return self.faculties
     37            return self['faculties']
    4138        elif name == 'hostels':
    4239            return self.hostels
Note: See TracChangeset for help on using the changeset viewer.