#NEWLINE# def save( self , update_time = False ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'url' : self . url , #NEWLINE# 'description' : self . description . encode ( 'utf-8' ) , #NEWLINE# 'extended' : self . extended , #NEWLINE# 'tags' : self . tags , #NEWLINE# 'shared' : ( 'yes' if self . shared else 'no' ) , #NEWLINE# 'toread' : ( 'yes' if self . toread else 'no' ) , #NEWLINE# #UNINDENT# } #NEWLINE# if update_time : #NEWLINE# #INDENT# params [ 'dt' ] = self . time #NEWLINE# #UNINDENT# return self . pinboard . posts . add ( ** params )