Commit 9bed8678 authored by Sebastien Robin's avatar Sebastien Robin

get the content of a cpsdocument in a different way


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@353 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfffbdc7
......@@ -77,6 +77,7 @@ class PatchedCPSDocument(CPSDocument):
"""
accessor_name = 'get' + UpperCase(key)
aq_self = aq_base(self)
if key!='content':
if hasattr(aq_self, accessor_name):
method = getattr(self, accessor_name)
return method()
......
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