Exemplo n.º 1
0
 def run(self):
     import_list = []
     
     my_file = self._get_file('cstl.txt')
     formatted_list = self._format_lines(my_file)
     
     for item in formatted_list:
         my_task = Task()
         my_task.task_id = item[0]
         my_task.name = item[1]
         my_task.description = item[2]
         my_task.parent_id = item[3]
         my_task.task_level = int(item[4])
         import_list.append(my_task)
         
     db.put(import_list)
     my_q = TaskMethods()
     asdf = my_q.get_all_tasks()
     return asdf
Exemplo n.º 2
0
    def run(self):
        import_list = []

        my_file = self._get_file('cstl.txt')
        formatted_list = self._format_lines(my_file)

        for item in formatted_list:
            my_task = Task()
            my_task.task_id = item[0]
            my_task.name = item[1]
            my_task.description = item[2]
            my_task.parent_id = item[3]
            my_task.task_level = int(item[4])
            import_list.append(my_task)

        db.put(import_list)
        my_q = TaskMethods()
        asdf = my_q.get_all_tasks()
        return asdf
Exemplo n.º 3
0
 def get_sub_tasks(self, request):
     asdf = TaskMethods()
     return asdf.get_sub_tasks(request)
Exemplo n.º 4
0
 def get_top_level_tasks(self, request):
     asdf = TaskMethods()
     return asdf.get_top_level_tasks()
Exemplo n.º 5
0
 def get_sub_tasks(self, request):
     asdf = TaskMethods()
     return asdf.get_sub_tasks(request)
Exemplo n.º 6
0
 def get_top_level_tasks(self, request):
     asdf = TaskMethods()
     return asdf.get_top_level_tasks()