Well yeah following pep 8 is a must, but also pasting it into
http://paste.turbogears.org/ and sending a link will help us read
large blocks of code in the future.

Its not that his from isn't sending enough values its a position
argument and keyword argument mismatch.

-Ian

On 4/20/07, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> p0tat03 <[EMAIL PROTECTED]> writes:
>
> > Hey all, I have the following code, but I can't seem to get it to work
> > and I'm having trouble figuring it out. Note that I have similar code
> > for other (smaller) classes, and they work fine. I've checked it over
> > and over for typos but I just can't get it.
>
> I can't read that code: it's too messy.  If you want help with it,
> indent it more like what is suggested on PEP 8.
>
> (...)
>
> > So, when I submit the form, I get the following:
> >
> > TypeError: save() takes at least 13 non-keyword arguments (1 given)
>
> It says that your form is sending just one value and your controller
> expects 13.  Remove your error handler, add a tg_errors parameter
> (default it to None) and log.debug what your controller is receiving.
>
> Other than that, just with readable code...
>
>
> --
> Jorge Godoy      <[EMAIL PROTECTED]>
>
> >
>

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

Reply via email to