Changeset 9737
- Timestamp:
- 06/02/08 01:33:51 (3 months ago)
- Location:
- branches/plugin-system
- Files:
-
- 10 added
- 5 modified
-
epydoc.conf (added)
-
plugins (added)
-
plugins/length_notifier.py (added)
-
src/chat_control.py (modified) (1 diff)
-
src/common/configpaths.py (modified) (1 diff)
-
src/common/gajim.py (modified) (2 diffs)
-
src/common/sleepy.py (modified) (1 diff)
-
src/gajim.py (modified) (1 diff)
-
src/plugins (added)
-
src/plugins/helpers.py (added)
-
src/plugins/__init__.py (added)
-
src/plugins/pluginmanager.py (added)
-
src/plugins/plugin.py (added)
-
test (added)
-
test/test_pluginmanager.py (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin-system/src/chat_control.py
r9695 r9737 1140 1140 # restore previous conversation 1141 1141 self.restore_conversation() 1142 1143 gajim.plugin_manager.gui_extension_point('chat_control', self) 1142 1144 1143 1145 def on_avatar_eventbox_enter_notify_event(self, widget, event): -
branches/plugin-system/src/common/configpaths.py
r9095 r9737 93 93 self.add('HOME', fse(os.path.expanduser('~'))) 94 94 self.add('TMP', fse(tempfile.gettempdir())) 95 96 # dirs for plugins 97 self.add('PLUGINS_BASE', os.path.join(u'..', windowsify(u'plugins'))) 98 self.add_from_root('PLUGINS_USER', u'plugins') 95 99 96 100 try: -
branches/plugin-system/src/common/gajim.py
r9699 r9737 62 62 verbose = False 63 63 ipython_window = None 64 plugin_manager = None 64 65 65 66 h = logging.StreamHandler() … … 86 87 DATA_DIR = gajimpaths['DATA'] 87 88 HOME_DIR = gajimpaths['HOME'] 89 PLUGINS_DIRS = [gajimpaths['PLUGINS_BASE'], 90 gajimpaths['PLUGINS_USER']] 88 91 89 92 try: -
branches/plugin-system/src/common/sleepy.py
r8972 r9737 36 36 SUPPORTED = True 37 37 try: 38 if os.name == 'nt':39 import ctypes38 if os.name == 'nt': 39 import ctypes 40 40 41 GetTickCount = ctypes.windll.kernel32.GetTickCount42 GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo41 GetTickCount = ctypes.windll.kernel32.GetTickCount 42 GetLastInputInfo = ctypes.windll.user32.GetLastInputInfo 43 43 44 class LASTINPUTINFO(ctypes.Structure):45 _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)]44 class LASTINPUTINFO(ctypes.Structure): 45 _fields_ = [('cbSize', ctypes.c_uint), ('dwTime', ctypes.c_uint)] 46 46 47 lastInputInfo = LASTINPUTINFO()48 lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo)47 lastInputInfo = LASTINPUTINFO() 48 lastInputInfo.cbSize = ctypes.sizeof(lastInputInfo) 49 49 50 elif sys.platform == 'darwin':51 import osx.idle as idle52 else: # unix53 import idle50 elif sys.platform == 'darwin': 51 import osx.idle as idle 52 else: # unix 53 import idle 54 54 except: 55 55 gajim.log.debug('Unable to load idle module') -
branches/plugin-system/src/gajim.py
r9699 r9737 3462 3462 gobject.timeout_add_seconds(gajim.config.get( 3463 3463 'check_idle_every_foo_seconds'), self.read_sleepy) 3464 3465 # Creating plugin manager 3466 import plugins 3467 gajim.plugin_manager = plugins.PluginManager() 3464 3468 3465 3469 if __name__ == '__main__':
