Skip to content
Snippets Groups Projects

Move developer setup in a dedicated method

Merged Thibault Lavigne requested to merge 117-move-developer-setup-in-a-dedicated-method-2 into master
4 files
+ 8
12
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -67,10 +67,7 @@ class ElementsWorker(
"""
def __init__(self, description="Arkindex Elements Worker", support_cache=False):
print("in __init__ in __init__.py before super")
super().__init__(description, support_cache)
print("in __init__ in __init__.py after super")
# Add mandatory argument to process elements
self.parser.add_argument(
"--elements-list",
@@ -89,9 +86,6 @@ class ElementsWorker(
self._worker_version_cache = {}
# CLI args are stored on the instance so that implementations can access them
self.args = self.parser.parse_args()
def list_elements(self):
"""
List the elements to be processed, either from the CLI arguments or
@@ -141,6 +135,8 @@ class ElementsWorker(
return self.process_information.get("activity_state") == "ready"
def configure(self):
# CLI args are stored on the instance so that implementations can access them
self.args = self.parser.parse_args()
if self.is_read_only:
super().configure_for_developers()
else:
Loading