[Zope3-dev] zc.testbrowser.real depends on python 2.5

2007-10-23 Thread Paul Winkler
Looks like zc.testbrowser 1.0a1 has a small dependency on Python 2.5.
I got this error while playing with zc.testbrowser.real:

 browser.getForm(id='oc-login-form')
Traceback (most recent call last):
  File stdin, line 1, in ?
  File 
/home/pw/tbtest/lib/python2.4/zc.testbrowser-1.0a1-py2.4.egg/zc/testbrowser/real.py,
 line 315, in getForm
if index is None and not any([id, name, action]):
NameError: global name 'any' is not defined

This is easy to hack around, but it's probably worth documenting the
dependency...

-- 

Paul Winkler
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] zc.testbrowser.real depends on python 2.5

2007-10-23 Thread Benji York

Paul Winkler wrote:

Looks like zc.testbrowser 1.0a1 has a small dependency on Python 2.5.



NameError: global name 'any' is not defined


Actually, it's a function that is defined in zope.testbrowser and was 
lost in translation to zc.testbrowser.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com