Ignore:
Timestamp:
7 Aug 2010, 14:09:34 (14 years ago)
Author:
uli
Message:

Update access-code link for upper left box to respect the new
ManageLink base in waeup.sirp.browser.viewlets.

File:
1 edited

Legend:

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

    r5155 r5381  
    77from waeup.sirp.browser.pages import UniversityPage
    88from waeup.sirp.browser.viewlets import (
    9     AdminTask, AddActionButton, SearchActionButton, LeftSidebar, BatchOpButton)
     9    AdminTask, AddActionButton, SearchActionButton, BatchOpButton, ManageLink)
    1010from waeup.sirp.interfaces import IWAeUPObject, IUniversity
    1111
     
    205205    text = 'Search Scratch Cards'   
    206206   
    207 class ManageAccessCodes(grok.Viewlet):
    208     """Link on front page to access code management.
    209     """
    210     grok.viewletmanager(LeftSidebar)
    211     grok.context(IUniversity)
    212     grok.view(UniversityPage)
     207class ManageAccessCodes(ManageLink):
     208    """Link in upper left box to access code management.
     209    """
    213210    grok.order(6)
    214211    grok.require('waeup.manageACBatches')
    215212
    216     def render(self):
    217         return u'<div class="portlet"><a href="accesscodes">Manage access-codes</a></div>'
     213    link = u'accesscodes'
     214    text = u'Manage access-codes'
Note: See TracChangeset for help on using the changeset viewer.