From ca2e0ccc667f3854a81225f070fe03abb1ad8ab8 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 6 Feb 2015 20:09:01 +0100 Subject: [PATCH] quick_ frontend (quick widgets): added explanation in docstring for non special keywords in getOrCreateWidget --- frontends/src/quick_frontend/quick_widgets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/src/quick_frontend/quick_widgets.py b/frontends/src/quick_frontend/quick_widgets.py index 36e7a45b..666c7601 100644 --- a/frontends/src/quick_frontend/quick_widgets.py +++ b/frontends/src/quick_frontend/quick_widgets.py @@ -112,6 +112,8 @@ class QuickWidgetsManager(object): C.WIDGET_RAISE: raise WidgetAlreadyExistsError C.WIDGET_RECREATE: create a new widget *WITH A NEW HASH* if 'force_hash' is present, the hash given in value will be used instead of the one returned by class_.getWidgetHash + other keys will be used to instanciate class_ if the case happen (e.g. if type_ is present and class_ is a QuickChat subclass, + it will be used to create a new QuickChat instance). @return: a class_ instance, either new or already existing """ cls = self.getRealClass(class_)