|
From: Tomi P. <tom...@ik...> - 2011-08-03 15:30:57
|
Hi!
Please cc me, I'm not on the list.
I just had a hairy bug in my config file; I had an extra comma at the
end of a string, so it was interpreted as a list, not as a string. The
validation error was all the time:
VdtTypeError('the value "[\'mplayer -slave -vc null -vo null
{file}\']" is of the wrong type.',)
I was thinking that if the validator would say what type it expected
and what it got, I would have seen the comma a lot faster. Maybe the
exceptions could say that?
Then one extra question... Is it possible to put defaults into
[__many__] subsections? I'm wondering what's the best solution to
configure cplay (a curses frontend to audio players). It needs some
config information about what cli players to use, and what command to
give them. There's a varying amount (different players for different
file types, though mplayer plays them all), but I'd like to put some
default players in there (mplayer, ogg123, mpg123 etc).
--
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
|