Changeset 4095 for waeup/branches


Ignore:
Timestamp:
26 Apr 2009, 20:31:48 (16 years ago)
Author:
uli
Message:

Add first view/viewlet for user container.

File:
1 edited

Legend:

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

    r4089 r4095  
    44from waeup.authentication import Account
    55from waeup.interfaces import IUserContainer
     6from waeup.viewlets import LeftSidebar, MainArea, Index
    67
    78class UserContainer(grok.Container):
     
    2627        if name in self.keys():
    2728            del self[name]
     29
     30class UserContainerView(Index):
     31    grok.require('waeup.manageUsers')
     32    grok.context(IUserContainer)
     33    grok.name('index')
     34    def render(self, *args, **kw):
     35        return super(UserContainerView, self).render(*args, **kw)
     36   
     37class UserContainerMain(grok.Viewlet):
     38    grok.require('waeup.manageUsers')
     39    grok.viewletmanager(MainArea)
     40    grok.template('usermain')
     41
     42
Note: See TracChangeset for help on using the changeset viewer.