Ignore:
Timestamp:
8 Aug 2010, 11:45:47 (14 years ago)
Author:
uli
Message:

Add tweaked breadcrumb for 'Portal Settings'.

File:
1 edited

Legend:

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

    r5379 r5393  
    6767    parent = None
    6868
     69class PortalSettingsBreadcrumb(Breadcrumb):
     70    """A breadcrumb for the manage view of universities.
     71
     72    Here we need a special `parent()` implementation, because the
     73    parent object is not a real parent (the University object has no
     74    valid parent in terms of breadcrumbs). Instead it is the
     75    ``administration`` view of the same context the ``manage`` page
     76    itself is bound to.
     77    """
     78    grok.context(interfaces.IUniversity)
     79    grok.name('manage')
     80    title = u'Portal Settings'
     81
     82    @property
     83    def parent(self):
     84        """Return the 'administration' view of our context as parent.
     85        """
     86        return (self.context, 'administration')
     87
    6988class FacultyContainerBreadcrumb(Breadcrumb):
    7089    """A breadcrumb for faculty containers.
Note: See TracChangeset for help on using the changeset viewer.