[CMF-checkins] CVS: CMF - URLTool.py:1.3
tseaver@digicool.com
tseaver@digicool.com
Tue, 10 Apr 2001 13:23:51 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak:/tmp/cvs-serv28242/CMFDefault
Modified Files:
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:23:50 1.3
@@ -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):
"""