[Erp5-report] r29613 - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 13 18:41:13 CEST 2009
Author: nicolas.dumazet
Date: Tue Oct 13 18:41:10 2009
New Revision: 29613
URL: http://svn.erp5.org?rev=29613&view=rev
Log:
style only: if bool == 0 -> if not bool
Modified:
erp5/trunk/products/ERP5/Tool/TemplateTool.py
Modified: erp5/trunk/products/ERP5/Tool/TemplateTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TemplateTool.py?rev=29613&r1=29612&r2=29613&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] Tue Oct 13 18:41:10 2009
@@ -428,13 +428,13 @@
bt.build(no_action=True)
bt.reindexObject()
- if (batch_mode == 0) and \
+ if not batch_mode and \
(REQUEST is not None):
ret_url = bt.absolute_url() + '/view'
psm = translateString("Business templates imported successfully.")
REQUEST.RESPONSE.redirect("%s?portal_status_message=%s"
% (ret_url, psm))
- elif (batch_mode == 1):
+ elif batch_mode:
return bt
security.declareProtected(Permissions.ManagePortal, 'runUnitTestList')
More information about the Erp5-report
mailing list