[Zope] pqrsing with sax
Michel Vayssade
michel.vayssade@utc.fr
Thu, 11 Oct 2001 11:43:15 +0200 (MET DST)
On Thu, 11 Oct 2001, Phil Harris wrote:
> Zope comes with it's own version of expat, and if you've installed ParsedXML
> then you'll have yet another expat version.
ok, so ther is 2 expatreader files on the machine, and :
1) how can I find which one is used by zope, the one on the base python,
or the one which comes in the Zope directory ?
2) they are identical, they both have a create_parser method :
[zope@virgo Extensions]$ grep create_parser
/usr/local/Zope-2.4.0-linux2-x86/lib/python2.1/xml/sax/expatreader.py
def create_parser(*args, **kwargs):
so the method is here, why this module has no attribute 'create_parser'
Does one have some sort of special import or the like to do, to get
an external method (or a Zope Product method) working as standard
python code ?
> ----- Original Message -----
> From: "Michel Vayssade" <michel.vayssade@utc.fr>
> > I have a "parse.py" file which parse xml files with sax
> > this script is working when I run it outside or Zope
> > when I try to call it as an external method I got the error :
> > Attribute error
> > 'xml.sax.expatreader' module has no attribute 'create_parser'
--
_/ _/ _/_/_/ _/_/ Michel.Vayssade@UTC.fr Service Informatique
_/ _/ _/ _/ T:33/0-3.44.23.49.24 Universite de Technologie
_/ _/ _/ _/ F:33/0-3.44.23.46.77 BP 20.529 60205 Compiegne
_/_/ _/ _/_/ _ mv@utc.fr __/www.utc.fr/~vayssade____ France