X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fstorage%2Fparameter.py;fp=sfa%2Fstorage%2Fparameter.py;h=dc9d5b5c2dcec307095ab03a906ebc6163a6759d;hb=30d9951e075d93127c3909dcb41be09b420b3525;hp=6737d0bd226ad0dded13887c459d7434955360e8;hpb=faa98a764e6a311400ac54933fca910c8bdd1cf2;p=sfa.git diff --git a/sfa/storage/parameter.py b/sfa/storage/parameter.py index 6737d0bd..dc9d5b5c 100644 --- a/sfa/storage/parameter.py +++ b/sfa/storage/parameter.py @@ -5,9 +5,11 @@ # Copyright (C) 2006 The Trustees of Princeton University # -from types import NoneType, IntType, LongType, FloatType, StringTypes, DictType, TupleType, ListType +from types import NoneType, IntType, LongType, FloatType, DictType, TupleType, ListType from sfa.util.faults import SfaAPIError +from sfa.util.py23 import StringType + class Parameter: """ Typed value wrapper. Use in accepts and returns to document method @@ -89,7 +91,7 @@ def xmlrpc_type(arg): return "boolean" elif arg_type == FloatType: return "double" - elif arg_type in StringTypes: + elif issubclass(arg_type, StringType): return "string" elif arg_type == ListType or arg_type == TupleType: return "array"