[Checkins] SVN: zc.testbrowser/trunk/src/zc/testbrowser/real.py
Copied the 'any' function from zope.testbrowser. Now the tests pass.
Tim TerlegÃÂ¥rd
tim.terlegard at valentinewebsystems.se
Wed Oct 31 07:37:32 EDT 2007
Log message for revision 81267:
Copied the 'any' function from zope.testbrowser. Now the tests pass.
Changed:
U zc.testbrowser/trunk/src/zc/testbrowser/real.py
-=-
Modified: zc.testbrowser/trunk/src/zc/testbrowser/real.py
===================================================================
--- zc.testbrowser/trunk/src/zc/testbrowser/real.py 2007-10-31 07:58:04 UTC (rev 81266)
+++ zc.testbrowser/trunk/src/zc/testbrowser/real.py 2007-10-31 11:37:31 UTC (rev 81267)
@@ -57,6 +57,8 @@
return Control(token, browser)
+def any(items):
+ return bool(sum([bool(i) for i in items]))
class JSFunctionProxy(object):
def __init__(self, executor, name):
More information about the Checkins
mailing list