Commit 179ce645 authored by Yusei Tahara's avatar Yusei Tahara

Fix i18n text and indentation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23432 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 709b1fb0
......@@ -79,33 +79,38 @@ module = getattr(context, module_id, None)\n
if module is not None:\n
allowed_type_list = module.getVisibleAllowedContentTypeList()\n
if portal_type not in allowed_type_list:\n
return context.Base_redirect(keep_items={\'portal_status_message\':\n
translateString("You are not allowed to create this object.")})\n
return context.Base_redirect(\n
keep_items={\'portal_status_message\':\n
translateString("You are not allowed to create this object.")})\n
else:\n
module = context\n
if (portal_type not in embedded_portal_type_list) and \\\n
(context.Base_checkPermission(context.getRelativeUrl(), \'Add portal content\')) :\n
return context.Base_redirect(keep_items={\'portal_status_message\':\n
translateString("You are not allowed to create this object.")})\n
if ((portal_type not in embedded_portal_type_list) and\n
(context.Base_checkPermission(context.getRelativeUrl(),\n
\'Add portal content\'))):\n
return context.Base_redirect(\n
keep_items={\'portal_status_message\':\n
translateString("You are not allowed to create this object.")})\n
\n
\n
document = module.newContent( portal_type = portal_type,\n
description = description,\n
title=title)\n
document = module.newContent( portal_type=portal_type,\n
description=description,\n
title=title)\n
\n
# XXX If DMS exist?\n
document.edit( follow_up = context.getRelativeUrl(),\n
version = version,\n
short_title = short_title,\n
language = language,\n
reference = reference)\n
document.edit(follow_up=context.getRelativeUrl(),\n
version=version,\n
short_title=short_title,\n
language=language,\n
reference=reference)\n
\n
if file.filename not in [\'\', None]:\n
document.setFile(file)\n
\n
message = translateString(\'${portal_type} created successfully.\',\n
mapping={\'portal_type\':document.getTranslatedPortalType()})\n
return context.REQUEST.RESPONSE.redirect(\n
\'%s/view?portal_status_message=%s+%s.\'%(document.absolute_url(), \n
document.getTranslatedPortalType(), translateString(\'+created+successfully.\')))\n
\'%s/view?portal_status_message=%s\' % (document.absolute_url(), message)\n
)\n
</string> </value>
</item>
<item>
......@@ -174,6 +179,7 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>module</string>
<string>allowed_type_list</string>
<string>document</string>
<string>message</string>
</tuple>
</value>
</item>
......
414
\ No newline at end of file
416
\ 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