Commit 93610793 authored by Mayoro Diagne's avatar Mayoro Diagne

2008-09-12: mayoro

- Addind None as default value of restrictedTraverse to avoid NotFound exceptions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23583 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 221429d9
......@@ -67,7 +67,7 @@
<key> <string>_body</string> </key>
<value> <string>def getTitle(url=\'\'):\n
try:\n
return context.getPortalObject().restrictedTraverse(url).getTitle()\n
return context.getPortalObject().restrictedTraverse(url, None).getTitle()\n
except AttributeError:\n
return url.split(\'/\')[-1]\n
\n
......
74
\ No newline at end of file
77
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment