Esempio n. 1
0
 def __init__(self):
     """Basic constructor"""
     WebApplication.__init__(self)
     self.usage = """Using the POST method it put a log message in"\
                     "the server.<br>"""
     self.logger = logging.getLogger(MVOConfig.Logger.name + "."
             + self.__class__.__name__) 
Esempio n. 2
0
    def __init__(self, temp_dir=MVOConfig.General.temp_dir):
        """ Build and instance used by the dispatcher.

         Keyword arguments:
        """
        WebApplication.__init__(self, temp_dir)

        self.usage = """<h4>render</h4>Using the GET method it return a thumbnail in PNG format of a given size for a given
Esempio n. 3
0
    def __init__(self, temp_dir=MVOConfig.General.temp_dir):
        """ Build and instance used by the dispatcher.

         Keyword arguments:
        """
        WebApplication.__init__(self, temp_dir)

        self.usage = """<h4>render</h4>Using the GET method it return a thumbnail in PNG format of a given size for a given
Esempio n. 4
0
    def __init__(self, temp_dir=MVOConfig.General.temp_dir):
        """ Build and instance used by the dispatcher.

         Keyword arguments:
            counter -- int: initial value for the node counter
            sequence_number -- int: initial value for the sequence number often
                                    usefull for parser of parsers
        """
        WebApplication.__init__(self, temp_dir)


        self.usage = """ Using the GET method it return the metadata, the
    def __init__(self, temp_dir=MVOConfig.General.temp_dir):
        """ Build and instance used by the dispatcher.

         Keyword arguments:
            counter -- int: initial value for the node counter
            sequence_number -- int: initial value for the sequence number often
                                    usefull for parser of parsers
        """
        WebApplication.__init__(self, temp_dir)


        self.usage = """ Using the GET method it return the metadata, the
    def __init__(self):
        """Basic constructor"""
        WebApplication.__init__(self)
        self.usage = """Asks the server to obtain a version in json format.
        For example:
        {
            "name" : "Multivio Server",
            "version" " : "0.0.1",
            "api_version" " : "0.1"
        }
<br>"""
        self._api_version = "1.0.0"
        self._name = "Multivio Server"
        import __init__
        self._version = __init__.__version__
Esempio n. 7
0
    def __init__(self):
        """Basic constructor"""
        WebApplication.__init__(self)
        self.usage = """Asks the server to obtain a version in json format.
        For example:
        {
            "name" : "Multivio Server",
            "version" " : "0.0.1",
            "api_version" " : "0.1"
        }
<br>"""
        self._api_version = "1.0.0"
        self._name = "Multivio Server"
        import __init__
        self._version = __init__.__version__
Esempio n. 8
0
    def __init__(self):
        "Simple constructor." 
        
        WebApplication.__init__(self)

        #application configuration
        self._apps = {}

        #server applications
        self._apps['.*?/log/post'] = logger.LoggerApp()
        self._apps['.*?/version'] = version_app.VersionApp()
        self._apps['.*?/get.*?'] = \
            parser_app.DocParserApp(temp_dir=MVOConfig.General.temp_dir)
        self._apps['.*?/document/.*?'] = \
            processor_app.DocProcessorApp(temp_dir=MVOConfig.General.temp_dir)
        self.usage = """<br><h1>Welcome to the multivio server.</h1><br>"""
        self.logger = logging.getLogger(MVOConfig.Logger.name+".Dispatcher")
    def __init__(self):
        "Simple constructor." 
        
        WebApplication.__init__(self)

        #application configuration
        self._apps = {}

        #server applications
        self._apps['.*?/log/post'] = logger.LoggerApp()
        self._apps['.*?/version'] = version_app.VersionApp()
        self._apps['.*?/get.*?'] = \
            parser_app.DocParserApp(temp_dir=MVOConfig.General.temp_dir)
        self._apps['.*?/document/.*?'] = \
            processor_app.DocProcessorApp(temp_dir=MVOConfig.General.temp_dir)
        self._apps['.*?/website/.*?'] = \
            WebProcessorApp()
        self.usage = """<br><h1>Welcome to the multivio server.</h1><br>"""
        self.logger = logging.getLogger(MVOConfig.Logger.name+".Dispatcher")
Esempio n. 10
0
 def __init__(self):
     """Basic constructor"""
     WebApplication.__init__(self)
     self.usage = """Asks the server to obtain a version in json format.
Esempio n. 11
0
 def __init__(self):
     """Basic constructor"""
     WebApplication.__init__(self)
     self.usage = """Create a image as the reder of a website.