Changeset 9952

Show
Ignore:
Timestamp:
07/18/08 09:05:07 (5 months ago)
Author:
vardo
Message:

Small sync commit.

Location:
branches/plugin-system/src/plugins
Files:
3 modified

Legend:

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

    r9885 r9952  
    2020 
    2121:author: Mateusz Biliński <mateusz@bilinski.it> 
    22 :since: 06/06/2008 
     22:since: 6th June 2008 
    2323:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it> 
    2424:license: GPL 
     
    184184                else: 
    185185                        # No plugin selected. this should never be reached. As configure 
    186                         # plugin button should only my clickable when plugin is selected. 
     186                        # plugin button should only be clickable when plugin is selected. 
    187187                        # XXX: maybe throw exception here? 
    188188                        pass 
  • branches/plugin-system/src/plugins/helpers.py

    r9773 r9952  
    2020 
    2121:author: Mateusz Biliński <mateusz@bilinski.it> 
    22 :since: 05/30/2008 
     22:since: 30th May 2008 
    2323:copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it> 
    2424:license: GPL 
  • branches/plugin-system/src/plugins/plugin.py

    r9885 r9952  
    9898        Extension points that plugin wants to connect with. 
    9999        ''' 
     100        config_default_values = {} 
     101        ''' 
     102        Default values for keys that should be stored in plug-in config. 
     103         
     104        This dict is used when when someone calls for config option but it has not 
     105        been set yet. 
     106         
     107        Values are tuples: (default_value, option_description). The first one can 
     108        be anything (this is the advantage of using shelve/pickle instead of 
     109        custom-made     config I/O handling); the second one should be unicode (gettext 
     110        can be used if need and/or translation is planned). 
     111         
     112        :type: {} of 2-element tuples 
     113        ''' 
    100114         
    101115        @log_calls('GajimPlugin')