this is fixed in trunk.

On Feb 23, 5:54 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> You found a bug.
>
> In gluon/compileapp.py these two lines:
>
>             page = run_controller_in(plugin, function,
>                                      other_environment)
>             other_response.view = '%s/%s.%s' %
> (plugin,function,other_request.extension)
>
> must be reversed. I will fix it and repost asap.
>
> Massimo
>
> On Feb 23, 7:12 am, vihang <vihan...@gmail.com> wrote:
>
> > if I set ajax=True, that section keeps saying 'loading...' and nothing
> > loads.
>
> > response.render doesn't help either, it loads the default view.
>
> > On Feb 23, 12:25 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > I need to test it but I do not see if should not work.
>
> > > Can you try:
>
> > > LOAD(...,ajax=True)
>
> > > and or
>
> > > def AP():
> > >      response.view = 'blank.html'
> > >      return response.render('default/
> > > blank.html',message=db(db.Purchase_Invoice.id>0).select(db.Purchase_Invoice.Due.sum()))
>
> > > On Feb 22, 12:09 pm, vihang <vihan...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I tried the following code
>
> > > > def index():
> > > >     return dict(message="Accounting Dashboard")
>
> > > > def AP():
> > > >     response.view = 'blank.html'
> > > >     return
> > > > dict(message=db(db.Purchase_Invoice.id>0).select(db.Purchase_Invoice.Due.sum()))
>
> > > > The calling AP using LOAD in index.html works fine, but does not use
> > > > the template 'blank.html', but the generic one. If I create AP.html,
> > > > then it works fine. Is it possible to use response.view somehow with
> > > > LOAD ??
>
> > > > Thanks
> > > > Vihang

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to