Skip to content

Commit

Permalink
Avoid importing unnecessary functions from the harvest logic
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 5, 2013
1 parent 18f8a92 commit cb745c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/harvest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def _get_logic_functions(module_root, logic_functions = {}):
module = getattr(module, part)

for key, value in module.__dict__.items():
if not key.startswith('_') and isinstance(value, types.FunctionType):
if not key.startswith('_') and (hasattr(value, '__call__')
and (value.__module__ == module_path)):
logic_functions[key] = value

return logic_functions
Expand Down

0 comments on commit cb745c3

Please sign in to comment.