@db_api.retry_if_session_inactive()
def remove_provisioning_component(context, object_id, object_type, entity, standard_attr_id=None):
 with context.session.begin(subtransactions=True):
  standard_attr_id = (standard_attr_id or _get_standard_attr_id(context, object_id, object_type))
  if (not standard_attr_id):
   return False
  record = context.session.query(pb_model.ProvisioningBlock).filter_by(standard_attr_id=standard_attr_id, entity=entity).first()
  if record:
   context.session.delete(record)
   return True
  return False

@ db_api . retry_if_session_inactive ( ) def remove_provisioning_component ( context , object_id , object_type , entity , standard_attr_id = None ) : with context . session . begin ( subtransactions = True ) : standard_attr_id = ( standard_attr_id or _get_standard_attr_id ( context , object_id , object_type ) ) if ( not standard_attr_id ) : return False record = context . session . query ( pb_model . ProvisioningBlock ) . filter_by ( standard_attr_id = standard_attr_id , entity = entity ) . first ( ) if record : context . session . delete ( record ) return True return False
removes a provisioning block for an object with triggering a callback .