Commit 6a93ac8d authored by Nicolas Delaby's avatar Nicolas Delaby

replace hasattr by getattr

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35800 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d4c8f3d4
...@@ -548,7 +548,7 @@ class SynchronizationTool( SubscriptionSynchronization, ...@@ -548,7 +548,7 @@ class SynchronizationTool( SubscriptionSynchronization,
directory = object.getParentValue() directory = object.getParentValue()
copy_id = copy_path[-1] copy_id = copy_path[-1]
#LOG('p_sync.applyPublisherValue, copy_id: ', TRACE, copy_id) #LOG('p_sync.applyPublisherValue, copy_id: ', TRACE, copy_id)
if hasattr(directory.aq_base, 'hasObject'): if getattr(aq_base(directory), 'hasObject', None) is not None:
# optimize the case of a BTree folder # optimize the case of a BTree folder
#LOG('p_sync.applyPublisherValue, deleting...: ', TRACE, copy_id) #LOG('p_sync.applyPublisherValue, deleting...: ', TRACE, copy_id)
if directory.hasObject(copy_id): if directory.hasObject(copy_id):
......
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