[svn r37880] removing public API from test.config (only one rather
internal usage, anyway) --HG-- branch : trunk
This commit is contained in:
parent
e88a6c5fc3
commit
f9b8a810cd
|
@ -118,14 +118,6 @@ class Config(object):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return self.conftest.rget(name, path)
|
return self.conftest.rget(name, path)
|
||||||
|
|
||||||
def getvalue_from_confpath(self, name, path):
|
|
||||||
""" same as previous, but returns only value from explicit
|
|
||||||
conftest path
|
|
||||||
"""
|
|
||||||
if isinstance(path, str):
|
|
||||||
path = py.path.local(path)
|
|
||||||
return self.conftest.rget_path(name, path)
|
|
||||||
|
|
||||||
def initsession(self):
|
def initsession(self):
|
||||||
""" return an initialized session object. """
|
""" return an initialized session object. """
|
||||||
cls = self._getsessionclass()
|
cls = self._getsessionclass()
|
||||||
|
|
|
@ -50,8 +50,8 @@ class HostRSync(py.execnet.RSync):
|
||||||
return False
|
return False
|
||||||
dir, base = os.path.split(path)
|
dir, base = os.path.split(path)
|
||||||
try:
|
try:
|
||||||
rsync_roots = self.config.getvalue_from_confpath("dist_rsyncroots",
|
name = "dist_rsyncroots"
|
||||||
dir)
|
rsync_roots = self.config.conftest.rget_path(name, dir)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
rsync_roots = None
|
rsync_roots = None
|
||||||
if base == '.svn':
|
if base == '.svn':
|
||||||
|
|
Loading…
Reference in New Issue