Jason Tackaberry wrote: > On Wed, 2007-02-07 at 23:11 +0100, Dirk Meyer wrote: >> __iter__ (do svn up, I added it some days ago) > > Ok, but I'd also like to see a function that just returns a list of > variable names. Just like, for example, iterating over a dictionary > iterates over its keys, or you can call keys(). > >> Plus you need to access _cfg_get to not get the variable itself but >> the variable + description. > > I think any methods a configuration tool would need to call ought to be > public methods.
There is a problem. If we would create keys(), you can't put a variable keys in the group. The same would be true for a public method to get the Var object and not the variable. We could use cfggroup_keys() and cfggroup_get() and hope that the user will never use that variable name. Dischi -- USER ERROR: replace user and press any key to continue.
pgpIZvCk9hRMP.pgp
Description: PGP signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel