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
locklainn.linden
fe238cf56d
did some renaming to go along with the pep. Also, added the message number as a hex value to the MessageTemplate for faster access (no decoding) when we get it from the udp pipe.
2008-07-18 14:57:22 +00:00
tess.linden
2847c290ff
tess rewrote ogp test cases
2008-07-17 19:37:10 +00:00
locklainn.linden
dcc8678069
leyla's test_request_rez_avatar.py script
2008-07-17 17:44:41 +00:00
locklainn.linden
2ecc5f3246
changed the templates to follow the pep spec
2008-07-17 15:44:39 +00:00
locklainn.linden
d7c840d682
you MAY need this to run the parser...
2008-07-16 20:58:44 +00:00
locklainn.linden
de47326d47
extracted all message template data out of the headers, and formatted printing
2008-07-16 20:10:40 +00:00
locklainn.linden
9812be37f3
parser put into a class to make it more practical and to give it some functionality for later use
2008-07-16 19:35:53 +00:00
locklainn.linden
3eb0510e17
I somehow had a bug in there, and I renamed things to the message template
2008-07-16 19:03:29 +00:00
locklainn.linden
8a0509de27
better renaming to make clear that it is using message template
2008-07-16 19:00:18 +00:00
locklainn.linden
8ca150fcb7
checkin for name updates
2008-07-16 18:51:56 +00:00
locklainn.linden
98049b7409
packet body dict in the works
2008-07-16 17:17:04 +00:00
locklainn.linden
d7570047bf
most up to date
2008-07-16 15:28:25 +00:00
locklainn.linden
5a3ed707d9
added message template so it would work
2008-07-16 15:21:03 +00:00
locklainn.linden
87f96c9313
first attempt at packets using the message template. This includes a header dictionary (frequency, num to name), reverse header dictionary (name to packet header frequency,num), creating a packet list that has all packets that are available, with their body blocks, as well as what data are in the blocks
2008-07-15 20:12:19 +00:00
tao.takashi
23ac671be7
fixed host and port to make it work again
2008-07-14 18:45:30 +00:00
tao.takashi
91486dccd7
removed call to pdb.
2008-07-14 18:45:02 +00:00
tao.takashi
b9a63fc0ec
removed registration call which would need grok (comes in a branch)
2008-07-14 18:44:42 +00:00
tao.takashi
99466026ce
added workaround between Linden Lab's Agent Domain implementation which sends the seed cap in the Location: header of a Redirect instead inside LLSD as agent_seed_capability.
...
We now check if the result if a string, then it's the header or if it's an addinfourl object which can be read from and should contain LLSD (the normal behaviour of urllib2).
2008-07-14 18:44:04 +00:00
tao.takashi
a1df8813b0
added repr() calls to better display itself on prints
2008-07-14 18:42:24 +00:00
tao.takashi
3273416923
added test suite for login, using a doctest and the dummy server defined in base.py
...
After setup.py is adjusted you first have to start the test server using bin/testserver and after that running the tests using bin/test
This will be later refactored to be more automatic.
2008-07-14 18:00:20 +00:00
tao.takashi
e35700eb72
adding dummy test server for testing
2008-07-14 17:58:39 +00:00
locklainn.linden
f608ca3921
added another example of OGP Login so that it could be tested added a test class for the OGP Login added some dependencies to the test runner that is produced by buildout
2008-07-14 14:39:56 +00:00
locklainn.linden
5726a40b3c
Removed the files that were not necessary
2008-07-01 12:30:48 +00:00
locklainn.linden
c2b80d65f0
added the example login code to the test folder
2008-06-30 13:34:32 +00:00
locklainn.linden
45934bf9c1
added the linden base code to the lib
2008-06-30 13:30:33 +00:00
locklainn.linden
2d097f07c2
put back all the files that were used in the old pyogp code for historical and referencing purposes
2008-06-30 13:21:26 +00:00
locklainn.linden
cf8ff3515e
ignores set
2008-06-27 15:47:05 +00:00
locklainn.linden
5bb135727d
2008-06-27 15:10:24 +00:00
Salad Dais
57f8cc2898
start
2019-11-18 17:40:01 -08:00