def validate ( self, object, name, value ):
        if isinstance( value, basestring ):
            return value

        self.error( object, name, value )
Validates that a specified value is valid for this trait.
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseStr.validate