##// END OF EJS Templates
allow for List traitlets to come from command line
Paul Ivanov -
Show More
@@ -1208,6 +1208,11 b' class Container(Instance):'
1208 raise TraitError(e)
1208 raise TraitError(e)
1209
1209
1210 def validate(self, obj, value):
1210 def validate(self, obj, value):
1211 # Command line arguments come in as strings, let's make them into
1212 # lists so we can proceed with validation
1213 if isinstance(value, basestring):
1214 value = value.split(',')
1215
1211 value = super(Container, self).validate(obj, value)
1216 value = super(Container, self).validate(obj, value)
1212 if value is None:
1217 if value is None:
1213 return value
1218 return value
General Comments 0
You need to be logged in to leave comments. Login now