diff options
author | Richard Darst <rkd@zgib.net> | 2009-06-27 22:50:33 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-06-27 22:50:33 (GMT) |
commit | 149e83f2536468ddb67d8c364f6441c91ba340eb (patch) | |
tree | c9c384fca792df0180ae0686484c911e3c4e5aed /supybotconfig.py | |
parent | 944c6eded08ca7c6ba76fe1e9511a3a702347577 (diff) |
misc changes to supybotconfig.py
darcs-hash:20090627225033-82ea9-fda4ec012e601a41162d62545ef3fd8d2529d618.gz
Diffstat (limited to 'supybotconfig.py')
-rw-r--r-- | supybotconfig.py | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/supybotconfig.py b/supybotconfig.py index 195dab9..6a0b788 100644 --- a/supybotconfig.py +++ b/supybotconfig.py @@ -8,6 +8,7 @@ import writers OriginalConfig = meeting.Config + # The plugin group for configuration MeetBotConfigGroup = conf.registerPlugin('MeetBot') @@ -43,7 +44,7 @@ class WriterMap(registry.String): return " ".join(writers_string) -class SupybotConfig(object): +class SupybotConfigProxy(object): def __init__(self, M): """Do the regular default configuration, and sta""" self.__C = OriginalConfig(M) @@ -65,16 +66,6 @@ class SupybotConfig(object): # functions take. return getattr(self.__C, attrname) - #def __getattribute__(self, attrname): - # print attrname - # - # from fitz import interact ; interact.interact() - # if attrname in settable_attributes: - # "getting from registry" - # #self.registryValue('enable', channel) - # return "blah blah blah" - # - # raise AttributeError #conf.registerGlobalValue(MeetBot @@ -111,6 +102,6 @@ if (use_supybot_config.value and # Here is where the real proxying occurs. - meeting.Config = SupybotConfig - meeting.ConfigOriginal = OriginalConfig - #meeting.Config = type('Config', (Config, meeting.Config), {}) + meeting.Config = SupybotConfigProxy + + |