Re: getting error when accessing response.context['form']

2008-10-16 Thread Malcolm Tredinnick
On Thu, 2008-10-16 at 10:49 -0700, meppum wrote: [...] > closer investigation reveals that the response.context dictionary is > somehow transformed into a list of 2 identical dictionaries. so > instead I need to do something like this: > > self.assertEqual(len(response.context[0]['customers']),

Re: getting error when accessing response.context['form']

2008-10-15 Thread Malcolm Tredinnick
On Wed, 2008-10-15 at 21:42 -0700, meppum wrote: > i get an error saying 'list indices must be integers'. I printed out > my full context and it follows this format: > > [[{form:success}]] > > to access this correctly i'd need to use something like > response.context[0][0]['form'] but that's no