Subversion Repositories MeX

Rev

Rev 1 | Rev 3 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
# File: srv_application.py
# Author: Tomás Vírseda
# License: GPL v3
# Description: Application service
"""



from mex.core.mod_srv import Service
from mex.core.mod_env import GPATH, LPATH, APP


class MexAppSrv(Service):
    def initialize(self):
        """
        Missing method docstring (missing-docstring)
        """

        self.get_services()


    def get_services(self):
        """
        Missing method docstring (missing-docstring)
        """

        self.srvutl = self.get_service('Utils')
        self.srvplg = self.get_service('Plugins')



    def run(self):
        self.log.debug("Starting Metadata eXplorer")
        self.srv_plugins = self.get_service('Plugins')
        self.plugins = self.srv_plugins.get_plugins_by_category('Metadata')
        self.log.debug("Found %d plugins for 'Metadata' category" % len(self.plugins))
        for plugin in self.plugins:
            self.log.debug("\tPlugin: %s" % plugin.name)
        fileset = self.srvutl.get_files_from_dir(GPATH['ROOT'])
        self.log.debug(fileset)


    def end(self):
        self.log.debug("Stopping Metadata eXplorer")