Author: dmeyer
Date: Fri Jan  5 16:13:58 2007
New Revision: 2354

Modified:
   trunk/base/src/config.py

Log:
translate _ to - if needed

Modified: trunk/base/src/config.py
==============================================================================
--- trunk/base/src/config.py    (original)
+++ trunk/base/src/config.py    Fri Jan  5 16:13:58 2007
@@ -320,6 +320,8 @@
         Get variable, subgroup, dict or list object (as object not value).
         """
         if not key in self._dict:
+            if key.replace('_', '-') in self._dict:
+                return self._dict[key.replace('_', '-')]
             raise AttributeError('No attribute %s' % key)
         return self._dict[key]
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to