[Erp5-report] r9132 - /erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 10 15:53:40 CEST 2006


Author: vincent
Date: Thu Aug 10 15:53:37 2006
New Revision: 9132

URL: http://svn.erp5.org?rev=9132&view=rev
Log:
Fix parenthesisation.

Modified:
    erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py

Modified: erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py?rev=9132&r1=9131&r2=9132&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py (original)
+++ erp5/trunk/utils/erp5mechanize/ERP5Mechanize.py Thu Aug 10 15:53:37 2006
@@ -379,7 +379,7 @@
     line_list = self._getListbox().getElementsByTagName(u'tr')
     for line_pos in xrange(len(line_list)):
       for child in line_list[line_pos].getElementsByTagName(u'td')[column_number].childNodes:
-        if (child.nodeType == child.TEXT_NODE) and strict and (value == child.wholeText) or (value in child.wholeText):
+        if (child.nodeType == child.TEXT_NODE) and (strict and (value == child.wholeText) or (value in child.wholeText)):
           return line_pos          
     return None
 
@@ -390,7 +390,7 @@
     column_list = self._getListbox().getElementsByTagName(u'tr')[line_number].getElementsByTagName(u'td')
     for cell_pos in xrange(len(column_list)):
       for child in column_list[cell_pos].childNodes:
-        if (child.nodeType == child.TEXT_NODE) and strict and (value == child.wholeText) or (value in child.wholeText):
+        if (child.nodeType == child.TEXT_NODE) and (strict and (value == child.wholeText) or (value in child.wholeText)):
           return cell_pos
     return None
 




More information about the Erp5-report mailing list