Alberto Valverde schrieb:
I think turbogears.util.to_kw and turbogears.util.from_kw would solve
the positional parameters issue. Something like this:

args, kw = to_kw(func, args, kw) # all params inside kw
kw = decode(kw)
kw = validate(kw)
args, kw = from_kw(func, args, kw) # positional params back to args

Can you give me another hint?
The problem was that the weak signature decorator generates a function so that python will throw an exception due to wrong parameters (this is in CherryPy's code). Currently I don't see how we can change that with the two functions above...

The only possibility would be to use a more generic signature in our decorators so that they accept arbitrary arguments.

fs

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to