[asterisk-commits] pabelanger: branch pabelanger/non-root r667 - /asterisk/team/pabelanger/non-r...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 30 18:28:46 CDT 2010


Author: pabelanger
Date: Fri Jul 30 18:28:43 2010
New Revision: 667

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=667
Log:
New install_configs() command

Modified:
    asterisk/team/pabelanger/non-root/lib/python/asterisk/asterisk.py

Modified: asterisk/team/pabelanger/non-root/lib/python/asterisk/asterisk.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/non-root/lib/python/asterisk/asterisk.py?view=diff&rev=667&r1=666&r2=667
==============================================================================
--- asterisk/team/pabelanger/non-root/lib/python/asterisk/asterisk.py (original)
+++ asterisk/team/pabelanger/non-root/lib/python/asterisk/asterisk.py Fri Jul 30 18:28:43 2010
@@ -137,6 +137,13 @@
             pass
         self.process.wait()
         return self.process.returncode
+    def install_configs(self, cfg_path):
+	for dirname, dirnames, filenames in os.walk(cfg_path):
+	    if ".svn" in dirnames:
+		dirnames.remove(".svn")
+            for filename in filenames:
+                target = "%s/%s" % (dirname, filename)
+		self.install_config(target)
 
     def install_config(self, cfg_path):
         """Install a custom configuration file for this instance of Asterisk.




More information about the asterisk-commits mailing list