[CMF-checkins] CVS: CMF - DynamicType.py:1.8
shane@digicool.com
shane@digicool.com
Mon, 30 Apr 2001 15:35:11 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore
In directory korak:/tmp/cvs-serv32148
Modified Files:
DynamicType.py
Log Message:
Fixed the icon URL bug
--- Updated File DynamicType.py in package CMF --
--- DynamicType.py 2001/04/10 17:23:48 1.7
+++ DynamicType.py 2001/04/30 19:35:10 1.8
@@ -145,9 +145,12 @@
if relative_to_portal:
return icon
else:
- # Need the full path to the icon.
+ # Relative to REQUEST['BASEPATH1']
portal_url = getToolByName( self, 'portal_url' )
- return portal_url() + '/' + icon
+ res = portal_url(relative=1) + '/' + icon
+ while res[:1] == '/':
+ res = res[1:]
+ return res
return 'misc_/OFSP/dtmldoc.gif'
security.declarePublic('icon')