Changeset 4625 for waeup/branches


Ignore:
Timestamp:
2 Jan 2010, 13:46:22 (15 years ago)
Author:
uli
Message:

Remove usercontainer mainview/viewlet. They move to browser subpackage
and become a single page.

File:
1 edited

Legend:

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

    r4577 r4625  
    3434            del self[name]
    3535
    36 class UserContainerView(Index):
    37     grok.require('waeup.manageUsers')
    38     grok.context(IUserContainer)
    39     grok.name('index')
    40     grok.template('master_template')
    41    
    42     def update(self, userid=None, adduser=None, edit=None, delete=None):
    43         yui.sam.need()
    44         yui.datatable.need()
    45 
    46         if edit is not None and userid is not None:
    47             self.redirect(self.url(userid))
    48         if delete is not None and userid is not None:
    49             self.context.delUser(userid)
    50             self.flash('User %s successfully deleted.' % userid)
    5136           
    5237class AddUserForm(grok.AddForm):
     
    8267    formview_name = 'adduserform' # The name of the formview we want
    8368                                  # to be rendered in this viewlet.
    84 
    85 class UserContainerMain(grok.Viewlet):
    86     grok.require('waeup.manageUsers')
    87     grok.viewletmanager(MainArea)
    88     grok.template('usermain')
    89     grok.view(UserContainerView)
    9069
    9170
Note: See TracChangeset for help on using the changeset viewer.