Ignore:
Timestamp:
7 Feb 2009, 13:56:28 (16 years ago)
Author:
uli
Message:

Make faculties an attribute instead of a container entry.

File:
1 edited

Legend:

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

    r3928 r3930  
    2121        self["students"] = getUtility(IStudentContainer)
    2222        self["hostels"] = getUtility(IHostelContainer)
    23         self["faculties"] = getUtility(IFacultyContainer)
     23        self.faculties = getUtility(IFacultyContainer)
    2424
     25    def traverse(self, name):
     26        # If someone requests a subobject 'faculties', we return our
     27        # `faculties` attribute.
     28        if name == 'faculties':
     29            return self.faculties
     30        return None
    2531       
    2632       
Note: See TracChangeset for help on using the changeset viewer.