Re: Extracting json data for parsing from HTTP GET

2010-09-02 Thread irum
Thank you so much, it worked:)...Now I just have to play with parsing json that I think I can manage. Thanks again:) Irum On Sep 2, 1:11 pm, Daniel Roseman wrote: > On Sep 2, 10:37 am, irum wrote: > > > > > Hi, > > Thanks for your prompt reply. > > I have tried

Re: Extracting json data for parsing from HTTP GET

2010-09-02 Thread irum
mplicated. And with: x = json.load(p) print x 'HttpResponse' object has no attribute 'read' In all the examples, p is the HttpResponse object I get. Looking forward, Irum On Sep 2, 12:09 pm, Daniel Roseman wrote: > On Sep 2, 9:57 am, irum wrote:

Extracting json data for parsing from HTTP GET

2010-09-02 Thread irum
n.loads and json.dumps on this data. With json.loads(p), I get the following error: expected string or buffer With json.dumps(p), I get the following error: is not JSON serializable How do I address this problem? Any help regarding this would be helpful. Thanks and Looking forward, Irum -- Yo

Re: deserializing json

2010-09-02 Thread irum
ied json.loads and json.dumps on this data. With json.loads(p), I get the following error: expected string or buffer With json.dumps(p), I get the following error: is not JSON serializable How do I address this problem? Any help regarding this would be helpful. Thanks and Looking forward, Irum

deserializing json

2010-08-20 Thread irum
ejson. Can someone give me a solution to this problem and help me fix this. Thanks, Irum I get the attribute error: 'HttpResponse' object has no attribute 'read' -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

urllib and writing web service clients

2010-07-09 Thread irum
le to invoke POST on 'payment' resource else it should set a flag to false. I will be implementing an algorithm, but I was thinking can we put conditions on invoking methods of resource like we would do with JML for java interfaces? I have been stuck with these problems for almost two we

problem deserialization

2010-06-24 Thread irum
lumn 1 (char 1) ... In line 1 of my views.py, I am just importing : from django.http import HttpResponse, HttpResponseNotAllowed, HttpResponseForbidden And there is no problem in this line, since my rest of the views perfectly fine if its not for this problem. Any help and input would

Re: problems with authentication of test client

2010-05-28 Thread irum
n this thread: http://groups.google.com/group/django-users/browse_thread/thread/617457f5d62366ae/e5d1436ac93aeb61?lnk=gst&q=baffled# I have also tried after updating my django-trunk but the problem persisits. Should I downgrade to Python 2.6.4 to fix this? Irum On May 28, 12:13 pm, Daniel Roseman wro

problems with authentication of test client

2010-05-28 Thread irum
status_code returned is 302 These tests are run successully, meaning the user is redirected to login page, implying that client never enters the else branch for authenticated user in the 'cauction' view. self.failUnlessEqual(r.status_code, 302) self.assertRedirects(res

Re: problem with running test

2010-05-26 Thread irum
Sorry, I fixed it. It was a small overlook so I thought I should post it here for newbies. After updating my django-trunk and including installed apps,I was missing application name after test, i.e., command should be: manage.py test [aapname] BR, Irum On May 26, 7:12 pm, irum wrote: >

problem with running test

2010-05-26 Thread irum
Hi, I am working on django for a project and have to do some funcitonal testing. However, whenever I run manage.py test, I get the error shown below. I have tried searching threads in this group and they mention having these applications installed in my settings file: 'django.contrib.auth', 'djang

Re: automatically performing an a task

2010-05-22 Thread irum
ation/$', resolveauction)). Now how do I fire manage.py from cron to trigger this uri(e.g. /res_auction/) functionality? Thanks again and looking forward, Irum On May 23, 1:18 am, Daniel Roseman wrote: > On May 22, 4:17 pm, irum wrote: > > > > > Hi, > > > I am working on

automatically performing an a task

2010-05-22 Thread irum
much appreciated as I am nearing my deadline this week:) Thanks in advance, Irum -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, sen