From cc776dc2f04b3c4be728cb36eccb49cc6029836b Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Fri, 24 Oct 2014 16:34:47 +0200 Subject: [PATCH] [gen] Bugfix. --- gen/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/utils.py b/gen/utils.py index 4ca40cf..4992f6d 100644 --- a/gen/utils.py +++ b/gen/utils.py @@ -133,7 +133,7 @@ def getClassName(klass, appName=None): if (moduleName == 'appy.gen.model') or moduleName.endswith('.wrappers'): # This is a model (generation time or run time) res = appName + klass.__name__ - elif klass.__bases__ and (klass.__bases__[-1].__module__ == 'appy.gen'): + elif klass.__bases__ and (klass.__bases__[-1].__module__=='appy.gen.utils'): # This is a customized class (inherits from appy.gen.Tool, User,...) res = appName + klass.__bases__[-1].__name__ else: # This is a standard class