#NEWLINE# def save_by_user( self , user , * args , **kwds ) : #NEWLINE# #INDENT# if ( not self . can_update ( user ) ) : #NEWLINE# #INDENT# if ( getattr ( self , '_cant_update_fieldName' , None ) is not None ) : #NEWLINE# #INDENT# raise PermissionDenied ( ( 'You do not have permission to update field %s on object %s' % ( self . _cant_update_fieldName , self . __class__ . __name__ ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise PermissionDenied ( ( 'You do not have permission to update %s objects' % self . __class__ . __name__ ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . save ( * args , ** kwds )