Gustavo Niemeyer schrieb: > Hey Christian, > > (...) >> I run into some Problems when i try to build a uri for my objects. > (...) >> I know this is very ugly but i don“t find a better way for doing this >> maybe someone of you has an better idea of doing this. > > As we discussed online, building a string representation of composed keys > for using on a URI certainly means some kind of encoding. If the service > is public it's important to keep an eye on how securely the > encoding/decoding procedure is done. With that in mind, I don't see many > choices besides defining such an encoding/decoding scheme for keys, which > is pretty much what you have done. > Hi Gustavo!
i have a new implementation for the problem for encode/decode a tuple of primary keys in a string and back. Here is the code which does the trick: http://stormcontainer.googlecode.com/svn/trunk/src/stormcontainer/utils.py and here is a unittest for it: http://stormcontainer.googlecode.com/svn/trunk/src/stormcontainer/tests/test_unittests.py Maybe someone of you (Gustavo) can have a look on this. Thx Christian -- storm mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
