Changeset 4751 for waeup/branches
- Timestamp:
- 8 Jan 2010, 14:36:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/app.py
r4747 r4751 25 25 26 26 def setup(self): 27 self .students= createObject(u'waeup.StudentContainer')28 self .hostels= createObject(u'waeup.HostelContainer')27 self['students'] = createObject(u'waeup.StudentContainer') 28 self['hostels'] = createObject(u'waeup.HostelContainer') 29 29 self['faculties'] = createObject(u'waeup.FacultyContainer') 30 30 self['users'] = UserContainer() 31 31 self['datacenter'] = DataCenter() 32 33 def traverse(self, name):34 # If someone requests a subobject 'faculties', we return our35 # `faculties` attribute.36 if name == 'faculties':37 return self['faculties']38 elif name == 'hostels':39 return self.hostels40 elif name == 'students':41 return self.students42 elif name == 'users':43 return self['users']44 elif name == 'datacenter':45 return self['datacenter']46 return None
Note: See TracChangeset for help on using the changeset viewer.