+from __future__ import with_statement
import inspect
import req, dispatch, session, form
spec = inspect.getargspec(callable)
args = dict(data.items())
args["req"] = req
- if not spec.keywords:
+ if not spec[2]:
for arg in list(args):
- if arg not in spec.args:
+ if arg not in spec[0]:
del args[arg]
return callable(**args)
return wrapper
ss = specslot.slist(self)
for i, nm in enumerate(type(self).__sslots_a__):
bound, val = st.pop(nm, (False, None))
- print i, nm, bound, val
if not bound:
ss[i] = specslot.unbound
else: