Commit d32e4947 authored by Nicolas Dumazet's avatar Nicolas Dumazet

style only: if bool == 0 -> if not bool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29613 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e249c42
...@@ -428,13 +428,13 @@ class TemplateTool (BaseTool): ...@@ -428,13 +428,13 @@ class TemplateTool (BaseTool):
bt.build(no_action=True) bt.build(no_action=True)
bt.reindexObject() bt.reindexObject()
if (batch_mode == 0) and \ if not batch_mode and \
(REQUEST is not None): (REQUEST is not None):
ret_url = bt.absolute_url() + '/view' ret_url = bt.absolute_url() + '/view'
psm = translateString("Business templates imported successfully.") psm = translateString("Business templates imported successfully.")
REQUEST.RESPONSE.redirect("%s?portal_status_message=%s" REQUEST.RESPONSE.redirect("%s?portal_status_message=%s"
% (ret_url, psm)) % (ret_url, psm))
elif (batch_mode == 1): elif batch_mode:
return bt return bt
security.declareProtected(Permissions.ManagePortal, 'runUnitTestList') security.declareProtected(Permissions.ManagePortal, 'runUnitTestList')
......
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