I'll try using the email field to test the missing slash.
I'll try to get rid of the empty attributes as well.
All widget attributes are available through the "attributes"
attribute... say that 5 times fast.
Also, empty attributes should not render at all.
I'm worried your somehow not getting the latest version of the files.
Are you doing a git pull/clone or are you using the download functionality?
Once you get the latest version, make sure there is an "escape" function
at the top of the widget.py module, that should ensure you have the latest.
You may also want to delete your .pyc files.
On 03/01/2012 11:33 AM, Voltron wrote:
> Something must have gotten mixed up. I downloaded it 3 times, same
> results.
>
I'm confused on what exactly your trying to do.
Your passing in arrays for the values, and strings of "None", this is
going to render those as such.
You should really use an object to pre-populate as it will convert the
strings to the proper types before populating.
When handling an incoming form submission you should be able to just
pass in a dictionary of your field names and their values, the values
should not be an array however.
Please post your code, thanks.
On 03/01/2012 03:09 PM, Voltron wrote:
> Ok, everything else seems OK, but the value attribute is still being
> prefilled. The only difference is that the value is now a list instead
> of a single value:
> arguments: {'_xsrf': ['536a0ec21b30487286284ab39fd61dcb'],
> 'password': ['None'], 'email': ['None']}
>
> Another test outside a tornado template:
>
> <input name='email' value='None' id='id_email' type='text' />
>
> On Mar 1, 8:19 pm, Voltron<nhy...@googlemail.com> wrote:
>> Great! I get the files by going to your repo on github and hitting
>> "download zip". I will check again
>>
I'll update tomorrow and hopefully have it all worked out.