[Erp5-report] r14267 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 27 02:41:13 CEST 2007
Author: jerome
Date: Fri Apr 27 02:41:11 2007
New Revision: 14267
URL: http://svn.erp5.org?rev=14267&view=rev
Log:
use zExceptions.Redirect instead of a string exception, if it can be imported
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml?rev=14267&r1=14266&r2=14267&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml Fri Apr 27 02:41:11 2007
@@ -71,6 +71,10 @@
<value> <string encoding="cdata"><![CDATA[
from Products.ERP5Type.Message import Message\n
+try:\n
+ from zExceptions import Redirect\n
+except:\n
+ Redirect = \'Redirect\'\n
portal = context.getPortalObject()\n
stool = portal.portal_selections\n
getObject = portal.portal_catalog.getObject\n
@@ -106,7 +110,7 @@
obj = obj.getObject()\n
if countMessage(path=obj.getPath(),\n
method_id=\'Invoice_createRelatedPaymentTransaction\'):\n
- raise \'Redirect\', "%s/view?portal_status_message=%s" % (\n
+ raise Redirect, "%s/view?portal_status_message=%s" % (\n
context.absolute_url(), N_(\'Payment Creation already in\'\n
\' progress, abandon\'))\n
obj.activate(tag=tag).Invoice_createRelatedPaymentTransaction(\n
@@ -184,6 +188,8 @@
<string>selection_name</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
+ <string>zExceptions</string>
+ <string>Redirect</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=14267&r1=14266&r2=14267&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Fri Apr 27 02:41:11 2007
@@ -1,1 +1,1 @@
-288
+289
More information about the Erp5-report
mailing list