- Timestamp:
- 21 Oct 2011, 10:26:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/breadcrumbs.py
r6907 r6918 6 6 from zope.publisher.browser import TestRequest 7 7 8 from waeup.sirp.interfaces import IConfigurationContainer 8 from waeup.sirp.interfaces import ( 9 IConfigurationContainer, ISessionConfiguration) 9 10 from waeup.sirp.browser import interfaces 10 from waeup.sirp.browser.interfaces import (IBreadcrumb, IBreadcrumbIgnorable,11 11 from waeup.sirp.browser.interfaces import (IBreadcrumb, 12 IBreadcrumbIgnorable, IBreadcrumbContainer) 12 13 13 14 class Breadcrumb(grok.Adapter): … … 108 109 parent_viewname = 'administration' 109 110 111 class 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 110 122 class UserContainerBreadcrumb(Breadcrumb): 111 123 """A breadcrumb for user containers.
Note: See TracChangeset for help on using the changeset viewer.