#NEWLINE# def __init__( self , collection_id = None , **kwargs ) : #NEWLINE# #INDENT# logger . debug ( 'new Collection {kwargs}' . format ( kwargs = kwargs ) ) #NEWLINE# if ( collection_id is None ) : #NEWLINE# #INDENT# collection_id = _make_id ( ) #NEWLINE# #UNINDENT# self . cid = collection_id #NEWLINE# now = datetime . datetime . utcnow ( ) #NEWLINE# if ( 'created' in kwargs ) : #NEWLINE# #INDENT# self . created = kwargs [ 'created' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . created = now #NEWLINE# #UNINDENT# if ( 'last_modified' in kwargs ) : #NEWLINE# #INDENT# self . last_modified = kwargs [ 'last_modified' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . last_modified = now #NEWLINE# #UNINDENT# super ( Collection , self ) . __init__ ( ** kwargs )