[Erp5-report] r11386 - in /erp5/trunk/bt5/erp5_banking_check: WorkflowTemplateItem/portal_w...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 20 15:50:04 CET 2006
Author: seb
Date: Mon Nov 20 15:50:00 2006
New Revision: 11386
URL: http://svn.erp5.org?rev=11386&view=rev
Log:
remove the bad hasattr in the checkConstistency script
Modified:
erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml
erp5/trunk/bt5/erp5_banking_check/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml?rev=11386&r1=11385&r2=11386&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml (original)
+++ erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/validateConsistency.xml Mon Nov 20 15:50:00 2006
@@ -84,15 +84,14 @@
site = None\n
# try to guess site from document if source is defined\n
# XXX useful for unit test\n
- if hasattr(transaction, \'source\'):\n
- site = transaction.getSourceValue()\n
- while True:\n
- if not hasattr(site, \'getVaultTypeList\'):\n
- msg = Message(domain = \'ui\', message = \'The site value is misconfigured; report this to system administrators.\')\n
- raise ValidationFailed, (msg,)\n
- if \'site\' in site.getVaultTypeList():\n
- break\n
- site = site.getParentValue()\n
+ site = transaction.getSourceValue()\n
+ while True:\n
+ if not hasattr(site, \'getVaultTypeList\'):\n
+ msg = Message(domain = \'ui\', message = \'The site value is misconfigured; report this to system administrators.\')\n
+ raise ValidationFailed, (msg,)\n
+ if \'site\' in site.getVaultTypeList():\n
+ break\n
+ site = site.getParentValue()\n
\n
if site is None:\n
msg = Message(domain = \'ui\', message = \'Impossible to determine site for the transaction.\')\n
@@ -235,8 +234,8 @@
<string>site</string>
<string>len</string>
<string>None</string>
+ <string>True</string>
<string>hasattr</string>
- <string>True</string>
<string>msg</string>
<string>date</string>
<string>current_date</string>
Modified: erp5/trunk/bt5/erp5_banking_check/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/bt/revision?rev=11386&r1=11385&r2=11386&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_check/bt/revision Mon Nov 20 15:50:00 2006
@@ -1,1 +1,1 @@
-55
+58
More information about the Erp5-report
mailing list