#NEWLINE# def update( self , event ) : #NEWLINE# #INDENT# 'update `event` in vdir and db' #NEWLINE# assert self . etag #NEWLINE# if self . _calendars [ event . calendar ] [ 'readonly' ] : #NEWLINE# #INDENT# raise ReadOnlyCalendarError ( ) #NEWLINE# #UNINDENT# with self . _backend . at_once ( ) : #NEWLINE# #INDENT# event . etag = self . _storages [ event . calendar ] . update ( event . href , event , event . etag ) #NEWLINE# self . _backend . update ( event . raw , event . href , event . etag , calendar = event . calendar ) #NEWLINE# self . _backend . set_ctag ( self . _local_ctag ( event . calendar ) , calendar = event . calendar )