#NEWLINE# def save( self ) : #NEWLINE# #INDENT# for key in self . _deleted : #NEWLINE# #INDENT# self . apidelete ( key ) #NEWLINE# #UNINDENT# self . _deleted . clear ( ) #NEWLINE# if self . _cached : #NEWLINE# #INDENT# if ( not self . ignore_fields ) : #NEWLINE# #INDENT# self . apipost ( jl = self . _data , is_idempotent = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . apipost ( jl = dict ( ( ( self , v ) for ( k , v ) in self . _data . iteritems ( ) if ( k not in self . ignore_fields ) ) ) , is_idempotent = True )