So...

Thank you very much. what a dumb.

B.T.W. there is a way to modify login and registration form called by
t2 functions?

Regards,

Oscar.



On 16 ene, 21:04, mdipierro <[email protected]> wrote:
> response.menu=[
>              [T('Main'),False,t2.action('index')],
>              [T('Login'),False,t2.action('entrar')],
>              [T('Register'),False,t2.action('registrarse')]
>          ]
>
> the = is missing
>
> Massimo
>
> On Jan 15, 7:57 pm, Oscar <[email protected]> wrote:
>
> > Hi,
>
> > I'm just following the tutorial as a base for concept app, i'm using
> > response.menu for get a menu in my page but i getting the following
> > error:
>
> > Error traceback
>
> > Traceback (most recent call last):
> >   File "/Users/ra/codigo_fuente/web2py/gluon/restricted.py", line 62,
> > in restricted
> >     exec ccode in environment
> >   File "/Users/ra/codigo_fuente/web2py/applications/main/controllers/
> > default.py", line 13, in <module>
> >     [T('Register'),False,t2.action('registrarse')]
> > TypeError: 'NoneType' object is unsubscriptable
>
> > My code:
>
> > response.menu[
> >              [T('Main'),False,t2.action('index')],
> >              [T('Login'),False,t2.action('entrar')],
> >              [T('Register'),False,t2.action('registrarse')]
> >          ]
>
> > def registrarse(): return dict(form=t2.register())
> > def entrar(): return dict(form=t2.login())
> > def salir(): t2.logout(next='index')
>
> > def index():
> >  aplicaciones=self.itemize(db.apps)
> >  return dict(Aplicaciones=aplicaciones)
>
> > def detalle_aplicacion():
> >  aplicacion=self.itemize(db.apps)
> >  return dict(Aplicacion=aplicacion).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to