Skip to content
Snippets Groups Projects
Commit 1edd0a10 authored by Himanen, Lauri (himanel1)'s avatar Himanen, Lauri (himanel1)
Browse files

Small change to baseclasses.

parent f0f11db2
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,7 @@ class FileService(object): ...@@ -213,7 +213,7 @@ class FileService(object):
logger.error("The id '{}' has no path associated with it.".format(file_id)) logger.error("The id '{}' has no path associated with it.".format(file_id))
return None return None
else: else:
return self.get_file_by_path(path) return path
def set_file_id(self, path, file_id): def set_file_id(self, path, file_id):
"""Used to map a simple identifier string to a file path. When a file """Used to map a simple identifier string to a file path. When a file
...@@ -257,6 +257,7 @@ class BasicParser(object): ...@@ -257,6 +257,7 @@ class BasicParser(object):
self.parser_context = parser_context self.parser_context = parser_context
self.backend = parser_context.caching_backend self.backend = parser_context.caching_backend
self.super_backend = parser_context.super_backend self.super_backend = parser_context.super_backend
self.file_service = parser_context.file_service
@abstractmethod @abstractmethod
def parse(self): def parse(self):
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment