[Checkins] SVN: z3c.website/trunk/src/z3c/website/tool/content.py
Fix title access if the context is a IFolder
Roger Ineichen
roger at projekt01.ch
Fri May 25 04:05:08 EDT 2007
Log message for revision 75957:
Fix title access if the context is a IFolder
Changed:
U z3c.website/trunk/src/z3c/website/tool/content.py
-=-
Modified: z3c.website/trunk/src/z3c/website/tool/content.py
===================================================================
--- z3c.website/trunk/src/z3c/website/tool/content.py 2007-05-25 06:20:23 UTC (rev 75956)
+++ z3c.website/trunk/src/z3c/website/tool/content.py 2007-05-25 08:05:04 UTC (rev 75957)
@@ -47,7 +47,10 @@
for item in context.values():
info = {}
info['url'] = absoluteURL(item, self.request)
- info['title'] = item.title or u'undefined'
+ if hasattr(item, 'title'):
+ info['title'] = item.title
+ else:
+ info['title'] = u'undefined'
append(info)
except KeyError:
# site does not exist right now
More information about the Checkins
mailing list