Last change
on this file since 2752 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
611 bytes
|
Line | |
---|
1 | from zope.interface import implements |
---|
2 | from plone.memoize.view import memoize_contextless |
---|
3 | from plone.app.layout.globals.portal import PortalState |
---|
4 | from plone.app.layout.globals.interfaces import IPortalState |
---|
5 | |
---|
6 | from Products.qLocalSkin.interfaces import IShiftPortalUrl |
---|
7 | |
---|
8 | class 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.