Mercurial > libervia-backend
changeset 1307:9512590dc3d7 frontends_multi_profiles
quick_ frontend (quick widgets): added explanation in docstring for non special keywords in getOrCreateWidget
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Feb 2015 20:09:01 +0100 |
parents | 789e86a8919d |
children | f079e6ed1e69 |
files | frontends/src/quick_frontend/quick_widgets.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_widgets.py Fri Feb 06 19:31:13 2015 +0100 +++ b/frontends/src/quick_frontend/quick_widgets.py Fri Feb 06 20:09:01 2015 +0100 @@ -112,6 +112,8 @@ 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_)