added logger to scope

This commit is contained in:
İsmail Başaran 2016-02-21 03:32:22 +02:00
parent b44e46d20f
commit 128290359d

View file

@ -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