Fix typos for recent changes in urls
This commit is contained in:
@@ -7,7 +7,7 @@ import pillarsdk
|
||||
from pillar.web.system_util import pillar_api
|
||||
|
||||
from . import attrs_extra
|
||||
from .node_types.shot import node_type_shot
|
||||
from .node_types.task import node_type_task
|
||||
|
||||
|
||||
@attr.s
|
||||
@@ -32,7 +32,7 @@ class TaskManager(object):
|
||||
"""
|
||||
|
||||
api = pillar_api()
|
||||
node_type = project.get_node_type(node_type_shot['name'])
|
||||
node_type = project.get_node_type(node_type_task['name'])
|
||||
if not node_type:
|
||||
raise ValueError('Project %s not set up for Attract' % project._id)
|
||||
|
||||
|
@@ -72,7 +72,7 @@ def create_task(project, task_type=None):
|
||||
task = current_attract.task_manager.create_task(project, task_type=task_type)
|
||||
|
||||
resp = flask.make_response()
|
||||
resp.headers['Location'] = flask.url_for('attract.tasks.view_embed_task',
|
||||
resp.headers['Location'] = flask.url_for('.view_embed_task',
|
||||
project_url=project['url'],
|
||||
task_id=task['_id'])
|
||||
resp.status_code = 201
|
||||
|
@@ -62,7 +62,7 @@ script.
|
||||
* Create a task and show it in the #task-details div.
|
||||
*/
|
||||
function task_create() {
|
||||
var base_url = "{{ url_for('attract.tasks.create_task', project_url=project.url) }}";
|
||||
var base_url = "{{ url_for('attract.tasks.perproject.create_task', project_url=project.url) }}";
|
||||
|
||||
$.get(base_url, function(task_data) {
|
||||
|
||||
|
Reference in New Issue
Block a user