Commit Graph

28 Commits

Author SHA1 Message Date
enus.linden
776db124f3 adding deferred packet parsing (not parsing fully packets we aren't handling, plus some chat type stuff, and stubbing out EnableSimulator handling 2009-03-12 20:48:26 +00:00
enus.linden
f0ddf774f6 merging the enus-refactor branch into the trunk 2009-03-03 01:40:52 +00:00
enus.linden
487c3e4c79 fixed cap.POST for 404 case, need to in time migrate to a full blown implementation here 2009-02-11 00:41:07 +00:00
enus.linden
3f58f2f06f adding param to flip caps logging 2009-02-06 00:29:40 +00:00
enus.linden
71af1552f3 merging r1733:1769 from enus-event-handling, which adds events, packet handlers, and packet builders, and some cruft 2009-02-05 23:26:52 +00:00
enus.linden
73b1e09190 enabled event queue in region and agent domain (untested) via eventlet. added login transform handling for legacy login 2009-01-29 06:58:03 +00:00
enus.linden
56c068fa64 agni seems to return application/xml, we'll support it for now 2008-12-05 11:25:56 +00:00
enus.linden
d34a200e42 merging the merge-enus-zca-removal branch into trunk of pyogp.lib.base 2008-11-26 06:00:42 +00:00
enus.linden
79bb226c6e replacing tabs with 4 spaces to hopefully encourage better formatting standards and to make for easiermerges in the future 2008-11-11 00:24:53 +00:00
enus.linden
d197a7ac6e adding intial exceptions to message dir, replaced locklainns exceptions with custom ones 2008-10-01 08:42:11 +00:00
enus.linden
9b2d132005 cleaning up some exceptions 2008-10-01 07:37:34 +00:00
enus.linden
c778864793 updates to accomodate Draft 3 of the OGP spec, http://wiki.secondlife.com/wiki/OGP_Draft_3 2008-09-24 04:49:43 +00:00
enus.linden
0c5e9b67ea oh me, adding a bunch of license info to a bunch of files. i hope i don't break anything 2008-09-16 06:26:17 +00:00
enus.linden
4d6f2cd99d initial logging and exception handling changes 2008-09-16 00:03:48 +00:00
tao.takashi
b12dd96db0 - added exceptions to caps.py - added tests for testing exceptions - added some tests for cap.GET() and cap.POST() - added name to caps string representation and fixed login.txt to not fail because of it 2008-08-28 22:16:33 +00:00
locklainn.linden
54f7d57ae4 event queue get for sim and AD in place 2008-08-14 14:24:30 +00:00
tao.takashi
7767de6f3a changed the string exception to a class based exception 2008-08-10 16:10:20 +00:00
enus.linden
9300051aab added e.code (http code) to caps.py, updating *_info tests 2008-08-05 21:30:41 +00:00
enus.linden
2cdd213f03 adding GET (sans tests atm) to caps.py 2008-08-05 21:19:26 +00:00
enus.linden
cbb641d4a0 adding workaround for SVC-2720 2008-07-31 06:05:14 +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
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
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
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
a1df8813b0 added repr() calls to better display itself on prints 2008-07-14 18:42:24 +00:00
locklainn.linden
5bb135727d 2008-06-27 15:10:24 +00:00