コード例 #1
0
ファイル: Analyser.py プロジェクト: tohaklim/osmose-backend
 def __init__(self, config, logger=None):
     self.config = config
     self.logger = logger
     if not hasattr(builtins, "T_"):
         self.translate = OsmoseTranslation.OsmoseTranslation()
         builtins.T_ = self.translate.translate
     if not hasattr(builtins, "T_f"):
         self.translate = OsmoseTranslation.OsmoseTranslation()
         builtins.T_f = self.translate.translate_format
コード例 #2
0
ファイル: Analyser.py プロジェクト: prhod/osmose-backend
 def __init__(self, config, logger=None):
     self.config = config
     self.logger = logger
     if not hasattr(__builtin__, "T_"):
         self.translate = OsmoseTranslation.OsmoseTranslation()
         __builtin__.T_ = self.translate.translate
コード例 #3
0
ファイル: Analyser.py プロジェクト: prhod/osmose-backend
## but WITHOUT ANY WARRANTY; without even the implied warranty of        ##
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         ##
## GNU General Public License for more details.                          ##
##                                                                       ##
## You should have received a copy of the GNU General Public License     ##
## along with this program.  If not, see <http://www.gnu.org/licenses/>. ##
##                                                                       ##
###########################################################################

import __builtin__
import re, hashlib
from modules import OsmoseErrorFile
from modules import OsmoseTranslation

if not hasattr(__builtin__, "T_"):
    translate = OsmoseTranslation.OsmoseTranslation()
    __builtin__.T_ = translate.translate


class Analyser(object):
    def __init__(self, config, logger=None):
        self.config = config
        self.logger = logger
        if not hasattr(__builtin__, "T_"):
            self.translate = OsmoseTranslation.OsmoseTranslation()
            __builtin__.T_ = self.translate.translate

    def __enter__(self):
        self.open_error_file()
        return self
コード例 #4
0
ファイル: Analyser.py プロジェクト: tohaklim/osmose-backend
## along with this program.  If not, see <http://www.gnu.org/licenses/>. ##
##                                                                       ##
###########################################################################

try:
    import builtins
except ImportError:
    import __builtin__ as builtins

import re, hashlib
from modules import OsmoseErrorFile
from modules import OsmoseTranslation
from modules import SourceVersion

if not hasattr(builtins, "T_"):
    translate = OsmoseTranslation.OsmoseTranslation()
    builtins.T_ = translate.translate

if not hasattr(builtins, "T_f"):
    translate_format = OsmoseTranslation.OsmoseTranslation()
    builtins.T_f = translate.translate_format


class Analyser(object):
    def __init__(self, config, logger=None):
        self.config = config
        self.logger = logger
        if not hasattr(builtins, "T_"):
            self.translate = OsmoseTranslation.OsmoseTranslation()
            builtins.T_ = self.translate.translate
        if not hasattr(builtins, "T_f"):