[AG-DEV] node service api, saving/restoring configs ....

Darran Edmundson darran.edmundson at anu.edu.au
Mon Aug 22 22:37:50 CDT 2005


On 23/08/2005, at 1:28 PM, Rhys Hawkins wrote:

> In the __init__ function do (for each setting):
>         self.debug = OptionSetParameter( "debug", "disable",  
> [ "enable",
> "disable" ] )
>     self.configuration.append( self.debug )
>
> Then in your Start method, you can get the setting using:
>     if self.debug.value == "enable":
>         #do stuff
>
> The toolkit takes care of saving settings. The best documentation  
> is the
> code so unzip the VideoProducerService.zip and have a look at the  
> other
> ways to display settings to the user (eg TextParameter).
>

Hey Rhys,

I'm talking about making such OptionParameter changes persistent
across start-ups.  My settings are stored only for the lifetime of  
the toolkit.
If I shut down and restart the service managers and venueclient, they
don't seem to be persistent ...

Cheers,
Darran.





More information about the ag-dev mailing list