Changeset 6522


Ignore:
Timestamp:
11 Jul 2011, 23:47:55 (13 years ago)
Author:
uli
Message:

Embed image storage in universities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/app.py

    r6362 r6522  
    22import logging
    33import os
     4from hurry.file.interfaces import IFileRetrieval
    45from zope.authentication.interfaces import IAuthentication
    56from zope.component import createObject, getUtilitiesFor
     
    89from waeup.sirp.authentication import setup_authentication
    910from waeup.sirp.datacenter import DataCenter
     11from waeup.sirp.imagestorage import ImageStorageFileRetrieval, ImageStorage
    1012from waeup.sirp.interfaces import (
    1113    IUniversity, IDataCenter, IWAeUPSIRPPluggable,
     
    2426        PluggableAuthentication, provides = IAuthentication,
    2527        setup = setup_authentication,)
     28
     29    grok.local_utility(
     30        ImageStorageFileRetrieval, provides = IFileRetrieval)
    2631
    2732    @property
     
    6570        self['users'] = UserContainer()
    6671        self['datacenter'] = DataCenter()
     72        self['images'] = ImageStorage()
    6773
    6874        self['students'] = createObject(u'waeup.StudentContainer')
Note: See TracChangeset for help on using the changeset viewer.