Ignore:
Timestamp:
8 Jan 2010, 13:47:10 (15 years ago)
Author:
uli
Message:

Start switch to make main University subcontainers like faculties,
usercontainers, etc. real folder items and not attributes.

This way we get some advantages out of the box:

  • Subitems are indexed automatically when we create an appropriate catalog.
  • Location settings (parent, name) are set automatically.
File:
1 edited

Legend:

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

    r4703 r4742  
    3131        self.faculties.__parent__ = self
    3232        self.faculties.__name__ = 'faculties'
    33         self.users = UserContainer()
    34         self.users.__parent__ = self
    35         self.users.__name__ = 'users'
    36         self.datacenter = DataCenter()
    37         self.datacenter.__parent__ = self
    38         self.datacenter.__name__ = 'datacenter'
    39 
     33        self['users'] = UserContainer()
     34        self['datacenter'] = DataCenter()
     35 
    4036    def traverse(self, name):
    4137        # If someone requests a subobject 'faculties', we return our
     
    4844            return self.students
    4945        elif name == 'users':
    50             return self.users
     46            return self['users']
    5147        elif name == 'datacenter':
    52             return self.datacenter
     48            return self['datacenter']
    5349        return None
Note: See TracChangeset for help on using the changeset viewer.