On 27.06.05, Dag Wieers wrote:
Here's a patch to make pytone less picky about section names. I have music-directories called 1a, 1b, 1c, 2a... and the section-names were not allowed to have numbers in them.
The error was also very confusing to why it gave me a backtrace. Only after seeing the code snippet it was clear that numbers were not allowed.
--- /usr/lib64/python2.3/site-packages/pytone/config.py.orig 2005-06-27 02:03:18.403637368 +0200 +++ /usr/lib64/python2.3/site-packages/pytone/config.py 2005-06-27 02:02:45.713607008 +0200 @@ -715,7 +715,7 @@ mainsection, subsection = section.split(".") except: raise ConfigError("Unkown configuration section '%s'" % section)
if mainsection not in sections or not subsection.isalpha():
if mainsection not in sections or not subsection.isalnum(): raise ConfigError("Unkown configuration section '%s'" % section) # get corresponding config class try:
Merged.
Jörg