fritzy/SleekXMPP — pull request #162 by mathieui (2012-04-24 14:44:53+00:00)
Title: Merge of XEP-0045

So here is an update of the 0045 plugin, it breaks some compatibility (mostly because I’ve rewritten the XML Element classes to fit more closely the schema shown in the XEP). Please ignore the XEP-0048/49 plugins for now, and discard the other changes.

## Differences with the current develop: ##
* Makes use of stanza plugins/attributes from Element, instead of playing with the xml
* More in-code documentation
* More admin use case function (set_role, set_affiliation, request_list, send_list)
* Default function names are PEP8-compliant (although there are still CamelCased ones for compat)
* Error are not swallowed to preserve the old API, but consistent with the rest
* join_muc accepts more history types
* Declining invitations
* Moderation lists

## Tests: ##
I did not unit test it, but so far, I have tried almost all poezio use cases (joining/leaving/changing nick/changing roles/changing affiliations/configuring the room, etc…). I also played a bit with the roles/affiliation lists by hand, and it worked as expected.

## Notes: ##
I tried to limit the breakage from the previous API, adapting the whole of poezio took 70 lines modifications, with half of it removing functionnalities that are now in the plugin (e.g. requesting various types of history when entering a MUC).