(self, ticket, search_key, process=None)
return ret_tasks
Get the tasks of an sobject

        ticket - authentication ticket
        search_key - the key identifying an sobject as registered in
                    the search_type table.

        @return:
        list of tasks
Get the tasks of an sobject
Get the tasks of an sobject
def get_tasks(self, ticket, search_key, process=None):
        '''Get the tasks of an sobject

        ticket - authentication ticket
        search_key - the key identifying an sobject as registered in
                    the search_type table.

        @return:
        list of tasks
        '''

        if isinstance(search_key, dict):
            search_key = search_key.get('__search_key__')
        sobject = Search.get_by_search_key(search_key)

        search = Search("sthpw/task")
        search.set_parent(sobject)
        if process:
            search.add_filter("process", process)
        tasks = search.get_sobjects()

        ret_tasks = []
        for task in tasks:
            task_dict = self._get_sobject_dict(task)
            ret_tasks.append(task_dict)

        return ret_tasks
def get_tasks ( self , ticket , search_key , process = None ) : if isinstance ( search_key , dict ) : search_key = search_key . get ( '__search_key__' ) sobject = Search . get_by_search_key ( search_key ) search = Search ( "sthpw/task" ) search . set_parent ( sobject ) if process : search . add_filter ( "process" , process ) tasks = search . get_sobjects ( ) ret_tasks = [ ] for task in tasks : task_dict = self . _get_sobject_dict ( task ) ret_tasks . append ( task_dict ) return ret_tasks