Ouch, this sounds bad. I will look into it as soon as I get a break at work.
If somebody else could take a look that would be great! On Mon, Mar 23, 2009 at 9:48 AM, Christoph Zwerschke <c...@online.de> wrote: > > Am I doing something fundamentally wrong or is there a problem with the > validate decorator in TG 2.0rc1? > > I'm using it in the very basic way as described here: > http://turbogears.org/2.0/docs/main/Validation.html#validating-arguments-without-form-widgets > > To reproduce the problem, quickstart an application, add the following > at the top of controllers/root, > > from tg import validate > from formencode import validators > > and change the index method of the root controller like this: > > �...@expose('foo.templates.index') > �...@validate(validators=dict(nr=validators.Int())) > def index(self, nr=None): > ... > > Now run the application and surf to http://localhost:8080/index/1. > > The validator should pass, but I'm getting this: > TypeError: index() got multiple values for keyword argument 'nr' > > -- Christoph > > > > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to turbogears-trunk@googlegroups.com To unsubscribe from this group, send email to turbogears-trunk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---