TG quickstart with auth and ming enabled has error when editing in admin interface

14 views
Skip to first unread message

Stuart Zurcher

unread,
Jan 7, 2013, 1:00:58 PM1/7/13
to turbo...@googlegroups.com
I have two different quickstart projects with auth and ming enabled.  Both of them fail with an error like "_validate_noop() takes exactly 3 arguments (2 given)." when trying to edit a user.  ie. changing "Example manager" to 'manager'.

I have no problems querying and changing the User db with modules written in the rootcontroller.

Anyone else running into the same problem?

Alessandro Molina

unread,
Jan 7, 2013, 1:13:06 PM1/7/13
to TurboGears .
Yes,
this is related to an issue with sprox on multiple selection fields (Like groups and permissions), it has already been fixed and as soon as sprox 0.8.2 is released it should fix by simply updating it.

In the mean time you can install sprox using pip install -e hg+https://bitbucket.org/percious/sprox#egg=sprox to get it from the repository.



--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/jHTlQaB8J8UJ.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

Stuart Zurcher

unread,
Jan 7, 2013, 3:34:54 PM1/7/13
to turbo...@googlegroups.com
Thank you!

Stuart Zurcher

unread,
Jan 15, 2013, 9:03:16 AM1/15/13
to turbo...@googlegroups.com
For anyone else who might be having the same problem, my quick fix was to change line 79 in tw2.core.validator.py to "validator.validate_python(value, state)".

Alessandro Molina

unread,
Jan 17, 2013, 4:07:31 AM1/17/13
to TurboGears .
Newly released tw2.core 2.1.3 should already include this change and so should fix issues with sprox.


--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/xxpp6EvMH3YJ.
Reply all
Reply to author
Forward
0 new messages