add missing definition of requestUrl property
This commit is contained in:
parent
65ad427413
commit
597a8d48ef
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,7 @@ from zope.proxy import removeAllProxies
|
||||||
from zope.security.proxy import removeSecurityProxy
|
from zope.security.proxy import removeSecurityProxy
|
||||||
from zope.traversing.browser import absoluteURL
|
from zope.traversing.browser import absoluteURL
|
||||||
|
|
||||||
|
from cybertools.browser.view import URLGetter
|
||||||
from cybertools.meta.interfaces import IOptions
|
from cybertools.meta.interfaces import IOptions
|
||||||
from cybertools.util import format
|
from cybertools.util import format
|
||||||
from loops.common import adapted, baseObject
|
from loops.common import adapted, baseObject
|
||||||
|
@ -42,6 +43,10 @@ class BaseView(object):
|
||||||
self.context = removeSecurityProxy(context) # this is the adapted concept!
|
self.context = removeSecurityProxy(context) # this is the adapted concept!
|
||||||
self.request = request
|
self.request = request
|
||||||
|
|
||||||
|
@property
|
||||||
|
def requestUrl(self):
|
||||||
|
return URLGetter(self.request)
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def loopsRoot(self):
|
def loopsRoot(self):
|
||||||
return self.context.getLoopsRoot()
|
return self.context.getLoopsRoot()
|
||||||
|
|
Loading…
Add table
Reference in a new issue