Changeset 5129


Ignore:
Timestamp:
5 Apr 2010, 16:44:43 (15 years ago)
Author:
uli
Message:

Add button to link to (yet not existing) reimport view.

File:
1 edited

Legend:

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

    r5126 r5129  
    66from waeup.sirp.browser.breadcrumbs import Breadcrumb
    77from waeup.sirp.browser.pages import UniversityPage
    8 from waeup.sirp.browser.viewlets import AdminTask, AddActionButton, LeftSidebar
     8from waeup.sirp.browser.viewlets import (
     9    AdminTask, AddActionButton, LeftSidebar, BatchOpButton)
    910from waeup.sirp.interfaces import IWAeUPObject, IUniversity
    1011
     
    9697    text = 'Add Scratch Card Batch'
    9798
     99class ReimportBatchButton(BatchOpButton):
     100    """Action button on batch container page which links to batch reimport.
     101    """
     102    grok.context(IAccessCodeBatchContainer)
     103    grok.view(BatchContainerPage)
     104    grok.require('waeup.manageACBatches')
     105    target = 'reimport'
     106    text = 'Reimport Scratch Card Batch'
     107
    98108class ManageAccessCodes(grok.Viewlet):
    99109    """Link on front page to access code management.
Note: See TracChangeset for help on using the changeset viewer.