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