Changeset 4149


Ignore:
Timestamp:
20 May 2009, 07:57:08 (16 years ago)
Author:
uli
Message:

Link datacenter to main app.

File:
1 edited

Legend:

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

    r4107 r4149  
    1010from waeup.viewlets import MainArea, LeftSidebar, Index, Manage, FormWrapMixin
    1111from waeup.authentication import setup_authentication
     12from waeup.datacenter import DataCenter
    1213from waeup.users import UserContainer
    1314
     
    3233        self.faculties = createObject(u'waeup.FacultyContainer')
    3334        self.users = UserContainer()
     35        self.datacenter = DataCenter()
    3436
    3537    def traverse(self, name):
     
    4446        elif name == 'users':
    4547            return self.users
     48        elif name == 'datacenter':
     49            return self.datacenter
    4650        return None
    4751       
     
    127131    def render(self):
    128132        return u'<div class="portlet"><a href="users">Manage users</a></div>'
     133
     134class ManageDataCenter(grok.Viewlet):
     135    grok.viewletmanager(LeftSidebar)
     136    grok.context(IUniversity)
     137    grok.view(Index)
     138    grok.order(6)
     139    grok.require('waeup.manageUniversity')
     140
     141    def render(self):
     142        return u'<div class="portlet"><a href="datacenter">Data Centre</a></div>'
     143
Note: See TracChangeset for help on using the changeset viewer.