Allow this to work with 2.6, sorta. Bump package.
This commit is contained in:
parent
e0a6707953
commit
d108c2d34f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.33 2008/04/19 09:24:50 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.34 2008/12/16 04:55:09 fgsch Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -8,7 +8,7 @@ MODPY_EGG_VERSION=0.8.4
|
||||
|
||||
VERSION= ${MODPY_EGG_VERSION}
|
||||
DISTNAME= PyXML-${VERSION}
|
||||
PKGNAME= py-xml-${VERSION}p4
|
||||
PKGNAME= py-xml-${VERSION}p5
|
||||
CATEGORIES= textproc devel
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyxml/}
|
||||
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath_py,v 1.1 2008/12/16 04:55:09 fgsch Exp $
|
||||
--- xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.orig Tue Dec 16 04:50:28 2008
|
||||
+++ xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py Tue Dec 16 04:50:44 2008
|
||||
@@ -24,8 +24,8 @@ class ParsedAbbreviatedAbsoluteLocationPath:
|
||||
self._rel = rel
|
||||
nt = ParsedNodeTest.ParsedNodeTest('node', '')
|
||||
ppl = ParsedPredicateList.ParsedPredicateList([])
|
||||
- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
|
||||
- self._step = ParsedStep.ParsedStep(as, nt, ppl)
|
||||
+ pas = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
|
||||
+ self._step = ParsedStep.ParsedStep(pas, nt, ppl)
|
||||
return
|
||||
|
||||
def evaluate(self, context):
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath_py,v 1.1 2008/12/16 04:55:09 fgsch Exp $
|
||||
--- xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.orig Tue Dec 16 04:50:59 2008
|
||||
+++ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py Tue Dec 16 04:51:05 2008
|
||||
@@ -28,8 +28,8 @@ class ParsedAbbreviatedRelativeLocationPath:
|
||||
self._right = right
|
||||
nt = ParsedNodeTest.ParsedNodeTest('node','')
|
||||
ppl = ParsedPredicateList.ParsedPredicateList([])
|
||||
- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
|
||||
- self._middle = ParsedStep.ParsedStep(as, nt, ppl)
|
||||
+ pas = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
|
||||
+ self._middle = ParsedStep.ParsedStep(pas, nt, ppl)
|
||||
|
||||
def evaluate(self, context):
|
||||
res = []
|
14
textproc/py-xml/patches/patch-xml_xslt_Stylesheet_py
Normal file
14
textproc/py-xml/patches/patch-xml_xslt_Stylesheet_py
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-xml_xslt_Stylesheet_py,v 1.1 2008/12/16 04:55:09 fgsch Exp $
|
||||
--- xml/xslt/Stylesheet.py.orig Tue Dec 16 04:52:31 2008
|
||||
+++ xml/xslt/Stylesheet.py Tue Dec 16 04:53:15 2008
|
||||
@@ -373,8 +373,8 @@ class StylesheetElement(XsltElement):
|
||||
|
||||
#Attribute sets
|
||||
attribute_sets = filter(lambda x: x.nodeType == Node.ELEMENT_NODE and (x.namespaceURI, x.localName) == (XSL_NAMESPACE, 'attribute-set'), self.childNodes)
|
||||
- for as in attribute_sets:
|
||||
- as.instantiate(context, processor)
|
||||
+ for a_s in attribute_sets:
|
||||
+ a_s.instantiate(context, processor)
|
||||
overridden_params = {}
|
||||
for k in topLevelParams.keys():
|
||||
if type(k) != types.TupleType:
|
Loading…
x
Reference in New Issue
Block a user