- Timestamp:
- 5 Jan 2010, 10:34:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/datacenter.py
r4574 r4669 13 13 from zope.interface import Interface 14 14 from waeup.csvfile import getCSVFile 15 from waeup.interfaces import (I WAeUPObject, IWAeUPCSVImporter,15 from waeup.interfaces import (IDataCenter, IWAeUPObject, IWAeUPCSVImporter, 16 16 ICSVDataReceivers, IDataCenterFile) 17 17 from waeup.utils.helpers import copyFileSystemTree … … 21 21 """A data center contains CSV files. 22 22 """ 23 grok.implements(IDataCenter) 23 24 storage = os.path.join(os.path.dirname(__file__), 'files') 24 25 … … 207 208 class Content(grok.Viewlet): 208 209 grok.viewletmanager(MainArea) 209 grok.context( DataCenter)210 grok.context(IDataCenter) 210 211 grok.view(Index) 211 212 212 213 class Upload(grok.View): 213 grok.context( DataCenter)214 grok.context(IDataCenter) 214 215 grok.name('upload') 215 216 grok.template('master') … … 233 234 class UploadMain(grok.Viewlet): 234 235 grok.viewletmanager(MainArea) 235 grok.context( DataCenter)236 grok.context(IDataCenter) 236 237 grok.view(Upload) 237 238 238 239 239 240 class Settings(grok.View): 240 grok.context( DataCenter)241 grok.context(IDataCenter) 241 242 grok.name('settings') 242 243 grok.template('master') … … 268 269 class SettingsMain(grok.Viewlet): 269 270 grok.viewletmanager(MainArea) 270 grok.context( DataCenter)271 grok.context(IDataCenter) 271 272 grok.view(Settings) 272 273 273 274 class SettingsLink(grok.Viewlet): 274 275 grok.viewletmanager(LeftSidebar) 275 grok.context( DataCenter)276 grok.context(IDataCenter) 276 277 grok.view(Index) 277 278 grok.order(2) … … 287 288 grok.require('waeup.manageUniversity') 288 289 grok.template('master') 289 grok.context( DataCenter)290 grok.context(IDataCenter) 290 291 291 292 def update(self, csvfile=None, clear=None, overwrite=None, … … 323 324 class ImportCSVMain(grok.Viewlet): 324 325 grok.viewletmanager(MainArea) 325 grok.context( DataCenter)326 grok.context(IDataCenter) 326 327 grok.view(ImportCSV) 327 328 grok.require('waeup.manageUniversity')
Note: See TracChangeset for help on using the changeset viewer.