Seems like you have a type="textbox" when you should have a type="text".
http://www.w3.org/TR/html401/interact/forms.html#h-17.4
type = text|password|checkbox|radio|submit|reset|file|hidden|image|button

People on the formencode just recently list talked about adding a way to
tell htmlfill.render which form to render.  There are pros and cons.  I
think it is more logical to just place your form in a template function and
capture it and have htmlfill render that html only.



On Mon, Feb 15, 2010 at 9:35 AM, Anil <[email protected]> wrote:

> 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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to