Move the imports to avoid cross-import problems (all this needs some rework)

This commit is contained in:
Christophe de Vienne 2012-10-15 14:30:46 +02:00
parent 318c6d6b83
commit 16d09b37da

View File

@ -114,6 +114,9 @@ def dict_from_params(datatype, params, path, hit_paths):
def get_args(funcdef, args, kwargs, body, mimetype):
from wsme.protocols import restjson
from wsme.protocols import restxml
newargs = []
for argdef, arg in zip(funcdef.arguments[:len(args)], args):
newargs.append(from_param(argdef.datatype, arg))
@ -140,6 +143,3 @@ def get_args(funcdef, args, kwargs, body, mimetype):
else:
newargs[-1] = bodydata
return newargs, newkwargs
from . import restjson
from . import restxml