summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7baea69)
raw | patch | inline | side by side (parent: 7baea69)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 26 Sep 2002 21:54:18 +0000 (21:54 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 26 Sep 2002 21:54:18 +0000 (21:54 +0000) |
non-path final alternate no longer try to call a value returned by that
alternate)
- merge Zope Collector #573 fix from ZPT CVS trunk
- added 1000-user/issue benchmark test
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1269 57a73879-2fb5-44c3-a270-3262357dd7e2
alternate)
- merge Zope Collector #573 fix from ZPT CVS trunk
- added 1000-user/issue benchmark test
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1269 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/PageTemplates/Expressions.py | patch | blob | history | |
roundup/cgi/ZTUtils/Iterator.py | patch | blob | history | |
test/benchmark.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index ecaf45f36f0af5434d9576149cd42910e74aab58..95d61b7e3497927ba0c4293f16179ec02e0cba7f 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- handle stupid mailers that QUOTE their Re; 'Re: "[issue1] bla blah"'
- giving a user a Role that doesn't exist doesn't break stuff any more
- revamped user guide, customisation guide, added maintenance guide
+- merge Zope Collector #538 fix from ZPT CVS trunk (path expressions with a
+ non-path final alternate no longer try to call a value returned by that
+ alternate)
+- merge Zope Collector #573 fix from ZPT CVS trunk
- merge Zope Collector #580 fix from ZPT CVS trunk
+- added "crypt" password encoding and ability to set password with
+ already encrypted password through roundup-admin
2002-09-13 0.5.0 beta2
index 25b605cfd9ffe4406228376e2f58281242f94c34..8a391b6df09fbd000e2c03ee434c25e48b47c189 100644 (file)
"""
-__version__='$Revision: 1.7 $'[11:-2]
+__version__='$Revision: 1.8 $'[11:-2]
import re, sys
from TALES import Engine, CompilerError, _valid_name, NAME_RE, \
def __init__(self, name, expr, engine):
self._s = expr
self._name = name
+ self._hybrid = 0
paths = split(expr, '|')
self._subexprs = []
add = self._subexprs.append
# This part is the start of another expression type,
# so glue it back together and compile it.
add(engine.compile(lstrip(join(paths[i:], '|'))))
+ self._hybrid = 1
break
add(SubPathExpr(path)._eval)
else:
break
else:
- # On the last subexpression allow exceptions through.
+ # On the last subexpression allow exceptions through, and
+ # don't autocall if the expression was not a subpath.
ob = self._subexprs[-1](econtext)
+ if self._hybrid:
+ return ob
if self._name == 'nocall' or isinstance(ob, StringType):
return ob
index d13b5c230678a365f71c9b1f76b2b9aa3d756252..b6c7a6fe441050b227e7dc1152ea5c9067830e80 100644 (file)
iterator. The next() method fetches the next item, and returns
true if it succeeds.
-$Id: Iterator.py,v 1.1 2002-09-05 00:37:09 richard Exp $'''
-__version__='$Revision: 1.1 $'[11:-2]
+$Id: Iterator.py,v 1.2 2002-09-26 21:54:17 richard Exp $'''
+__version__='$Revision: 1.2 $'[11:-2]
import string
def _supports(self, ob):
try: ob[0]
- except TypeError: return 0
+ except (TypeError, AttributeError): return 0
except: pass
return 1
diff --git a/test/benchmark.py b/test/benchmark.py
index 99f58b9da6fe800d203586bf75207f6acefecbe9..bb51f453498aa7e6f847d64ce37e9d429db6ff67 100644 (file)
--- a/test/benchmark.py
+++ b/test/benchmark.py
main(name, numissues=20)
for name in 'anydbm bsddb bsddb3 metakit sqlite'.split():
main(name, numissues=100)
+ # don't even bother benchmarking the dbm backends > 100!
+ for name in 'metakit sqlite'.split():
+ main(name, numissues=1000)