Commit 729d542a authored by Romain Courteaud's avatar Romain Courteaud

When proxifying form, search only for forms which contains '_view' in their ID.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17563 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34a30d60
...@@ -645,7 +645,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -645,7 +645,8 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
def iterate(obj): def iterate(obj):
for i in obj.objectValues(): for i in obj.objectValues():
if (i.meta_type=='ERP5 Form' and if (i.meta_type=='ERP5 Form' and
i.getId().endswith('FieldLibrary')): i.getId().endswith('FieldLibrary') and
'_view' in i.getId()):
form_id = i.getId() form_id = i.getId()
form_path = '%s.%s' % (obj.getId(), form_id) form_path = '%s.%s' % (obj.getId(), form_id)
field_list = [] field_list = []
......
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