[py-svn] r37880 - in py/trunk/py/test: . rsession

hpk at codespeak.net hpk at codespeak.net
Sat Feb 3 19:50:36 CET 2007


Author: hpk
Date: Sat Feb  3 19:50:35 2007
New Revision: 37880

Modified:
   py/trunk/py/test/config.py
   py/trunk/py/test/rsession/hostmanage.py
Log:
removing public API from test.config (only one rather
internal usage, anyway)


Modified: py/trunk/py/test/config.py
==============================================================================
--- py/trunk/py/test/config.py	(original)
+++ py/trunk/py/test/config.py	Sat Feb  3 19:50:35 2007
@@ -118,14 +118,6 @@
         except KeyError:
             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):
         """ return an initialized session object. """
         cls = self._getsessionclass()

Modified: py/trunk/py/test/rsession/hostmanage.py
==============================================================================
--- py/trunk/py/test/rsession/hostmanage.py	(original)
+++ py/trunk/py/test/rsession/hostmanage.py	Sat Feb  3 19:50:35 2007
@@ -50,8 +50,8 @@
             return False
         dir, base = os.path.split(path)
         try:
-            rsync_roots = self.config.getvalue_from_confpath("dist_rsyncroots",
-                                                             dir)
+            name = "dist_rsyncroots" 
+            rsync_roots = self.config.conftest.rget_path(name, dir)
         except AttributeError:
             rsync_roots = None
         if base == '.svn':


More information about the py-svn mailing list