diff options
author | Lance Stout <lancestout@gmail.com> | 2012-03-27 21:05:50 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-03-27 21:05:50 -0700 |
commit | a1ddd88208d4120db7210ca363e03116b376e3bf (patch) | |
tree | b2e6f2dcbcabdf9927bf8968ee2b92f428426a37 /docs/plugin_arch.rst | |
parent | ee6a9b981a13aef6066501984d53bf369ca74c2a (diff) | |
download | slixmpp-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 'docs/plugin_arch.rst')
0 files changed, 0 insertions, 0 deletions