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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
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
Show 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 @@
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
Base_translateString = portal.Base_translateString\n
preserved_parameters = {\'form_id\': form_id, \'cancel_url\': cancel_url,
\'md5_object_uid_list\': md5_object_uid_list}\n
preserved_parameter_dict = {\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
\n
if select_action is None:\n
...
...
@@ -85,8 +88,8 @@ elif doAction0 == \'add\':\n
type_name = \' \'.join(Base_doAction[1:])\n
new_content = context.newContent(portal_type=type_name,\n
container=context)\n
preserved_parameter
s
[\'portal_status_message\'] = Base_translateString("Object created.")\n
preserved_parameter
s
[\'editable_mode\'] = 1\n
preserved_parameter
_dict
[\'portal_status_message\'] = Base_translateString("Object created.")\n
preserved_parameter
_dict
[\'editable_mode\'] = 1\n
try:\n
tmp_kw = new_content.getRedirectParameterDictAfterAdd(context, **kw)\n
except AttributeError:\n
...
...
@@ -105,16 +108,16 @@ elif doAction0 == \'template\':\n
new_content_id = new_content_list[0][\'new_id\']\n
new_content = context[new_content_id]\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
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
else:\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
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>
</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