[Dev OpenGP] [63] plugin system in progress

[ Thread Index | Date Index | More opengp.tuxfamily.org/development Archives ]


Revision: 63
Author:   nicolaf
Date:     2009-03-19 11:00:03 +0100 (Thu, 19 Mar 2009)

Log Message:
-----------
plugin system in progress

Modified Paths:
--------------
    trunk/src/lib/ogp/plugins/__init__.py
    trunk/src/lib/ogp/plugins/plugin.py

Added Paths:
-----------
    trunk/src/lib/ogp/plugins/test/__init__.pyc
    trunk/src/lib/ogp/plugins/test/test.pyc


Modified: trunk/src/lib/ogp/plugins/__init__.py
===================================================================
--- trunk/src/lib/ogp/plugins/__init__.py	2009-03-19 01:36:30 UTC (rev 62)
+++ trunk/src/lib/ogp/plugins/__init__.py	2009-03-19 10:00:03 UTC (rev 63)
@@ -6,10 +6,11 @@
 from os.path import dirname,isdir,join
 from os import listdir
 from imp import *
+from sys import stderr
 path = dirname(resource_filename(__name__, '__init.py__'))
 for d in listdir(path):
 	if isdir(join(path,d)):
 		try:
 			load_package('ogp.plugins.' + d,join(path,d))
 		except:
-			pass
+			stderr.write("ogp.plugins warning: failed to load plugin '" + d + "'.")

Modified: trunk/src/lib/ogp/plugins/plugin.py
===================================================================
--- trunk/src/lib/ogp/plugins/plugin.py	2009-03-19 01:36:30 UTC (rev 62)
+++ trunk/src/lib/ogp/plugins/plugin.py	2009-03-19 10:00:03 UTC (rev 63)
@@ -6,7 +6,6 @@
 
 class Plugin(object):
 	#__metaclass__ = Metaclass
-
 	def __init__(self, dn):
 		self.__dn = dn
 	

Added: trunk/src/lib/ogp/plugins/test/__init__.pyc
===================================================================
(Binary files differ)


Property changes on: trunk/src/lib/ogp/plugins/test/__init__.pyc
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/src/lib/ogp/plugins/test/test.pyc
===================================================================
(Binary files differ)


Property changes on: trunk/src/lib/ogp/plugins/test/test.pyc
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/