Changeset 4577 for waeup/branches


Ignore:
Timestamp:
27 Dec 2009, 19:39:32 (15 years ago)
Author:
uli
Message:

Grokking will fail if we do not assign the master page template
directly here. That's odd.

File:
1 edited

Legend:

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

    r4115 r4577  
    66from waeup.authentication import Account
    77from waeup.interfaces import IUserContainer, IUserAccount
    8 from waeup.viewlets import LeftSidebar, MainArea, Index, Add, FormWrapMixin
     8from waeup.viewlets import (LeftSidebar, MainArea, Index, Add, FormWrapMixin,
     9                            master_template_path)
     10
     11master_template = grok.PageTemplateFile(master_template_path)
     12
    913
    1014class UserContainer(grok.Container):
     
    3438    grok.context(IUserContainer)
    3539    grok.name('index')
     40    grok.template('master_template')
    3641   
    3742    def update(self, userid=None, adduser=None, edit=None, delete=None):
     
    4550            self.flash('User %s successfully deleted.' % userid)
    4651           
    47     def render(self, *args, **kw):
    48         return super(UserContainerView, self).render(*args, **kw)
    49 
    5052class AddUserForm(grok.AddForm):
    5153    grok.require('waeup.manageUsers')
Note: See TracChangeset for help on using the changeset viewer.