Commit b8696709 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

optimise PropertyHolder.getAccessorMethodItemList() a bit.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35959 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b22267f
......@@ -431,8 +431,9 @@ class PropertyHolder:
Return a list of tuple (id, method) for every accessor
"""
accessor_method_item_list = []
accessor_method_item_list_append = accessor_method_item_list.append
for x, y in self._getItemList():
if isinstance(y, types.TupleType):
if isinstance(y, tuple):
if y is WORKFLOW_METHOD_MARKER or x == '__ac_permissions__':
continue
if len(y) == 0:
......@@ -441,7 +442,7 @@ class PropertyHolder:
continue
elif not isinstance(y, Accessor):
continue
accessor_method_item_list.append((x, y))
accessor_method_item_list_append((x, y))
return accessor_method_item_list
def getAccessorMethodIdList(self):
......
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