Commit 620ca25b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Sebastien Robin

since Zope 2.12.23, ObjectManager's get and __getitem__ returns only 'items'...

since Zope 2.12.23, ObjectManager's get and __getitem__ returns only 'items' (no attributes / methods from the class or from acquisition).
parent 6fd4354f
...@@ -106,7 +106,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -106,7 +106,7 @@ class TestOOoStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
self.fail(''.join(error_list)) self.fail(''.join(error_list))
def _assertFieldInGroup(self, field_type, form_id, group): def _assertFieldInGroup(self, field_type, form_id, group):
for f in self.portal[form_id].get_fields_in_group(group): for f in getattr(self.portal, form_id).get_fields_in_group(group):
if f.meta_type == 'ProxyField': if f.meta_type == 'ProxyField':
if f.getRecursiveTemplateField().meta_type == field_type: if f.getRecursiveTemplateField().meta_type == field_type:
break break
......
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