Skip to content

Commit

Permalink
Adicionando a coleção no acesso aos recursos
Browse files Browse the repository at this point in the history
  • Loading branch information
jamilatta committed Apr 20, 2016
1 parent 16737f5 commit 9210071
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions delorean/domain.py
Expand Up @@ -133,6 +133,7 @@ def transform_list(self, data_list, callabl=None):

return '\n'.join(res)


class DataCollector(object):
"""
Responsible for collecting data from RESTful interfaces,
Expand Down Expand Up @@ -224,6 +225,7 @@ def http_lookup():
if all([self._username, self._api_key]):
kwargs['username'] = self._username
kwargs['api_key'] = self._api_key
kwargs['collection'] = self._collection

self._last_resource = {} # release the memory
self._last_resource[res_lookup_key] = getattr(
Expand Down

0 comments on commit 9210071

Please sign in to comment.