Rename config to settings in BaseProject

This commit is contained in:
3onyc 2013-12-11 15:13:40 +01:00
parent a4913289ce
commit 5b9eb937ff
2 changed files with 5 additions and 5 deletions

View File

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

View File

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