Ignore:
Timestamp:
21 Oct 2011, 10:26:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Add SessionConfigurationManageFormPage? and SessionConfigurationBreadcrumb?.

File:
1 edited

Legend:

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

    r6907 r6918  
    66from zope.publisher.browser import TestRequest
    77
    8 from waeup.sirp.interfaces import IConfigurationContainer
     8from waeup.sirp.interfaces import (
     9    IConfigurationContainer, ISessionConfiguration)
    910from waeup.sirp.browser import interfaces
    10 from waeup.sirp.browser.interfaces import (IBreadcrumb, IBreadcrumbIgnorable,
    11                                       IBreadcrumbContainer)
     11from waeup.sirp.browser.interfaces import (IBreadcrumb,
     12    IBreadcrumbIgnorable, IBreadcrumbContainer)
    1213       
    1314class Breadcrumb(grok.Adapter):
     
    108109    parent_viewname = 'administration'
    109110
     111class SessionConfigurationBreadcrumb(Breadcrumb):
     112    """A breadcrumb for the configuration container.
     113    """
     114    grok.context(ISessionConfiguration)
     115    title = u'Portal Session Configuration'
     116
     117    @property
     118    def title(self):
     119        session_string = self.context.getSessionString()
     120        return 'Session %s' % session_string
     121
    110122class UserContainerBreadcrumb(Breadcrumb):
    111123    """A breadcrumb for user containers.
Note: See TracChangeset for help on using the changeset viewer.