#NEWLINE# def _delete_port_security_group_bindings( self , context , port_id ) : #NEWLINE# #INDENT# query = self . _model_query ( context , SecurityGroupPortBinding ) #NEWLINE# bindings = query . filter ( ( SecurityGroupPortBinding . port_id == port_id ) ) #NEWLINE# with context . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# for binding in bindings : #NEWLINE# #INDENT# context . session . delete ( binding )