Package gozerbot :: Module persistconfig
[hide private]
[frames] | no frames]

Module persistconfig

source code

allow data to be pickled to disk .. creating the persisted object
    restores data
    
usage:
    !plug-cfg                   ->      shows list of all config
    !plug-cfg key value         ->      sets value to key
    !plug-cfg key               ->      shows list of key
    !plug-cfg key add value     ->      adds value to list
    !plug-cfg key remove value  ->      removes value from list
    !plug-cfg key clear         ->      clears entire list
    !plug-cfgsave               ->      force save configuration to disk
    
todo:
    - plugin api (more work needed?)
    


Author: Bas van Oostveen

Copyright: this file is in the public domain

Classes [hide private]
  Option
  LazyValueDict
emulates the normal Persist.data (key, value) dict
  PersistConfigError
  PersistConfig
persist plugin configuration and create default handlers