Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
df3fc177
Commit
df3fc177
authored
Oct 02, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow naming convention.
parent
a1e63472
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
...plateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
+11
-8
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
View file @
df3fc177
...
@@ -52,8 +52,11 @@
...
@@ -52,8 +52,11 @@
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
portal = context.getPortalObject()\n
Base_translateString = portal.Base_translateString\n
Base_translateString = portal.Base_translateString\n
preserved_parameters = {\'form_id\': form_id, \'cancel_url\': cancel_url,
preserved_parameter_dict = {\n
\'md5_object_uid_list\': md5_object_uid_list}\n
\'form_id\': form_id,\n
\'cancel_url\': cancel_url,\n
\'md5_object_uid_list\': md5_object_uid_list,\n
}\n
request = context.REQUEST\n
request = context.REQUEST\n
\n
\n
if select_action is None:\n
if select_action is None:\n
...
@@ -85,8 +88,8 @@ elif doAction0 == \'add\':\n
...
@@ -85,8 +88,8 @@ elif doAction0 == \'add\':\n
type_name = \' \'.join(Base_doAction[1:])\n
type_name = \' \'.join(Base_doAction[1:])\n
new_content = context.newContent(portal_type=type_name,\n
new_content = context.newContent(portal_type=type_name,\n
container=context)\n
container=context)\n
preserved_parameter
s
[\'portal_status_message\'] = Base_translateString("Object created.")\n
preserved_parameter
_dict
[\'portal_status_message\'] = Base_translateString("Object created.")\n
preserved_parameter
s
[\'editable_mode\'] = 1\n
preserved_parameter
_dict
[\'editable_mode\'] = 1\n
try:\n
try:\n
tmp_kw = new_content.getRedirectParameterDictAfterAdd(context, **kw)\n
tmp_kw = new_content.getRedirectParameterDictAfterAdd(context, **kw)\n
except AttributeError:\n
except AttributeError:\n
...
@@ -105,16 +108,16 @@ elif doAction0 == \'template\':\n
...
@@ -105,16 +108,16 @@ elif doAction0 == \'template\':\n
new_content_id = new_content_list[0][\'new_id\']\n
new_content_id = new_content_list[0][\'new_id\']\n
new_content = context[new_content_id]\n
new_content = context[new_content_id]\n
new_content.makeTemplateInstance()\n
new_content.makeTemplateInstance()\n
preserved_parameter
s
[\'portal_status_message\'] = Base_translateString("Template created.")\n
preserved_parameter
_dict
[\'portal_status_message\'] = Base_translateString("Template created.")\n
redirect_url = new_content.absolute_url()\n
redirect_url = new_content.absolute_url()\n
else:\n
else:\n
preserved_parameter
s
[\'portal_status_message\'] = Base_translateString("Template does not exist.")\n
preserved_parameter
_dict
[\'portal_status_message\'] = Base_translateString("Template does not exist.")\n
redirect_url = context.absolute_url()\n
redirect_url = context.absolute_url()\n
else:\n
else:\n
redirect_url = request[\'ACTUAL_URL\']\n
redirect_url = request[\'ACTUAL_URL\']\n
preserved_parameter
s
[\'portal_status_message\'] = Base_translateString(\'Error: the action "%s" is not recognised.\' % (doAction0, ))\n
preserved_parameter
_dict
[\'portal_status_message\'] = Base_translateString(\'Error: the action "%s" is not recognised.\' % (doAction0, ))\n
\n
\n
return context.ERP5Site_redirect(redirect_url, keep_items=preserved_parameter
s
, **kw)\n
return context.ERP5Site_redirect(redirect_url, keep_items=preserved_parameter
_dict
, **kw)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment