Ignore:
Timestamp:
9 Feb 2009, 22:18:43 (16 years ago)
Author:
uli
Message:

Make universioty containers real attributes.

File:
1 edited

Legend:

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

    r3930 r3955  
    1919
    2020    def setup(self):
    21         self["students"] = getUtility(IStudentContainer)
    22         self["hostels"] = getUtility(IHostelContainer)
     21        self.students = getUtility(IStudentContainer)
     22        self.hostels = getUtility(IHostelContainer)
    2323        self.faculties = getUtility(IFacultyContainer)
    2424
     
    2828        if name == 'faculties':
    2929            return self.faculties
     30        elif name == 'hostels':
     31            return self.hostels
     32        elif name == 'students':
     33            return self.students
    3034        return None
    3135       
Note: See TracChangeset for help on using the changeset viewer.