@db_api.retry_if_session_inactive()
def is_object_blocked(context, object_id, object_type):
 standard_attr_id = _get_standard_attr_id(context, object_id, object_type)
 if (not standard_attr_id):
  return False
 return bool(context.session.query(pb_model.ProvisioningBlock).filter_by(standard_attr_id=standard_attr_id).count())

@ db_api . retry_if_session_inactive ( ) def is_object_blocked ( context , object_id , object_type ) : standard_attr_id = _get_standard_attr_id ( context , object_id , object_type ) if ( not standard_attr_id ) : return False return bool ( context . session . query ( pb_model . ProvisioningBlock ) . filter_by ( standard_attr_id = standard_attr_id ) . count ( ) )
return boolean indicating if object has a provisioning block .