[Zope] Corrupted ZPT Locks Me Out Of Folder

Martijn Pieters mj at zopatista.com
Fri Mar 23 11:24:34 EDT 2007


On 3/23/07, Mark, Jonathan (Integic) <jonathan.mark at integic-hc.com> wrote:
> Module TAL.XMLParser, line 48, in __init__
> Module TAL.XMLParser, line 72, in createParser

Nothing got corrupted, your python lost it's expat XML parser:

    def createParser(self, encoding=None):
        global XMLParseError
        try:
            from Products.ParsedXML.Expat import pyexpat
            XMLParseError = pyexpat.ExpatError
            return pyexpat.ParserCreate(encoding, ' ')
        except ImportError:
            from xml.parsers import expat
            XMLParseError = expat.ExpatError
            return expat.ParserCreate(encoding, ' ')

In other words, reinstall expat and your ZPT page will reappear.

-- 
Martijn Pieters


More information about the Zope mailing list