Commit 67a3b265 authored by Sebastien Robin's avatar Sebastien Robin

do not patch manage_main

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16376 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 82202424
...@@ -1270,8 +1270,10 @@ candidate_method_id_list = [] ...@@ -1270,8 +1270,10 @@ candidate_method_id_list = []
for folder_class in (HBTreeFolder2Base, HBTreeFolder2, CMFHBTreeFolder): for folder_class in (HBTreeFolder2Base, HBTreeFolder2, CMFHBTreeFolder):
# exclude objectValues because it is redefined here # exclude objectValues because it is redefined here
# exclude get because it is not defined on OFSFolder # exclude get because it is not defined on OFSFolder
# exclude manage_main because it generates func_code attribute errors
candidate_method_id_list.extend([x for x in folder_class.__dict__ candidate_method_id_list.extend([x for x in folder_class.__dict__
if callable(getattr(folder_class, x)) and not if callable(getattr(folder_class, x)) and not
x in ('__getattr__','__init__', 'get', 'objectValues')]) x in ('__getattr__','__init__', 'get', 'objectValues',
'manage_main')])
for method_id in candidate_method_id_list: for method_id in candidate_method_id_list:
setattr(Folder, method_id, FolderMethodWrapper(method_id)) setattr(Folder, method_id, FolderMethodWrapper(method_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