23 lines
829 B
Diff
23 lines
829 B
Diff
From 959e21356fde24e4557312203c665d2a787a36a2 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= <fpeters@entrouvert.com>
|
|
Date: Tue, 22 Jul 2014 15:36:36 +0200
|
|
Subject: workflows: makes sure workflow id is exported as a string (#5198)
|
|
|
|
|
|
diff --git a/wcs/workflows.py b/wcs/workflows.py
|
|
index 8e6b870..66b9af3 100644
|
|
--- a/wcs/workflows.py
|
|
+++ b/wcs/workflows.py
|
|
@@ -207,7 +207,7 @@ class Workflow(StorableObject):
|
|
charset = get_publisher().site_charset
|
|
root = ET.Element('workflow')
|
|
if include_id and self.id and not str(self.id).startswith('_'):
|
|
- root.attrib['id'] = self.id
|
|
+ root.attrib['id'] = str(self.id)
|
|
ET.SubElement(root, 'name').text = unicode(self.name, charset)
|
|
|
|
roles_node = ET.SubElement(root, 'roles')
|
|
--
|
|
cgit v0.10.2
|
|
|