From fe70ee1ce1dcdf72b135036597ccc92eaf68b7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 4 Oct 2016 14:28:21 +0200 Subject: [PATCH] Default task name to task type --- attract/tasks/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/attract/tasks/__init__.py b/attract/tasks/__init__.py index 0ac37c9..e2f0c97 100644 --- a/attract/tasks/__init__.py +++ b/attract/tasks/__init__.py @@ -31,6 +31,8 @@ class TaskManager(object): :rtype: pillarsdk.Node """ + from pillar.web.jinja import format_undertitle + api = pillar_api() node_type = project.get_node_type(node_type_task['name']) if not node_type: @@ -47,6 +49,7 @@ class TaskManager(object): ) if task_type: + node_props['name'] = format_undertitle(task_type) node_props['properties']['task_type'] = task_type if parent: node_props['parent'] = parent