Oops, forgot we already fixed that in trunk, so it will be work properly in 
the next release.
 
Anthony

On Tuesday, July 19, 2011 9:50:37 AM UTC-4, Anthony wrote:

> Good catch. I'll submit a patch.
>
> On Tuesday, July 19, 2011 8:56:08 AM UTC-4, apple wrote:
>
>> I note that when ajax=False then request.vars is a dict rather than a 
>> storage object. 
>>
>> On Jul 19, 11:44 am, apple <sim...@gmail.com> wrote: 
>> > The following works fine with the SQLFORM line and ajax=false or 
>> > ajax=true. However replacing SQLFORM line with the CRUD line it works 
>> > with ajax=true but fails with ajax=false, generating one of those 
>> > annoying "restricted errors". I am guessing related to previous issue 
>> > with request.vars and load? 
>> > 
>> > CONTROLLER 
>> > def test(): 
>> >     return dict() 
>> > def testload(): 
>> >     form=crud.update(db.customer,"1") 
>> >     #form=SQLFORM(db.customer,"1") 
>> >     return dict(form=XML(form.xml())) 
>> > TEST.HTML VIEW 
>> > {{extend 'layout.html'}} 
>> > {{=LOAD(c='crm',f='testload.load', ajax=False, ajax_trap=True)}} 
>> > TESTLOAD.LOAD VIEW 
>> > {{=form}}
>
>

Reply via email to