[Dev OpenGP] [18] Allow subclasses to have parameters in the __init__

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


Revision: 18
Author:   alband85
Date:     2009-02-08 01:05:20 +0100 (Sun, 08 Feb 2009)

Log Message:
-----------
Allow subclasses to have parameters in the __init__

Modified Paths:
--------------
    trunk/src/Metaclass.py


Modified: trunk/src/Metaclass.py
===================================================================
--- trunk/src/Metaclass.py	2009-02-08 00:01:28 UTC (rev 17)
+++ trunk/src/Metaclass.py	2009-02-08 00:05:20 UTC (rev 18)
@@ -32,7 +32,7 @@
 		abstractmethods.sort()
 		setattr(cls, '__abstractmethods__', abstractmethods)
 
-	def new(self, cls):
+	def new(self, cls, *args, **kwargs):
 		"""Allocator for class cls
 
 		@param self: Class object for which an instance should be


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