'Load `tasks` from the database'

def load_tasks(self):

    self.tasks = []
    for task in self.get_tasks():
        task_map = {u'title': task.subject, u'status': task.status, u'start_date': task.exp_start_date, u'end_date': task.exp_end_date, u'description': task.description, u'task_id': task.name, u'task_weight': task.task_weight}
        self.map_custom_fields(task, task_map)
        self.append(u'tasks', task_map)
