Rename config to settings in BaseProject
This commit is contained in:
parent
a4913289ce
commit
5b9eb937ff
2 changed files with 5 additions and 5 deletions
|
@ -22,9 +22,9 @@ class BaseProject(object):
|
|||
be found for the current path.
|
||||
"""
|
||||
|
||||
def __init__(self, path, config):
|
||||
def __init__(self, path, settings):
|
||||
self.path = path
|
||||
self.config = config
|
||||
self.settings = settings
|
||||
|
||||
def type(self):
|
||||
""" Returns None if this is the base class.
|
||||
|
|
|
@ -23,7 +23,7 @@ log = logging.getLogger(__name__)
|
|||
|
||||
class ProjectMap(BaseProject):
|
||||
def process(self):
|
||||
if self.config:
|
||||
if self.settings:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
@ -33,8 +33,8 @@ class ProjectMap(BaseProject):
|
|||
|
||||
def name(self):
|
||||
for path in self._path_generator():
|
||||
if self.config.has_option('projectmap', path):
|
||||
return self.config.get('projectmap', path)
|
||||
if self.settings.has_option('projectmap', path):
|
||||
return self.settings.get('projectmap', path)
|
||||
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue