Show
Ignore:
Timestamp:
06/12/08 20:26:08 (6 months ago)
Author:
vardo
Message:

Small changes toward handling plug-ins configuration.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/plugin-system/src/plugins/plugin.py

    r9762 r9792  
    9595        @log_calls('GajimPlugin') 
    9696        def __init__(self): 
     97                self.config = Config() 
     98                ''' 
     99                Plug-in configuration dictionary. 
     100                 
     101                Automatically saved and loaded and plug-in (un)load. 
     102                 
     103                :type: `plugins.plugin.Config` 
     104                ''' 
     105                 
     106                self._load_config() 
     107         
     108        @log_calls('GajimPlugin') 
     109        def _save_config(self): 
    97110                pass 
     111         
     112        @log_calls('GajimPlugin')        
     113        def _load_config(self): 
     114                pass 
     115         
     116        @log_calls('GajimPlugin') 
     117        def __del__(self): 
     118                self._save_config() 
     119                 
     120 
     121class Config(dict): 
     122        pass