diff options
Diffstat (limited to 'chimere/utils.py')
-rw-r--r-- | chimere/utils.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/chimere/utils.py b/chimere/utils.py index f5379aa..efaf084 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -67,10 +67,10 @@ class ImportManager(object): 'name').all()]) def get(self): - pass + raise NotImplementedError def put(self, extra_args={}): - pass + raise NotImplementedError def create_or_update_item(self, cls, values, import_key, version=None, key='', pk=None): @@ -834,3 +834,14 @@ class OSMManager(ImportManager): item.save() api.ChangesetClose() return idx+1, None + +class HtmlXsltManager(ImportManager): + def get(self): + u""" + Get data from the source + + Return a tuple with: + - new items; + - updated items; + - error detail on error. + """ |