[CMF-checkins] CVS: CMF - URLTool.py:1.2.2.1
tseaver@digicool.com
tseaver@digicool.com
Tue, 10 Apr 2001 13:29:31 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak:/tmp/cvs-serv31842/CMFDefault
Modified Files:
Tag: CMF-1_0-branch
URLTool.py
Log Message:
- Make appropriate use of 'portal_url', instead of ad hockery.
- Synch up interface definition of 'Contentish.getIcon' with
reality.
--- Updated File URLTool.py in package CMF --
--- URLTool.py 2001/02/26 13:27:45 1.2
+++ URLTool.py 2001/04/10 17:29:30 1.2.2.1
@@ -106,6 +106,13 @@
'''
return self.aq_inner.aq_parent.absolute_url()
+ getPortalObject = None
+ def getPortalObject( self ):
+ """
+ Return the portal object itself.
+ """
+ return self.aq_inner.aq_parent
+
getRelativeUrl__roles__ = None
def getRelativeUrl(self, content):
"""