Changeset 4084


Ignore:
Timestamp:
25 Apr 2009, 13:48:57 (16 years ago)
Author:
uli
Message:

Make use of the new factories.

File:
1 edited

Legend:

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

    r4074 r4084  
    33from zope.app.authentication.authentication import PluggableAuthentication
    44from zope.app.security.interfaces import IAuthentication
    5 from zope.component import getUtility, getMultiAdapter
     5from zope.component import getUtility, getMultiAdapter, createObject
    66from zope.interface import Interface
    77
     
    2727
    2828    def setup(self):
    29         self.students = getUtility(IStudentContainer)
    30         self.hostels = getUtility(IHostelContainer)
    31         self.faculties = getUtility(IFacultyContainer)
     29        self.students = createObject(u'waeup.StudentContainer')
     30        self.hostels = createObject(u'waeup.HostelContainer')
     31        self.faculties = createObject(u'waeup.FacultyContainer')
    3232
    3333    def traverse(self, name):
Note: See TracChangeset for help on using the changeset viewer.