I use that way, when I need the page to be public, but protecting just some
parts of the page.

2010/9/30 mdipierro <[email protected]>

> There should be no need for that.
>
> the
>
> ``
> ...
>
> ``:widget
>
> is always embedded in a page that has permissions. So it will only be
> visible to users who have access to that page.
> the issue is the ajax callback.
>  That is already restricted to logged in users
>
> http://code.google.com/p/cube2py/source/browse/controllers/plugin_wiki.py
>
> @auth.requires_login()
> def jqgrid():
> ...
>
> Massimo
>
>
>
>
>
> On Sep 30, 2:41 pm, Bruno Rocha <[email protected]> wrote:
> > Thats not the best way, but I do:
> >
> > ``{{if auth.is_logged_in():}}``:template
> > ``table:xxxx``:jqgrid
> > ``{{pass}}``:template
> >
> > Ugly, but works.
> >
> > 2010/9/30 Richard Vézina <[email protected]>
> >
> >
> >
> > > Hello,
> >
> > > Is it possible to make jqgrid sensible to be "@auth.requires_login()"?
> >
> > > When there is a session that ends because no activity has been detect
> > > during long moment there is no message when user try to use the jqgrid
> > > control : search or refresh button...
> >
> > > I understand that it is a plugin that uses javascript, but maybe we can
> > > create a mechanism that could serve any plugin embeded. What do you
> think?
> >
> > > Regards.
> >
> > > Richard
> >
> > --
> >
> > http://rochacbruno.com.br
>



-- 

http://rochacbruno.com.br

Reply via email to