An example of a working version of the affected function would be:
def icon(self, relative_to_portal=0):
"""
Using this method allows the content class
creator to grab icons on the fly instead of using a fixed
attribute on the class.
"""
utool = getToolByName(self, 'portal_url')
portal_url = utool()
icon = self.getIconURL()
if portal_url:
if icon.startswith(portal_url):
icon = icon[len(portal_url):]
while icon.startswith('/'): icon = icon[1:]
if not relative_to_portal:
# Relative to REQUEST['BASEPATH1'] icon = '%s/%s' % (utool(relative=1), icon)
return icon
An example of a working version of the affected function would be:
def icon(self, relative_ to_portal= 0): (portal_ url): portal_ url):] ('/'):
icon = icon[1:] 'BASEPATH1' ]
icon = '%s/%s' % (utool(relative=1), icon)
"""
Using this method allows the content class
creator to grab icons on the fly instead of using a fixed
attribute on the class.
"""
utool = getToolByName(self, 'portal_url')
portal_url = utool()
icon = self.getIconURL()
if portal_url:
if icon.startswith
icon = icon[len(
while icon.startswith
if not relative_to_portal:
# Relative to REQUEST[
return icon