[Dev OpenGP] [17] Added draft for plugin abstract class

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


Revision: 17
Author:   alband85
Date:     2009-02-08 01:01:28 +0100 (Sun, 08 Feb 2009)

Log Message:
-----------
Added draft for plugin abstract class

Added Paths:
-----------
    trunk/src/Plugin.py


Added: trunk/src/Plugin.py
===================================================================
--- trunk/src/Plugin.py	                        (rev 0)
+++ trunk/src/Plugin.py	2009-02-08 00:01:28 UTC (rev 17)
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*
+
+import Metaclass
+import AbstractMethod
+
+class Plugin (object):
+	__metaclass__ = Metaclass
+
+	getPluginFromName = staticmethod('getPluginFromName')
+	def getPluginFromName(plugin):
+		pass
+	
+	# Abstract methods
+	mergeDescription = AbstractMethod('mergeDescription')
+	toString = AbstractMethod('toString')
+	toXML = AbstractMethode('toXML')
+
+	def getName():
+		pass
+
+	def mergeFile(parentFile, childFile):
+		pass
+
+	def mergeSecurity(parentSecurity, childSecurity):
+		pass


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