Example #1
0
    def __init__(self, oconfig):
        '''Create a graph output object.'''
        tracer.info("Called.")
        StdOutputParams.__init__(self, oconfig)
        CreateMakeDependencies.__init__(self)
        self.__ce3set = None
        self.__fd = None
        self.__constraints_reqs_ref = {}
        self.__testcases = None

        # Jinja2 initialisation
        template_loader = jinja2.FileSystemLoader(
            searchpath=oconfig['template_path'])
        template_env_unmodded = jinja2.Environment(loader=template_loader)
        self._template_env = template_env_unmodded.overlay(
            block_start_string='((*',
            block_end_string='*))',
            variable_start_string='(((',
            variable_end_string=')))',
            comment_start_string='((=',
            comment_end_string='=))')

        if not self._config.is_available('req_attributes'):
            self._config.set_value('req_attributes', [
                "Id", "Priority", "Owner", "Invented on", "Invented by",
                "Status", "Class"
            ])
        self.__level = -1
Example #2
0
 def __init__(self, oconfig):
     """Create a req statistics object."""
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__ofile = None
     tracer.debug("Finished.")
Example #3
0
 def __init__(self, oconfig):
     '''Create a req statistics object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__ofile = None
     tracer.debug("Finished.")
Example #4
0
    def __init__(self, oconfig):
        '''Create a graph output object.'''
        tracer.info("Called.")
        StdOutputParams.__init__(self, oconfig)
        CreateMakeDependencies.__init__(self)
        self.__ce3set = None
        self.__fd = None
        self.__constraints_reqs_ref = {}
        self.__testcases = None

        # Jinja2 initialisation
        template_loader = jinja2.FileSystemLoader(
                searchpath=oconfig['template_path'])
        template_env_unmodded = jinja2.Environment(loader=template_loader)
        self._template_env = template_env_unmodded.overlay(
            block_start_string='((*',
            block_end_string='*))',
            variable_start_string='(((',
            variable_end_string=')))',
            comment_start_string='((=',
            comment_end_string='=))')

        if not self._config.is_available('req_attributes'):
            self._config.set_value(
                'req_attributes',
                ["Id", "Priority", "Owner", "Invented on",
                 "Invented by", "Status", "Class"])
        self.__level = -1
Example #5
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__ofile = None
     tracer.debug("Finished.")
Example #6
0
File: xls.py Project: kown7/rmtoo
 def __init__(self, oconfig):
     """Create an openpyxl output object."""
     tracer.info("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__ce3set = None
     self.__fd = None
     self._opiface = XlsHandler(self._output_filename, self._config)
Example #7
0
 def __init__(self, oconfig):
     '''Create a usage statistics object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__ofile = None
     self.__stats = {}
     tracer.debug("Finished.")
Example #8
0
 def __init__(self, oconfig):
     '''Create a oopricing output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.doc_styles = {}
     self.__used_vcs_id = None
     self.__setup_coord_lookup()
Example #9
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__output_file = None
     self.__ident = ""
     self.__level = 0
     self.__req_dep_graph = ""
Example #10
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__output_file = None
     self.__ident = ""
     self.__level = 0
     self.__req_dep_graph = ""
Example #11
0
    def __init__(self, oconfig):
        '''Create a graph output object.'''
        tracer.info("Called.")
        StdOutputParams.__init__(self, oconfig)
        CreateMakeDependencies.__init__(self)
        self.__used_vcs_id = None
        self.__output_file = None

        if not self._config.is_available('node_attributes'):
            self._config.set_value('node_attributes',
                ["Type", "Status", "Class", "Topic", "Priority", ])
Example #12
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__fd = None
     self.effort_factor = self._config.get_value_default('effort_factor', 1)
     self.req_ids = {}
     self.next_id = 1
     self.__xml_doc = None
     self.__xml_obj_stack = []
Example #13
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__fd = None
     self.effort_factor = self._config.get_value_default('effort_factor', 1)
     self.req_ids = {}
     self.next_id = 1
     self.__xml_doc = None
     self.__xml_obj_stack = []
Example #14
0
    def __init__(self, oconfig):
        """Create a graph output object."""
        tracer.info("Called.")
        StdOutputParams.__init__(self, oconfig)
        CreateMakeDependencies.__init__(self)
        self.__ce3set = None
        self.__fd = None

        if not self._config.is_available("req_attributes"):
            self._config.set_value(
                "req_attributes", ["Id", "Priority", "Owner", "Invented on", "Invented by", "Status", "Class"]
            )
        self.__level = -1
Example #15
0
    def __init__(self, oconfig):
        '''Create a graph output object.'''
        tracer.info("Called.")
        StdOutputParams.__init__(self, oconfig)
        CreateMakeDependencies.__init__(self)
        self.__ce3set = None
        self.__fd = None

        if not self._config.is_available('req_attributes'):
            self._config.set_value('req_attributes', [
                "Id", "Priority", "Owner", "Invented on", "Invented by",
                "Status", "Class"
            ])
        self.__level = -1
Example #16
0
 def __init__(self, oconfig):
     '''Create a version1 output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__used_vcs_id = None
Example #17
0
 def __init__(self, oconfig):
     '''Create a version1 output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
     self.__used_vcs_id = None
Example #18
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.info("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
Example #19
0
 def __init__(self, oconfig):
     '''Create a prios output object.'''
     tracer.info("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
Example #20
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)