Commit 2422735b authored by Nicolas Delaby's avatar Nicolas Delaby

Replace empty space by minus character to follow Reference patterns used by DMS.

like P-PROJECT-My.New.Document-001-en

Requested by JPS.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38218 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fca36005
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -64,7 +61,7 @@ id_group = \'-\'.join((parent_type, object_type))\n ...@@ -64,7 +61,7 @@ id_group = \'-\'.join((parent_type, object_type))\n
\n \n
new_id = context.generateNewId(id_group=id_group, default=1)\n new_id = context.generateNewId(id_group=id_group, default=1)\n
\n \n
reference = "%s %s" % (context.Base_translateString(prefix), new_id)\n reference = "%s-%s" % (context.Base_translateString(prefix), new_id)\n
\n \n
context.setReference(reference)\n context.setReference(reference)\n
</string> </value> </string> </value>
......
828 829
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment