Ignore:
Timestamp:
19 Jul 2012, 10:32:40 (12 years ago)
Author:
Henrik Bettermann
Message:

Give access to processed (finished) import files.

File:
1 edited

Legend:

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

    r8920 r9023  
    386386    grok.require('waeup.manageDataCenter')
    387387    text = _('Edit settings')
     388    grok.order(1)
    388389
    389390class ManageFacultiesContainerActionButton(ManageActionButton):
     
    458459    text = _('Edit certificate course')
    459460
    460 #
    461 # Add actions...
    462 #
    463 
    464461class AddUserActionButton(AddActionButton):
    465462    grok.require('waeup.manageUsers')
     
    468465    text = _('Add user')
    469466
    470 #
    471 # Actions with a 'browse' icon...
    472 #
    473 class BrowseActionButton(ActionButton):
    474     grok.baseclass()
    475     grok.context(IKofaObject)
    476     grok.template('actionbutton')
    477     grok.viewletmanager(ActionBar)
     467class BrowseDatacenterLogs(ActionButton):
     468    grok.context(IDataCenter)
    478469    grok.require('waeup.manageDataCenter')
    479     icon = 'actionicon_manage.png' # File must exist in static/
    480     target = '@@show' # link to this viewname.
    481     text = _('Show logs') # Text to display on the button
    482 
    483 class BrowseDatacenterLogs(BrowseActionButton):
    484     grok.context(IDataCenter)
    485470    grok.view(DatacenterPage)
    486     grok.order(4)
     471    grok.order(2)
    487472    icon = 'actionicon_info.png'
    488473    target = '@@logs'
    489474    text = _('Show logs')
    490475
    491 #
    492 # Misc. buttons...
    493 #
     476class UploadCSVButton(ActionButton):
     477    grok.context(IDataCenter)
     478    grok.view(DatacenterPage)
     479    grok.require('waeup.manageDataCenter')
     480    grok.order(3)
     481    icon = 'actionicon_up.png'
     482    target = '@@upload'
     483    text = _('Upload CSV file')
     484
    494485class BatchOpButton(ActionButton):
    495486    grok.context(IDataCenter)
    496487    grok.view(DatacenterPage)
    497488    grok.require('waeup.importData')
    498     grok.order(6)
     489    grok.order(4)
    499490    icon = 'actionicon_gear.png'
    500491    target = '@@import1'
    501492    text = _('Batch processing')
    502493
    503 class UploadCSVButton(ActionButton):
     494class ExportCSVButton(ActionButton):
    504495    grok.context(IDataCenter)
    505496    grok.view(DatacenterPage)
    506497    grok.require('waeup.manageDataCenter')
    507498    grok.order(5)
    508     icon = 'actionicon_up.png'
    509     target = '@@upload'
    510     text = _('Upload CSV file')
    511 
    512 class ExportCSVButton(ActionButton):
    513     grok.context(IDataCenter)
    514     grok.view(DatacenterPage)
    515     grok.require('waeup.manageDataCenter')
    516     grok.order(7)
    517499    icon = 'actionicon_down.png'
    518500    target = '@@export'
    519501    text = _('Export CSV file')
     502
     503class BrowseFinishedFiles(ActionButton):
     504    grok.context(IDataCenter)
     505    grok.require('waeup.manageDataCenter')
     506    grok.view(DatacenterPage)
     507    grok.order(6)
     508    icon = 'actionicon_finished.png'
     509    target = '@@processed'
     510    text = _('Processed Files')
    520511
    521512#
Note: See TracChangeset for help on using the changeset viewer.