From 042f8589e19ed706c55043e6a8cbe534dcdc2f32 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Thu, 31 Mar 2011 04:57:52 +0000
Subject: [PATCH] Add missing imports for the code copied (temporarly) from
 zope.testbrowser

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44852 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 erp5/util/test_browser/browser.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/erp5/util/test_browser/browser.py b/erp5/util/test_browser/browser.py
index b511621a48..eafc825318 100644
--- a/erp5/util/test_browser/browser.py
+++ b/erp5/util/test_browser/browser.py
@@ -273,6 +273,9 @@ class Browser(ExtendedTestBrowser):
         return dict(link.attrs).get('id') == id
       args = {'predicate': predicate}
     else:
+      from zope.testbrowser.browser import RegexType
+      import re
+
       if isinstance(text, RegexType):
         text_regex = text
       elif text is not None:
@@ -689,8 +692,6 @@ class ContextMainForm(MainForm):
     @type kwargs: dict
     @return: The control found at the given line and column numbers
     @rtype: L{zope.testbrowser.interfaces.IControl}
-
-    @todo: What if there is more than one field in a cell?
     """
     xpath_str = '%s//tr[%d]//%s[%d]/input[%d]' % \
         (self.browser._listbox_table_xpath_str,
-- 
2.30.9