Thanks for the suggestion :-)

On 12/12/05, Rob Shortt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> shane wrote:
> > I was not sure if thier is a standard way to read varibles in the
> > local config. For my plugin I used the following method. Is thier a
> > better way to do this?
>
> I can't recall if you can do this in 1.5 but in 2.0/CVS you can do
> something like this in your plugin code to set defaults:
>
>     def config(self):
>         return [('VAR1', 10, 'Description of VAR1, an int.'),
>                 ('VAR2', 'test', 'Description of VAR2, a string.')]
>
> Then in other parts of your plugin code you can reference config.VAR1
> and get either the default from your plugin or what the user set in
> local_conf.py.
>
>
> -Rob
>
> --
> -------------------------------------------------------
> Rob Shortt        | http://tvcentric.com | Freevo
> [EMAIL PROTECTED] | http://freevo.sf.net | Free your TV
>
>
>


--
shane


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to