mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 11:12:15 +03:00
added logger to scope
This commit is contained in:
parent
b44e46d20f
commit
128290359d
1 changed files with 12 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
# @author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
class Scope(object):
|
class Scope(object):
|
||||||
|
@ -9,15 +9,25 @@ class Scope(object):
|
||||||
super(Scope, self).__init__()
|
super(Scope, self).__init__()
|
||||||
self.customMap = {}
|
self.customMap = {}
|
||||||
self.configurationManager=None
|
self.configurationManager=None
|
||||||
|
self.logger=None
|
||||||
|
|
||||||
def getCustomMap(self):
|
def getCustomMap(self):
|
||||||
return self.customMap
|
return self.customMap
|
||||||
|
|
||||||
def putCustomMap(self,name,value):
|
def putCustomMap(self,name,value):
|
||||||
self.custom[name]=value
|
self.custom[str(name)]=value
|
||||||
|
|
||||||
|
def getCustomParam(self,name):
|
||||||
|
return self.customMap[str(name)]
|
||||||
|
|
||||||
def getConfigurationManager(self):
|
def getConfigurationManager(self):
|
||||||
return self.configurationManager
|
return self.configurationManager
|
||||||
|
|
||||||
def serConfigurationManager(self,configurationManager):
|
def serConfigurationManager(self,configurationManager):
|
||||||
self.configurationManager = configurationManager
|
self.configurationManager = configurationManager
|
||||||
|
|
||||||
|
def getLogger(self):
|
||||||
|
return self.logger
|
||||||
|
|
||||||
|
def setLogger(self,logger):
|
||||||
|
self.logger = logger
|
||||||
|
|
Loading…
Reference in a new issue