On Mon, Nov 24, 2003 at 09:59:28PM -0500, Greg Ward wrote:
> I've said it before, I'll say it again: this mis-feature will go into
> Quixote over my dead body. I can't really explain why I hate it so
Emphatic. :)
Plus, this really doesn't need to be part of Quixote; you could implement it
as a function wrapper.
_q_exports = ['func', ...]
def func [html] (foo, bar):
''
foo
...
func = arg_parser(func)
where arg_parser is a class or function that returns a callable, something
like (untested):
def arg_parser (func):
def f (request):
if hasattr(func.__call__, "func_code"):
varnames=func.__call__.func_code.co_varnames
... rest of Thomas's code ...
return func(*args, **form)
return f
--amk