--- 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):