Commit 6291a974 authored by Romain Courteaud's avatar Romain Courteaud

Rename Form portal_type to ERP5 Form.

This allow bootstraping of the ERP5 site.
parent 7ced25ca
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Form</string> </value> <value> <string>ERP5 Form</string> </value>
</item> </item>
<item> <item>
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
......
...@@ -81,7 +81,7 @@ default_document_uri_template = url_template_dict["jio_get_template"]\n ...@@ -81,7 +81,7 @@ default_document_uri_template = url_template_dict["jio_get_template"]\n
\n \n
def getFormRelativeUrl(form):\n def getFormRelativeUrl(form):\n
return portal.portal_catalog(\n return portal.portal_catalog(\n
portal_type="Form",\n portal_type="ERP5 Form",\n
uid=form.getUid(),\n uid=form.getUid(),\n
id=form.getId(),\n id=form.getId(),\n
limit=1,\n limit=1,\n
...@@ -776,7 +776,7 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n ...@@ -776,7 +776,7 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
\'method\': \'POST\'\n \'method\': \'POST\'\n
}\n }\n
\n \n
elif traversed_document_portal_type == "Form":\n elif traversed_document_portal_type == "ERP5 Form":\n
renderFormDefinition(traversed_document, result_dict)\n renderFormDefinition(traversed_document, result_dict)\n
\n \n
# Define document action\n # Define document action\n
......
8 9
\ No newline at end of file \ No newline at end of file
Form ERP5 Form
\ 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