summaryrefslogtreecommitdiff
path: root/tests/test_stanza_xep_0009.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-27 21:05:50 -0700
committerLance Stout <lancestout@gmail.com>2012-03-27 21:05:50 -0700
commita1ddd88208d4120db7210ca363e03116b376e3bf (patch)
treeb2e6f2dcbcabdf9927bf8968ee2b92f428426a37 /tests/test_stanza_xep_0009.py
parentee6a9b981a13aef6066501984d53bf369ca74c2a (diff)
downloadslixmpp-a1ddd88208d4120db7210ca363e03116b376e3bf.tar.gz
slixmpp-a1ddd88208d4120db7210ca363e03116b376e3bf.tar.bz2
slixmpp-a1ddd88208d4120db7210ca363e03116b376e3bf.tar.xz
slixmpp-a1ddd88208d4120db7210ca363e03116b376e3bf.zip
Add support for a new type of stanza interface: bool
The set of bool_interfaces provides default behaviour for checking/setting the presence of empty subelements. The prime example of this would be: bool_interfaces = set(['required']) This would mean that ``stanza['required']`` would return ``True`` for: <stanza> <required /> </stanza> and ``False`` for: <stanza /> Likewise, assigning ``stanza['required'] = True`` would add an empty ``<required />`` element, and setting it to ``False`` would remove such an element if it exists.
Diffstat (limited to 'tests/test_stanza_xep_0009.py')
0 files changed, 0 insertions, 0 deletions