parameters: (self, ticket, search_key, process=None)
return_statement: return ret_tasks
docstring: 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
docstring_summary: Get the tasks of an sobject
docstring_tokens: Get the tasks of an sobject
function: 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
function_tokens: 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