Changeset 1105
- Timestamp:
- 04/07/08 09:37:16
- Files:
-
- qLocalSkin/trunk/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qLocalSkin/trunk/__init__.py
r1003 r1105 7 7 """ 8 8 9 # print '################################ Called pat hed portal_url call: ' + self.REQUEST.URL9 # print '################################ Called patched portal_url __call__: ' + self.REQUEST.URL 10 10 url_suffix = '' 11 11 if self.REQUEST: … … 17 17 return self.getPortalObject().absolute_url(relative=relative) + url_suffix 18 18 19 def urltool_getPortalPath(self): 20 """ Get the portal object's URL without the server URL component. 21 """ 22 23 url_suffix = '' 24 if self.REQUEST: 25 annotator = IRequestPortalUrlAnnotator(self.REQUEST, None) 26 if annotator is not None: 27 url_suffix = annotator.getPortalUrlSuffix() 28 # print '############ Added sufix to portal_url: ' + url_suffix 29 30 return '/'.join(self.getPortalObject().getPhysicalPath()) + url_suffix 31 19 32 URLTool.__call__ = urltool_call 33 URLTool.getPortalPath = urltool_getPortalPath
