New update

Its not an easy task to post a blog post every 2-3 days, but here is another update atleast. So what can you do after this 5 days? You can create all orders that only contains arguments that are position or time based. That means that you for example can post No-operation and Move orders. You can also update the same type of orders. And you can remove all type of orders. There were a few problems when working this week. It wasn’t easy to get remove and update orders to work as I work from a different type of model. In the python client (tpclient-pywx) you have access to all objects and can use them whenever. But I use an http model and need to convert the objects to json and send them to the javascript frontend where the user does something (remove, update etc) and then send the data back and convert it into python objects and then use the libtpproto-py functions. But I managed to get it working by using a few hacks to make sure that ints and strings was passed around correctly.

The next thing to work on is doing List, Object, String based arguments so all possible orders may work with the webclient. These arguments seem to work a little different but I should able to get it to work pretty fast as the structure is there now and there is just a matter of adding the arguments. The problem I might have is to convert for instance whole objects and sending them over http. But from what I can see (did some research earlier) it shouldn’t be impossible :P

Thats it for today, more work tomorrow as its not much time left on GSoC.

Leave a Reply