979 Commits

Author SHA1 Message Date
tao.takashi
028353ee72 fixed formatting 2008-08-01 22:15:16 +00:00
tao.takashi
d9b95dca9f added documentation based on Sphinx 2008-08-01 21:52:19 +00:00
locklainn.linden
853e96a554 message system mostly in, just needs to be tested and checked for accuracy 2008-08-01 21:02:55 +00:00
locklainn.linden
e290c1377c 2008-08-01 15:41:34 +00:00
tao.takashi
7f4bf038d7 added support for EQG for AgentDomain, tests are pending.
The login script now calls the queue 3 times and prints this. Works currently
and returns an empty payload.
2008-08-01 15:27:30 +00:00
tao.takashi
98a4d2b9e9 added tests for capturing errors 2008-08-01 15:26:00 +00:00
locklainn.linden
6af0cdc8e6 message system reading from message.xml for message flavors 2008-08-01 13:50:11 +00:00
locklainn.linden
4b5a1fdc1b added an llsd builder and more stubs for the message system, now only to implement it 2008-07-31 20:58:51 +00:00
enus.linden
6eced948b9 couple of small edits to let messaging stop complaining 2008-07-31 06:36:15 +00:00
enus.linden
de695d13d3 couple of small edits to let messaging stop complaining 2008-07-31 06:35:43 +00:00
enus.linden
cbb641d4a0 adding workaround for SVC-2720 2008-07-31 06:05:14 +00:00
locklainn.linden
a250d16aef quick correction 2008-07-30 20:37:21 +00:00
locklainn.linden
5f07fec31a start to the message system 2008-07-30 20:35:58 +00:00
tao.takashi
f0b2fa908d fixed error handling 2008-07-30 11:08:08 +00:00
tao.takashi
d8a7e6f6f2 registered the deserializer for text/html as well to make it work with LL's agent domain 2008-07-29 17:52:40 +00:00
locklainn.linden
1f52714e9c 2008-07-29 16:55:58 +00:00
enus.linden
d2efd2eb2e tweaked the call to IPlaceAvatar in OGPLogin.py 2008-07-29 16:34:46 +00:00
locklainn.linden
e83be80e6d reader fully tested (again, says only 80ish percent, but testrunner includes method defs as untested code) 2008-07-29 15:46:27 +00:00
locklainn.linden
950558377a more tests for the reader, added data_unpacker 2008-07-29 15:10:59 +00:00
locklainn.linden
a404f0c43e fixed failure 2008-07-28 20:24:03 +00:00
locklainn.linden
6864ba9666 committing updates with 1 failure 2008-07-28 20:16:44 +00:00
locklainn.linden
795fc5fce8 reader well on its way 2008-07-28 18:08:28 +00:00
tao.takashi
67bcfb4b1b added deserializer for credentials plus a test for it (and the serializer as well). Also cleaned up unused interfaces. 2008-07-27 19:54:54 +00:00
locklainn.linden
1ae7a086d7 test for builder 2008-07-25 20:14:59 +00:00
locklainn.linden
fb6703b283 reader started 2008-07-25 20:10:04 +00:00
locklainn.linden
44ec67db61 this time without the .pyc 2008-07-25 13:24:54 +00:00
locklainn.linden
1b1d20d6ac message code moved into its own package 2008-07-25 13:24:25 +00:00
tao.takashi
5c6c9068fb pinned zope.interface version here as well 2008-07-24 23:47:33 +00:00
locklainn.linden
a9d5726a5f error catch for data packer 2008-07-24 19:54:23 +00:00
locklainn.linden
6857444a27 seems nearly all the message template building code is tested and covered (would be 100% if the testrunner didn't include import statements and class method definitions) 2008-07-24 19:52:35 +00:00
tao.takashi
03f309b012 merged trunk mrtopf-networking to trunk, grokified it, fixed a bug when not finding a serializer and added a test for it. Capabilities now also have a POST method for POSTing data to them. GET, etc. is pending. 2008-07-24 19:25:02 +00:00
tao.takashi
71d67ffce7 added registration step to the example 2008-07-24 18:07:32 +00:00
locklainn.linden
6979ace54b moved networked tests 2008-07-24 14:20:25 +00:00
tao.takashi
c3528af70e merged branch mrtopf-grokified into trunk. For making it work I resolved some obvious conflicts and changed the message parser classes to new style classes. 2008-07-23 20:03:40 +00:00
locklainn.linden
38c775429a added data packer, fixed and tested more of the builder (serializer first run test) 2008-07-23 19:57:15 +00:00
locklainn.linden
be05b84108 tests passed now. removed getters and setters and broke some stuff 2008-07-23 19:38:37 +00:00
locklainn.linden
455310f7bc builder nearly done. Tests all pass, but need more tests. 2008-07-23 19:25:46 +00:00
locklainn.linden
81b556d67d lots of work on the builder. serializer for message template data is in, building messages is in, now testing it all to make sure it works 2008-07-23 18:06:26 +00:00
locklainn.linden
b56d100787 almost finished the builder, and the tests for it mostly pass (will once its finished) 2008-07-22 20:13:59 +00:00
locklainn.linden
fd3dbd5530 template parser now doing the header decomposition. Message types added and now used (no more strings). Sizes also added to the variables. 2008-07-22 15:18:35 +00:00
locklainn.linden
195a8ac3c9 first pass at the message builder 2008-07-22 13:33:35 +00:00
locklainn.linden
970de7f0b5 Created the build/read versions of the message template, and added a rough outline of the builder 2008-07-22 12:44:07 +00:00
locklainn.linden
33c2f9cff8 writing the tests for the message builder, added message types 2008-07-21 21:12:23 +00:00
locklainn.linden
784ae4c35a renamed test_packets.py to test_template_parser.py for better naming 2008-07-21 18:43:32 +00:00
locklainn.linden
ad0d9745f5 added fail case for the parser 2008-07-21 18:42:08 +00:00
locklainn.linden
034de0a1a9 testing the message parsing and template data structures. Made some changes due to the tests 2008-07-21 18:18:39 +00:00
tao.takashi
8d80bf3c10 fixed requirements 2008-07-19 14:36:24 +00:00
tao.takashi
df7c4739f0 added doctests for the dict serializer/deserializer and the credential serializer, both using ISerialization. 2008-07-19 14:34:41 +00:00
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
tao.takashi
ed9aa20d06 added tests for capabilities testing. Added a new function to the test server which serves a dummy capability. 2008-07-19 14:17:33 +00:00