comparison sat/tools/xml_tools.py @ 3448:987198910e56

tools (xml_tools): add missing `value` property to JidWidget
author Goffi <goffi@goffi.org>
date Thu, 10 Dec 2020 14:11:45 +0100
parents a4774f5b6b17
children 80f8635dc66e
comparison
equal deleted inserted replaced
3447:c3f07c0cb2de 3448:987198910e56
980 super(JidWidget, self).__init__(xmlui, name, parent) 980 super(JidWidget, self).__init__(xmlui, name, parent)
981 try: 981 try:
982 self.elem.setAttribute("value", jid.full()) 982 self.elem.setAttribute("value", jid.full())
983 except AttributeError: 983 except AttributeError:
984 self.elem.setAttribute("value", str(jid)) 984 self.elem.setAttribute("value", str(jid))
985
986 @property
987 def value(self):
988 return self.elem.getAttribute("value")
985 989
986 990
987 class DividerWidget(Widget): 991 class DividerWidget(Widget):
988 type = "divider" 992 type = "divider"
989 993