class Base(object):
    _debug = False
    def __init__(self,mode_name):
        self.mode_name = mode_name
        self.language = Language(self.mode_name)
        self.debug_print( 'Base init:%f' %(time.time()))

    #get value from the model language resource
    def get_value(self,key):
        result = self.language.get_value(key);
        return result

    def getValByCurRunTarget(self,key):
        result = self.language.getValByCurRunTarget(key);
        return result

    #print the log is the value of the debug variable is true
    def debug_print(self,log):
        if self._debug:
            print(self.mode_name, log)
Exemple #2
0
class Base(object):
    _debug = False
    def __init__(self,mode_name):
        self.mode_name = mode_name
        self.language = Language(self.mode_name)
        self.debug_print( 'Base init:%f' %(time.time()))

    #get value from the model language resource
    def get_value(self,key):
        result = self.language.get_value(key);
        return result

    #print the log is the value of the debug variable is true
    def debug_print(self,log):
        if self._debug:
            print(self.mode_name, log)
Exemple #3
0
 def __init__(self,mode_name):
     self.mode_name = mode_name
     self.language = Language(self.mode_name)
     self.debug_print( 'Base init:%f' %(time.time()))
 def __init__(self,mode_name):
     self.mode_name = mode_name
     self.language = Language(self.mode_name)
     self.debug_print( 'Base init:%f' %(time.time()))