Re: Dojango question

2008-11-02 Thread Wolfram Kriesing
awesome :-) Glad I could help. Feel free to ask anything, I will try to help! -- cu Wolfram http://uxebu.com - web consultancy You need AJAX, RIA, JavaScript and all this modern stuff? We got it! On Sun, Nov 2, 2008 at 1:14 AM, Rob Goedman <[EMAIL PROTECTED]> wrote: > > Wolfram, > > You bet

Re: Dojango question

2008-11-01 Thread Rob Goedman
Wolfram, You bet I've read your blogs! Wouldn't have gotten where I got to without them! Clearly I had missed the to_dojo_data(), that's exactly what I was looking for. This works super. Thanks a lot, Rob On Nov 1, 2008, at 4:45 PM, Wolfram Kriesing wrote: > > Hi Rob, > > aehm, maybe wha

Re: Dojango question

2008-11-01 Thread Wolfram Kriesing
Hi Rob, aehm, maybe what you were looking for was this: @json_response def send_toxids_list(request): ret = Toxid.objects.all() return to_dojo_data(ret, identifier='docno') the json_response decorator takes care of extrcting only the fields form the model, you dont have to do this by ha

Re: Dojango question

2008-11-01 Thread Wolfram Kriesing
Hi Rob, did you see the blog article http://blog.uxebu.com/2008/07/26/ajax-with-dojango/ and the examples in http://code.google.com/p/dojango/source/browse/trunk/dojango/views.py tbh I don't really understand what you are using the JSON serializer for. Could you may be explain, if the links abov

Dojango question

2008-11-01 Thread Rob Goedman
Hi, Just for Django & Dojo users. Working through the 'Mastering Dojo' book, updating the examples where applicable to Dojo 1.2 (i.e. grids) and making them work with Django svn has gone pretty smoothly. I wonder if below method is a reasonable way to generate fairly generic xhr* responses