#NEWLINE# def _WriteChunk( self , chunk ) : #NEWLINE# #INDENT# if chunk . dirty : #NEWLINE# #INDENT# chunk_name = self . urn . Add ( ( self . CHUNK_ID_TEMPLATE % chunk . chunk ) ) #NEWLINE# with FACTORY . Create ( chunk , self . STREAM_TYPE , mode = 'rw' , token = self . token ) as fd : #NEWLINE# #INDENT# fd . write ( chunk . getvalue ( ) )