#NEWLINE# def get_task( self , project , taskid , fields = None ) : #NEWLINE# #INDENT# if ( project not in self . projects ) : #NEWLINE# #INDENT# self . _list_project ( ) #NEWLINE# #UNINDENT# if ( project not in self . projects ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# self . table . name = self . _tablename ( project ) #NEWLINE# columns = ( [ getattr ( self . table . c , f , f ) for f in fields ] if fields else self . table . c ) #NEWLINE# for each in self . engine . execute ( self . table . select ( ) . with_only_columns ( columns ) . limit ( 1 ) . where ( ( self . table . c . taskid == taskid ) ) ) : #NEWLINE# #INDENT# return self . _parse ( result2dict ( columns , each ) )