The power of Deliverance and PyQuery
Some times ago i made a new skin for the French-speaking PYthon Association (AFPY) web site, using Deliverance and PyQuery. I made this exercice on my free time with many pleasure.
You can see the Deliverance power here :
– The home page without Deliverance, the same using Deliverance proxy : all dynamic contents are taken from original Plone site, try to find it, you will notice the Deliverance + PyQuery magic in action🙂
Thanks to Gaël Pasgrimaud, a friend of mine and coworker, for his big work which really help me :
Here, we use a specific Gael’s buildout and a specific package done for our Deliverance projects used at Ingeniweb, our company. With these tools (if some people are interested in, it could be released on pypi, tell us …), we get the best flexibility for Deliverance :
- PyQuery integration
- The good base rules for Deliverance to avoid theming bugs with Ajax and HTML editor (*)
- Dynamic css : css are mako templates served by a skin server, colors fonts and other properties are set in a « .ini » file
- A base mako css for Plone which permits to start the work of externalize the entire css :
in our projects, all portal_css content links from Plone are stripped when the Plone site is called through Deliverance (just add a condition for Plone stylesheets in portal_css : python:request.HTTP_HOST in request.SERVER_URL), the final css is lighter, the Deliverance css is really clean without many ‘!important’ bad overloads)
- Supervisor deamon to control skin servers
- We can use eggs for our Deliverance skins.
(*) to get real wysiwyg rendering in Plone behind Deliverance ‘s HTML editor areas, use also FCKeditor.Plone 2.6.4, in FCKeditor control panel you will find the way to inject Deliverance css in wysiwyg area, it’s an important feature for end users.
Now i can take my summer holidays in peace with myself🙂