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

Thomas D. Uram turam at mcs.anl.gov
Mon Aug 22 22:46:16 CDT 2005


Any parameter stored in self.configuration should be saved in the node 
config.  You must save the node config after modifying the values of 
these parameters.

Do your parameters appear in the saved node config file?



Darran Edmundson wrote:
> 
> 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