Commit d087c770 authored by Nicolas Delaby's avatar Nicolas Delaby

Translate message and use Base_redirect


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43025 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db6cbad5
......@@ -200,10 +200,11 @@ class PropertySheetTool(BaseTool):
transaction.commit()
if REQUEST is not None:
return self.REQUEST.RESPONSE.redirect(
'%s?portal_status_message=' \
'Property Sheets successfully imported from filesystem to ZODB.' % \
self.absolute_url())
portal = self.getPortalObject()
message = portal.Base_translateString('Property Sheets successfully'\
' imported from filesystem to ZODB.')
return self.Base_redirect('view',
keep_items={'portal_status_message': message})
security.declareProtected(Permissions.AccessContentsInformation,
'exportPropertySheetToFilesystemDefinitionTuple')
......
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