Works. Thank you.

On dec. 20, 15:29, mdipierro <[email protected]> wrote:
> This is not a 1.90.4 specific error. The bug was there for some time.
> I think I just fixed it in trunk but I did not try it with your code.
> Please let us know if it now works for you.
>
> On Dec 20, 2:39 am, szimszon <[email protected]> wrote:
>
>
>
>
>
>
>
> > web2py™       Version 1.90.4 (2010-12-19 21:13:03)
> > Python  Python 2.6.6: /usr/bin/python
>
> > Traceback (most recent call last):
> >   File "/home/szimszon/fejlesztes/sajat/web2py/gluon/restricted.py",
> > line 188, in restricted
> >     exec ccode in environment
> >   File "/home/szimszon/fejlesztes/sajat/web2py/applications/
> > oregpreshaz/controllers/bevitel.py", line 281, in <module>
> >   File "/home/szimszon/fejlesztes/sajat/web2py/gluon/globals.py", line
> > 95, in <lambda>
> >     self._caller = lambda f: f()
> >   File "/home/szimszon/fejlesztes/sajat/web2py/applications/
> > oregpreshaz/controllers/bevitel.py", line 235, in vendegkonyv
> >     form = crud.create( db.guestbook, onaccept = flush_cache )
> >   File "/home/szimszon/fejlesztes/sajat/web2py/gluon/tools.py", line
> > 2897, in create
> >     deletable=False,
> >   File "/home/szimszon/fejlesztes/sajat/web2py/gluon/tools.py", line
> > 2825, in update
> >     self._addrow(form, captcha.label, captcha, captcha.comment,
> > AttributeError: 'Crud' object has no attribute '_addrow'
>
> > line 219:
> > def vendegkonyv():
> >     lista = None
> >     if not auth.user_id:
> >         crud.settings.create_captcha = Recaptcha( request,
> >                                  "6Leac...7pJA",
> >                                  "6Leacw...K-DC_" )
> >         crud.settings.update_captcha = Recaptcha( request,
> >                                  "6LeacwsA...j_wvT7pJA",
> >                                  "6Leacw...-DC_" )
> >     else:
> >         crud.settings.create_captcha = None
> >         crud.settings.update_captcha = None
>
> >     if ( ( auth.user_id == 1 ) and ( request.vars.r ) ):
> >         form = crud.update( db.guestbook, request.vars.r, deletable =
> > True, onaccept = flush_cache )
> >     else:
> >         form = crud.create( db.guestbook, onaccept = flush_cache )
> >     #form=SQLFORM.factory()
> >     #form[0][-2][0].append(LABEL(T("Captcha:")))
> >     form[0][-2][2].append( SPAN( T( "<- Please write down the two
> > words!" ) ) )
> >     try:
> >         lista = db( db.guestbook.id > 0 ).select( orderby =
> > ~db.guestbook.ts,
> >                                            cache = ( cache.disk,
> > 120 ) )
> >     except:
> >         pass
> >     return dict( form = form, lista = lista )

Reply via email to