From 6060628f659a2a2515c000108b45316b7ebc9f04 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Fri, 6 Jan 2012 22:57:50 -0600 Subject: [PATCH] reverted changes to __new__ that broke PluginWiki, need more tests --- VERSION | 2 +- gluon/tools.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 6a5794bd..05c14bd0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2011-12-31 14:37:01) stable +Version 1.99.4 (2012-01-06 22:57:17) stable diff --git a/gluon/tools.py b/gluon/tools.py index 1d9a3624..81e10482 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -4076,7 +4076,7 @@ class PluginManager(object): True """ instances = {} - def __new__(cls): + def __new__(cls,*a,**b): id = thread.get_ident() lock = thread.allocate_lock() try: @@ -4084,7 +4084,7 @@ class PluginManager(object): try: return cls.instances[id] except KeyError: - instance = object.__new__(cls) + instance = object.__new__(cls,*a,**b) cls.instances[id] = instance return instance finally: