Commit 83560475 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Make sure that a base object has an appropriate method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4418 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f4ba6df
import re
import cgi
from Acquisition import aq_base
def traverse(ob, r, result):
if hasattr(ob, 'objectValues'):
if hasattr(aq_base(ob), 'objectValues'):
for sub in ob.objectValues():
traverse(sub, r, result)
try:
text = ob.manage_FTPget()
if hasattr(aq_base(ob), 'manage_FTPget'):
text = ob.manage_FTPget()
else:
text = None
except:
text = None
if text:
......
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