source: products/qLocalSkin/trunk/browser/localPortalState.py

Last change on this file was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 611 bytes
Line 
1from zope.interface import implements
2from plone.memoize.view import memoize_contextless
3from plone.app.layout.globals.portal import PortalState
4from plone.app.layout.globals.interfaces import IPortalState
5
6from Products.qLocalSkin.interfaces import IShiftPortalUrl
7
8class LocalPortalState(PortalState):
9    implements(IPortalState)
10
11    @memoize_contextless
12    def portal_url(self):
13        """ Return url to container, which provided
14            IShiftPortalUrl marker interface, as portal_url.
15            Use functionality of portal_url's __call__ method
16            patch.
17        """
18        return self.context.portal_url()
Note: See TracBrowser for help on using the repository browser.