def _create_entry(entry_body):
 updated_str = datetime.utcnow().isoformat()
 if (datetime.utcnow().utcoffset() is None):
  updated_str += '+00:00'
 entry_start = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>\n<entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom" >\n<title /><updated>{updated}</updated><author><name /></author><id />\n<content type="application/xml">\n    {body}</content></entry>'
 return entry_start.format(updated=updated_str, body=entry_body)

def _create_entry ( entry_body ) : updated_str = datetime . utcnow ( ) . isoformat ( ) if ( datetime . utcnow ( ) . utcoffset ( ) is None ) : updated_str += '+00:00' entry_start = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>\n<entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom" >\n<title /><updated>{updated}</updated><author><name /></author><id />\n<content type="application/xml">\n    {body}</content></entry>' return entry_start . format ( updated = updated_str , body = entry_body )
adds common part of entry to a given entry body and return the whole xml .