Discussion:
chameleon.core breaks without lxml
Wichert Akkerman
2008-09-27 11:48:15 UTC
Permalink
I'm not sure if this is a known problem, but if you do not have lxml
installed chameleon.core breaks badly in several ways at the moment: a
missing dependency on PDIS_XPath, missing TAL namespaces which is used
for comments, and use of an unsupported XPath axis in pdis.xpath.

Wichert.
--
Wichert Akkerman<***@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Malthe Borch
2008-09-27 13:35:50 UTC
Permalink
Post by Wichert Akkerman
I'm not sure if this is a known problem, but if you do not have lxml
installed chameleon.core breaks badly in several ways at the moment: a
missing dependency on PDIS_XPath, missing TAL namespaces which is used
for comments, and use of an unsupported XPath axis in pdis.xpath.
This is known by me, but it's not well documented; the story is that I
was quite surprised when I integrated PDIS.XPath and learned that it
did not support even very simple XPath-expressions.

I've contacted the authors, but they unfortunately do not have the
time to maintain it.

For the moment, the next-best solution would be to rip out the
XPath-usage inside the compiler (rewrite it to custom tree walking
logic).

Of course, for Genshi, where template designers will want to use
custom XPath expressions, we will need a library that does this.

It seems ElementTree 1.3 will have better XPath support. Last I
checked it was unreleased.

\malthe

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Wichert Akkerman
2008-09-27 14:03:20 UTC
Permalink
Post by Malthe Borch
Post by Wichert Akkerman
I'm not sure if this is a known problem, but if you do not have lxml
installed chameleon.core breaks badly in several ways at the moment: a
missing dependency on PDIS_XPath, missing TAL namespaces which is used
for comments, and use of an unsupported XPath axis in pdis.xpath.
This is known by me, but it's not well documented; the story is that I
was quite surprised when I integrated PDIS.XPath and learned that it
did not support even very simple XPath-expressions.
I've contacted the authors, but they unfortunately do not have the
time to maintain it.
For the moment, the next-best solution would be to rip out the
XPath-usage inside the compiler (rewrite it to custom tree walking
logic).
Of course, for Genshi, where template designers will want to use
custom XPath expressions, we will need a library that does this.
It seems ElementTree 1.3 will have better XPath support. Last I
checked it was unreleased.
How about making lxml a requirement in the meantime?

Wichert.
--
Wichert Akkerman<***@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Malthe Borch
2008-09-27 14:04:59 UTC
Permalink
Yes, that's a great idea. You're welcome to commit this?
Post by Wichert Akkerman
I'm not sure if this is a known problem, but if you do not have lxml
installed chameleon.core breaks badly in several ways at the moment: a
missing dependency on PDIS_XPath, missing TAL namespaces which is used
for comments, and use of an unsupported XPath axis in pdis.xpath.
This is known by me, but it's not well documented; the story is that I
was quite surprised when I integrated PDIS.XPath and learned that it
did not support even very simple XPath-expressions.
I've contacted the authors, but they unfortunately do not have the
time to maintain it.
For the moment, the next-best solution would be to rip out the
XPath-usage inside the compiler (rewrite it to custom tree walking
logic).
Of course, for Genshi, where template designers will want to use
custom XPath expressions, we will need a library that does this.
It seems ElementTree 1.3 will have better XPath support. Last I
checked it was unreleased.
How about making lxml a requirement in the meantime?
Wichert.
--
http://www.wiggy.net/ It is hard to make things simple.
--
--=====================--
mail: ***@gmail.com
homepage: zeitmaschine.dk
--=====================--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "z3c.pt" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to z3c_pt+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/z3c_pt?hl=en
-~----------~----~----~----~------~----~------~--~---
Loading...