Commit 0f71688d authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fix a bug with types

parent 8d106b87
......@@ -263,6 +263,8 @@ class AbstractParameter(object):
self.type = "multiple"
elif isinstance(type, types.FunctionType):
self.type = type
elif type.__class__.__name__ == "type":
self.type = type
try: self.type = eval(type)
except: self.type = types.StringType
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment