#NEWLINE# def get_task( self , project , taskid , fields = None ) : #NEWLINE# #INDENT# if self . _changed : #NEWLINE# #INDENT# self . refresh ( ) #NEWLINE# #UNINDENT# ret = self . es . get ( index = self . index , doc_type = fields . __type__ , id = ( '%s:%s' % ( project , taskid ) ) , _source_include = ( fields or [ ] ) , ignore = 404 ) #NEWLINE# return self . _parse ( ret . get ( '_source' , None ) )