Hi,
You are calling manipulator.do_html2python() before the call to
get_validation_errors()

The correct thing is to call do_html2python() after you have validated
the data and there are no errors.

It should look like this:

        errors = manipulator.get_validation_errors(new_data)
        print errors
        if not errors:
            print "noerrors"
            manipulator.do_html2python(new_data)
            print new_data['owner']


Cheers,
Jorge




On 7/13/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have an integer in my model:
>      rating= models.IntegerField(null=true, blank=true)
> And I create my Add form for the class like as described in the
> manipulator doc with a manipulator[1]. As expected, { form.rating }
> creates an input field. However, when I try to submit the form I get
> the error "Non iterable argument", see [2].
>
> Anybody can help me out with this?
>
> [1] http://wservices.ch/~lucas/ablage/views.py
> [2] http://wservices.ch/~lucas/ablage/error.html
>
> regards, lucas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Signed with GPG & Enigmail - see http://www.vincisolutoins.ch/pgp/
>
> iD8DBQFEtn4P3RQ/RpGW2HgRAn9qAJ9btgJXt34o2aQWnSiXwRkmwVnOBwCgsmrO
> yDHFpzWwFpM2jN7RlXmHyYY=
> =iBZU
> -----END PGP SIGNATURE-----
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to