Esempio n. 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
Esempio n. 2
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
Esempio n. 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.")
Esempio n. 4
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.")
Esempio n. 5
0
 def cmad_topic_continuum_pre(self, _):
     '''Write out the one and only dependency to all the requirements.'''
     tracer.debug("Called.")
     CreateMakeDependencies.write_reqs_dep(self._cmad_file,
                                           self._output_filename)
     self._cmad_file.write(u"REQS_LATEX2=%s\n" %
                           self._output_filename)
Esempio n. 6
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.")
Esempio n. 7
0
File: xls.py Progetto: 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)
Esempio n. 8
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.")
Esempio n. 9
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()
Esempio n. 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 = ""
Esempio n. 11
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 = ""
Esempio n. 12
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", ])
Esempio n. 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 = []
Esempio n. 14
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 = []
Esempio n. 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
Esempio n. 16
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called: html ouput module constructed.")
     self._config = Cfg(oconfig)
     CreateMakeDependencies.__init__(self)
     self.__fd_stack = []
     self.__topic_name_set = []
     # Take care about the openess of the ul.
     self.__ul_open_stack = []
     self.__output_directory = self._config.get_rvalue('output_directory')
     self.html_header_filename = self._config.get_rvalue('header')
     self.html_footer_filename = self._config.get_rvalue('footer')
     self.read_html_arts()
Esempio n. 17
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called: html ouput module constructed.")
     self._config = Cfg(oconfig)
     CreateMakeDependencies.__init__(self)
     self.__fd_stack = []
     self.__topic_name_set = []
     # Take care about the openess of the ul.
     self.__ul_open_stack = []
     self.__output_directory = self._config.get_rvalue('output_directory')
     self.html_header_filename = self._config.get_rvalue('header')
     self.html_footer_filename = self._config.get_rvalue('footer')
     self.read_html_arts()
Esempio n. 18
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
Esempio n. 19
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.info("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
Esempio n. 20
0
 def cmad_topic_continuum_pre(self, _):
     """Write out the one and only dependency to all the requirements."""
     tracer.debug("Called.")
     CreateMakeDependencies.write_reqs_dep(self._cmad_file, self._output_filename)
Esempio n. 21
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
Esempio n. 22
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
Esempio n. 23
0
 def cmad_topic_continuum_pre(self, _):
     '''Write out the one and only dependency to all the requirements.'''
     tracer.debug("Called.")
     CreateMakeDependencies.write_reqs_dep(self._cmad_file,
                                           self._output_filename)
Esempio n. 24
0
 def __init__(self, oconfig):
     '''Create a prios output object.'''
     tracer.info("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)
Esempio n. 25
0
 def __init__(self, oconfig):
     '''Create a graph output object.'''
     tracer.debug("Called.")
     StdOutputParams.__init__(self, oconfig)
     CreateMakeDependencies.__init__(self)