
Dirk Holtwick wrote:
Hi,
I wrote (yet another) templating language for Python based on Genshi, since Genshi itself does not yet work on Google App Engine (GAE). Since Genshi supports XPath I was thinking about using your cssselect.py module together with it. First tests showed that this seems to work fine.
Now I would like to ship a little bit modified version of cssselect.py with this new templating language called "Pyxer"
http://code.google.com/p/pyxer/
so the users do not have to install the whole lxml package (which does not work with GAE anyways I suppose).
Since Python "lxml" is under the BSD license and Pyxer under MIT license I think this should not be such a big problem as long as I add your copyright notices to the file. Am I right?
Of course! That's open source in action ;) You might also find that the intermediate representation for CSS expressions could be turned into a Genshi filter/selector/whatever-it-is of some sort. Currently there's the objects in cssselect with .xpath() methods -- you could augment them with a .match(markup_obj) method or something along those lines. Anyway, it might be a useful way to speed it up later. -- Ian Bicking : ianb@colorstudy.com : http://blog.ianbicking.org