Hi,
For my own website I do not use plone.app.theming, but I have a paster
setup using Diazo as WSGI server. Somehow the html from the backend is
duplicated: the end result is an html file with a doctype and then twice
the html head and body.
I used dv.xdvserver before this, and there it worked fine.
Any idea what might cause this?
If anyone wants to try it out, you can grab this buildout and run it
with python2.6:
https://github.com/mauritsvanrees/maurits-site-xdv
Then start paste:
bin/paster serve devel.ini --reload
It expects a backend as defined in devel.ini in the [app:plone] section.
Easiest is to change the address and have it point at a Plone Site,
for example like this:
[app:plone]
use = egg:Paste#proxy
address = http://zestsoftware.nl/
The result is probably ugly, but you should easily see that the html is
visible twice.
If you then do 'git checkout 1.0' you go back to the version that was
still using dv.xdvserver. Run bin/buildout, edit devel.ini and start
paster again and you should see that the html is not doubled anymore.
This is the small commit that has the most relevant change:
https://github.com/mauritsvanrees/maurits-site-xdv/commit/0dfe2469d10c8e2a014c47f08da9ae7ffb89a5aa
The diazo line where it appears to go wrong is in wsgi.py, line 281,
which uses lxml to transform the html tree:
tree = self.transform(serializer.tree, **params)
It may be an error in lxml, diazo or simply a mistake in my rules file:
https://github.com/mauritsvanrees/maurits-site-xdv/blob/master/theme/rules/plone.xml
Ideas are welcome.
--
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers