OK, I know what the problem is. I was deriving another mako template in this login.mako file. The inherited mako file had another form in it. So basically, I got two <form> tags in the final rendered template.
This would be a problem. Is there a way I can specify which form I want to htmlfill (through an id/class)? Thanks On Mon, Feb 15, 2010 at 8:41 AM, Anil <replic...@gmail.com> wrote: > I was playing around with Authkit. Then later I decided to not use it. > Removed all of the configuration changes I've done, in the environment. But > now I get this exception: > > ⇝ AssertionError: I don't know about this kind of <input>: textbox (pos: > (193, 24)) > > > Module ?:*2* in check <http://vps1.entic.net:5000/login/check#> > view <http://vps1.entic.net:5000/login/check#> > Module pylons.decorators.rest:*33* in check_methods > <http://vps1.entic.net:5000/login/check#> > view <http://vps1.entic.net:5000/login/check#> > Module entic.controllers.login:*64* in check > <http://vps1.entic.net:5000/login/check#> > view <http://vps1.entic.net:5000/login/check#> > << <http://vps1.entic.net:5000/login/check#> > html, > defaults=c. > form_result, > errors=c.form_errors > ) > else: > >> <http://vps1.entic.net:5000/login/check#>errors=c.form_errors > Module formencode.htmlfill:*78* in render > <http://vps1.entic.net:5000/login/check#> > view <http://vps1.entic.net:5000/login/check#> > Module formencode.rewritingparser:*36* in feed > <http://vps1.entic.net:5000/login/check#> > view <http://vps1.entic.net:5000/login/check#> > > > Here is my code: > @restrict('POST') > def check(self): > " check user/password " > > schema = LoginForm() > try: > c.form_result = schema.to_python(dict(request.params)) > except formencode.Invalid, error: > c.form_result = error.value > c.form_errors = error.error_dict or {} > html = render('/derived/login.mako') > return formencode.htmlfill.render( > html, > defaults=c.form_result, > errors=c.form_errors > ) > else: > ... > > I did a diff of these files with an older backup, and they are exactly the > same. I just do'nt get what changed that is causing this problem. Could it > be some other incompatible egg that was installed when I installed AuthKit? > I removed AuthKit and also python_openid. There is also elementtree egg, I > will remove that too and see. > > Thanks > > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.