Mercurial > libervia-backend
comparison frontends/src/tools/xmlui.py @ 865:3ee2ec7ec010
core (xmlui), frontends: handling of "text" type in params xml + bug fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Feb 2014 23:01:26 +0100 |
parents | 241f6baa6687 |
children | 75f3b3b430ff |
comparison
equal
deleted
inserted
replaced
864:241f6baa6687 | 865:3ee2ec7ec010 |
---|---|
313 ctrl._xmlui_param_id = (callback_id,[field.getAttribute('name') for field in node.getElementsByTagName("field_back")]) | 313 ctrl._xmlui_param_id = (callback_id,[field.getAttribute('name') for field in node.getElementsByTagName("field_back")]) |
314 else: | 314 else: |
315 print(_("FIXME FIXME FIXME: widget type [%s] is not implemented") % type_) | 315 print(_("FIXME FIXME FIXME: widget type [%s] is not implemented") % type_) |
316 raise NotImplementedError(_("FIXME FIXME FIXME: type [%s] is not implemented") % type_) | 316 raise NotImplementedError(_("FIXME FIXME FIXME: type [%s] is not implemented") % type_) |
317 | 317 |
318 if self.type == 'param': | 318 if self.type == 'param' and type_ != 'text': |
319 try: | 319 try: |
320 ctrl._xmluiOnChange(self.onParamChange) | 320 ctrl._xmluiOnChange(self.onParamChange) |
321 ctrl._param_category = self._current_category | 321 ctrl._param_category = self._current_category |
322 except (AttributeError, TypeError): # XXX: TypeError is here because pyjamas raise a TypeError instead of an AttributeError | 322 except (AttributeError, TypeError): # XXX: TypeError is here because pyjamas raise a TypeError instead of an AttributeError |
323 if not isinstance(ctrl, (EmptyWidget, TextWidget, LabelWidget, JidWidget)): | 323 if not isinstance(ctrl, (EmptyWidget, TextWidget, LabelWidget, JidWidget)): |