Ignore:
Timestamp:
1 Mar 2012, 06:50:40 (13 years ago)
Author:
Henrik Bettermann
Message:

Add viewletmanager which renders widgets in forms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py

    r7705 r7736  
    5656    grok.name('admintasks')
    5757
     58class WidgetsSlot(grok.ViewletManager):
     59    grok.name('widgets')
     60
    5861
    5962#
     
    298301        else:
    299302            return ''
    300            
     303
     304class WidgetsTableRows(grok.Viewlet):
     305    """A base for action buttons without image
     306    """
     307    template = grok.PageTemplateFile('templates/widgets.pt')
     308    grok.viewletmanager(WidgetsSlot)
     309
     310
    301311#
    302312# waeup.sirp.app.University viewlets...
Note: See TracChangeset for help on using the changeset viewer.