Hi everybody,

I was trying to use the recaptcha feature with a crud form and I am
hitting an error:

  File "D:\My Dropbox\InterManager\web2py\gluon\tools.py", line 2808,
in update
    self._addrow(form, captcha.label, captcha, captcha.comment,
AttributeError: 'Crud' object has no attribute '_addrow'

I checked and indeed the Crud object did not seem to have an _addrow
method.

For a quick fix I copied the _addRow method from the Auth class in the
same file to the Crud class and it seems to work. But this duplication
of code sounds not right to me.

Do others have the same problem or am I sitting on some old code here?
My code is quite simple:

    crud.settings.captcha = Recaptcha(request,'Public Key', 'Private
Key')
    form=crud.create(db.faq_entries, next=nextStr)

Regards

Markus

Reply via email to