tao.takashi 63a0469cdc refactored serialization handling in capabilities and credentials.
It all goes via one interface ISerialization which has a serialize() method which serializes the context into whatever output format and it has a content_type attribute which defines the content type of the output (default is LLSD).

There is a ISerialization adapter configured for both capabilities (from dicts) and PlainPasswordCredentials. See agentdomain.py for how to use it.

For deserialization there is a IDeserialization utility now. It is registered under the name of the content type it can deserialize. It produces dicts always. Use it like this:

deserializer = getUtility(IDeserialization,name="application/llsd-xml")
dict = deserializer.deserialize_string(s)

Tests for this component will be added later but they are indirectly tested by the login test which passes.
2008-07-19 14:21:18 +00:00
2008-06-27 15:10:24 +00:00
2008-06-27 15:47:05 +00:00
2008-06-27 15:10:24 +00:00
2008-06-27 15:10:24 +00:00
2008-06-27 15:10:24 +00:00
Description
Intercepting proxy + analysis toolkit for Second Life compatible virtual worlds
Readme 6.3 MiB
Languages
Python 62.9%
SQLPL 26.3%
omnetpp-msg 10.8%