durusmail: quixote-users: Forms' name in quixote2
Forms' name in quixote2
Forms' name in quixote2
Santiago RuanoRincón
2007-03-14
Hi,

Recently, DeStar [1] was upgraded from quixote 1.X to quixote 2.4. Now,
we have a problem with some javascript functions which order the columns
in a table, according the data submited from a form, these functions
worked with quixote1.form2, but don't with quixote2.form.

The problem is due the new form class doesn't have a "name" attribute.


this is the __init__ method in form.py from quixote1.2

    def __init__(self,
                 name=None,
                 method="post",
                 action_url=None,
                 enctype=None,
                 use_tokens=True,
                 attrs=None):

and this is from quixote2.5a1 (the same from 2.4):

    def __init__(self,
                 method="post",
                 action=None,
                 enctype=None,
                 use_tokens=True,
                 **attrs):

name=None is missing.

Why this was changed? is this a bug?

[1] http://destar.berlios.de

Best regards,

--
Santiago Ruano Rincón
http://www.avatar.com.co
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBF9zW1QUuEI2/szeARAtC7AJ9l71gTNetCqKNLLIQxHIvyvd0z7gCeJmJP
Zxy5yNQlPsQaW3ONLIwLPRc=
=17ok
-----END PGP SIGNATURE-----
reply