Switch from 2.1 to 2.2
Thomas Guettler
zopestoller at thomas-guettler.de
Tue Jun 25 10:49:38 EDT 2002
Mathieu Belanger wrote:
> Hi all!
>
> I was trying to switch my server from python 2.1 to python 2.2 when I
> began to have some compatibility problems.
>
> I'm a newbie in python and the following code was not written by me,
> I'm only try to make it works!
>
> docType = implementation.createDocumentType('','','')
> doc = implementation.createDocument('',None,docType)
> parentNode = doc.createElementNS(None,'ACTION')
> parentNode.setAttribute("name", "RESULT")
> parentNode.setAttribute("DCId", DCSystemId)
> doc.appendChild(parentNode)
> RegSection1(doc,parentNode)
> FileSection1(doc,parentNode)
> SrvSection1(doc,parentNode)
> StationSection1(doc,parentNode)
> strDoc = StringIO()
> PrettyPrint(doc, strDoc)
>
> I got an error in the PrettyPrint call. This call worked well before!!
> Whats wrong now??
>
> Thanks for your help!
Plese send the stracktrace, too
thomas
More information about the Python-list
mailing list