Ignore:
Timestamp:
2 Apr 2009, 14:38:59 (16 years ago)
Author:
uli
Message:

Add a viewlet to provide XML export links.

File:
1 edited

Legend:

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

    r4053 r4055  
    8787        """
    8888        return self.request.principal.id != 'zope.anybody'
     89
     90class ExportLink(grok.Viewlet):
     91    grok.viewletmanager(LeftSidebar)
     92    grok.view(Index)
     93    grok.order(99)
     94    grok.require('waeup.manageUniversity')
     95
     96    def render(self):
     97        return '<div class="portlet"><a href="export.xml">%s</a></div>' % (
     98            'Export as XML',)
    8999   
    90100class MainArea(grok.ViewletManager):
Note: See TracChangeset for help on using the changeset viewer.