# HG changeset patch # User haftmann # Date 1119952736 -7200 # Node ID 9ce0be075e6a0882666fd15ff3f2da0656e8511f # Parent 15d5f8e729fe00ce3f084cf007460e0bc6528946 some minor improvements diff -r 15d5f8e729fe -r 9ce0be075e6a Admin/website/build/pypager.py --- a/Admin/website/build/pypager.py Tue Jun 28 11:55:30 2005 +0200 +++ b/Admin/website/build/pypager.py Tue Jun 28 11:58:56 2005 +0200 @@ -332,14 +332,14 @@ for tagname, attrname in ((u"a", u"href"), (u"img", u"src"), (u"link", u"href")): if name == tagname: attrs = self.transformAbsPath(attrs, attrname) - if self._spamprotect and name == u"a": + if self.spamprotect and name == u"a": value = attrs.get(u"href") if value and value.startswith(u"mailto:"): attrs = dict(attrs) attrs[u"href"] = "".join([ ("&#%i;" % ord(c)) for c in value ]) for (key, value) in attrs.items(): self._out.write(u' %s=%s' % (key, quoteattr(value))) - self._currentXPath.append(name) + self._currentXPath.append(key) self._lastStart = True def endElement(self, name):