Ignore:
Timestamp:
15 Jan 2010, 23:42:17 (15 years ago)
Author:
uli
Message:
  • Add baseclass for action button 'browse'.
  • Add button to browse log files in datacenter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-importers/src/waeup/browser/viewlets.py

    r4789 r4826  
    369369    target = 'addcertificatecourse'
    370370
     371#
     372# Actions with a 'browse' icon...
     373#
     374class BrowseActionButton(ActionButton):
     375    grok.baseclass()
     376    grok.context(IWAeUPObject)
     377    grok.template('actionbutton')
     378    grok.viewletmanager(ActionBar)
     379    grok.require('waeup.manageUniversity')
     380    icon = 'actionicon_manage.png' # File must exist in static/
     381    target = '@@show' # link to this viewname.
     382    text = 'Show batch logs' # Text to display on the button
     383
     384class BrowseDatacenterLogs(BrowseActionButton):
     385    grok.context(IDataCenter)
     386    grok.view(DatacenterPage)
     387    grok.order(4)
     388    target = '@@logs'
     389    text = 'Show batch logs'
    371390
    372391#
Note: See TracChangeset for help on using the changeset viewer.