Commit 62e50c39 authored by Ibouniyamine Nabihoudine's avatar Ibouniyamine Nabihoudine
Browse files

No commit message

No commit message
parent f9895fb8
......@@ -23,7 +23,6 @@ import logging
from configparser import RawConfigParser, NoOptionError
from jflow.utils import which, display_error_message
from jflow.workflow import Workflow
class JFlowConfigReader(object):
"""
......@@ -124,6 +123,6 @@ class JFlowConfigReader(object):
try:
return self.reader.get("workflows", workflow_class+".group")
except:
return Workflow.DEFAULT_GROUP
return ""
\ No newline at end of file
......@@ -38,7 +38,8 @@ import jflow
import jflow.utils as utils
from jflow.utils import validate_email
from pygraph.classes.digraph import digraph
from jflow.workflows_manager import WorkflowsManager, JFlowConfigReader
from jflow.workflows_manager import WorkflowsManager
from jflow.config_reader import JFlowConfigReader
from jflow.utils import get_octet_string_representation, get_nb_octet
from jflow.parameter import *
from cctools.util import time_format
......@@ -145,7 +146,7 @@ class Workflow(threading.Thread):
self.id = id
self.name = self.get_name()
self.description = self.get_description()
self.__group = self.jflow_config_reader.get_workflow_group(self.__class__.__name__)
self.__group = self.jflow_config_reader.get_workflow_group(self.__class__.__name__) or Workflow.DEFAULT_GROUP
# define the parameters
self.params_order = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment