Commit 965af314 authored by Łukasz Nowak's avatar Łukasz Nowak

- conversion takes time, it is better to return same type (list) in all cases


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26739 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21d10a98
......@@ -154,22 +154,22 @@ class BusinessPath(Path):
# Dynamic context based categories
def _getDynamicCategoryList(self, context):
return list(self._getDynamicSourceCategoryList(context)) \
+ list(self._getDynamicDestinationCategoryList(context))
return self._getDynamicSourceCategoryList(context) \
+ self._getDynamicDestinationCategoryList(context)
def _getDynamicSourceCategoryList(self, context):
method_id = self.getSourceMethodId()
if method_id:
method = getattr(self, method_id)
return method(context)
return ()
return []
def _getDynamicDestinationCategoryList(self, context):
method_id = self.getDestinationMethodId()
if method_id:
method = getattr(self, method_id)
return method(context)
return ()
return []
# Core API
def isBuildable(self, explanation):
......
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