Changeset 4669 for waeup/branches


Ignore:
Timestamp:
5 Jan 2010, 10:34:55 (15 years ago)
Author:
uli
Message:

Make use of new IDataCenter interface.

File:
1 edited

Legend:

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

    r4574 r4669  
    1313from zope.interface import Interface
    1414from waeup.csvfile import getCSVFile
    15 from waeup.interfaces import (IWAeUPObject, IWAeUPCSVImporter,
     15from waeup.interfaces import (IDataCenter, IWAeUPObject, IWAeUPCSVImporter,
    1616                              ICSVDataReceivers, IDataCenterFile)
    1717from waeup.utils.helpers import copyFileSystemTree
     
    2121    """A data center contains CSV files.
    2222    """
     23    grok.implements(IDataCenter)
    2324    storage = os.path.join(os.path.dirname(__file__), 'files')
    2425
     
    207208class Content(grok.Viewlet):
    208209    grok.viewletmanager(MainArea)
    209     grok.context(DataCenter)
     210    grok.context(IDataCenter)
    210211    grok.view(Index)
    211212
    212213class Upload(grok.View):
    213     grok.context(DataCenter)
     214    grok.context(IDataCenter)
    214215    grok.name('upload')
    215216    grok.template('master')
     
    233234class UploadMain(grok.Viewlet):
    234235    grok.viewletmanager(MainArea)
    235     grok.context(DataCenter)
     236    grok.context(IDataCenter)
    236237    grok.view(Upload)
    237238   
    238239
    239240class Settings(grok.View):
    240     grok.context(DataCenter)
     241    grok.context(IDataCenter)
    241242    grok.name('settings')
    242243    grok.template('master')
     
    268269class SettingsMain(grok.Viewlet):
    269270    grok.viewletmanager(MainArea)
    270     grok.context(DataCenter)
     271    grok.context(IDataCenter)
    271272    grok.view(Settings)
    272273
    273274class SettingsLink(grok.Viewlet):
    274275    grok.viewletmanager(LeftSidebar)
    275     grok.context(DataCenter)
     276    grok.context(IDataCenter)
    276277    grok.view(Index)
    277278    grok.order(2)
     
    287288    grok.require('waeup.manageUniversity')
    288289    grok.template('master')
    289     grok.context(DataCenter)
     290    grok.context(IDataCenter)
    290291
    291292    def update(self, csvfile=None, clear=None, overwrite=None,
     
    323324class ImportCSVMain(grok.Viewlet):
    324325    grok.viewletmanager(MainArea)
    325     grok.context(DataCenter)
     326    grok.context(IDataCenter)
    326327    grok.view(ImportCSV)
    327328    grok.require('waeup.manageUniversity')
Note: See TracChangeset for help on using the changeset viewer.