Ticket #1108 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

[S] PyXML breaks with Python 2.5.5 and 2.6

Reported by: pjkersha Owned by: pjkersha
Priority: required Milestone: CMIP5 Security
Component: CSML Version:
Keywords: security, PyXML Cc:

Description

PyXML uses a local variable as but as is a reserved keyword in newer versions of Python. These patches fix:

diff _xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.orig _xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py
27,28c27,28
<         as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
<         self._step = ParsedStep.ParsedStep(as, nt, ppl)
---
>         axisSpecifier = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
>         self._step = ParsedStep.ParsedStep(axisSpecifier, nt, ppl)

and ...

diff _xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py.orig _xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py
31,32c31,32
<         as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
<         self._middle = ParsedStep.ParsedStep(as, nt, ppl)
---
>         axisSpecifier = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
>         self._middle = ParsedStep.ParsedStep(axisSpecifier, nt, ppl)

but the PyXML package is not being maintained anymore and is used only by ndg.security.common.XMLSec which itself is not needed for the latest version of NDG Security. Recommend factor out old NDG Security code including AttCert, Session Manager and SOAP/WSDL Attribute Authority interface.

The trunk and 1.5.x branch are affected.

Change History

comment:1 Changed 9 years ago by pjkersha

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 1.5.2 so as not to use PyXML.

Note: See TracTickets for help on using tickets.