#NEWLINE# def __init__( self , atomEntryXml = None , **kw ) : #NEWLINE# #INDENT# "Create a basic `Entry` document, setting the generator and a timestamp for the updated element value.\n        \n        Any keyword parameters passed in will be passed to the add_fields method and added to the entry\n        bootstrap document. It's currently not possible to add a namespace and use it within the init call." #NEWLINE# self . nsmap = { #NEWLINE# #INDENT# 'dcterms' : 'http://purl.org/dc/terms/' , #NEWLINE# 'atom' : 'http://www.w3.org/2005/Atom' , #NEWLINE# #UNINDENT# } #NEWLINE# self . entry = etree . fromstring ( ( self . bootstrap if ( not kw ) else atomEntryXml ) ) #NEWLINE# if ( not ( 'updated' in kw . keys ( ) ) ) : #NEWLINE# #INDENT# kw [ 'updated' ] = datetime . now ( ) . isoformat ( ) #NEWLINE# #UNINDENT# self . add_fields ( ** kw )