

def validate(self, value):
    value = super(CredentialsProperty, self).validate(value)
    logging.info(('validate: Got type ' + str(type(value))))
    if ((value is not None) and (not isinstance(value, Credentials))):
        raise db.BadValueError(('Property %s must be convertible to a Credentials instance (%s)' % (self.name, value)))
    return value

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/google-api-python-client/oauth2client/appengine.py CredentialsProperty.validate/original