'update one project'

def _update_project(self, project):

    if (project['name'] not in self.projects):
        self.projects[project['name']] = Project(self, project)
    else:
        self.projects[project['name']].update(project)
    project = self.projects[project['name']]
    if project._send_on_get_info:
        project._send_on_get_info = False
        self.on_select_task({'taskid': '_on_get_info', 'project': project.name, 'url': 'data:,_on_get_info', 'status': self.taskdb.SUCCESS, 'fetch': {'save': self.get_info_attributes}, 'process': {'callback': '_on_get_info'}})
    if project.active:
        if (not project.task_loaded):
            self._load_tasks(project)
            project.task_loaded = True
    else:
        if project.task_loaded:
            project.task_queue = TaskQueue()
            project.task_loaded = False
        if (project not in self._cnt['all']):
            self._update_project_cnt(project.name)
