我使用plone4.1和Diazo在我的mac上创建了一个webportal.
现在,我正在尝试将其部署在我的服务器(CentOs)上,其中还有另一个站点有plone4.0.5 + collectivexdv.
当我用我的diazotheme运行网站(在一个全新的构建中)时,我通过shell(实例fg)获取这些行:
2011-09-27 09:32:10 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
File "/home/plone/.buildout/eggs/plone.transformchain-1.0-py2.6.egg/plone/transformchain/transformer.py", line 42, in __call__
newResult = handler.transformIterable(result, encoding)
File "/home/plone/.buildout/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 205, in transformIterable
transform = self.setupTransform()
File "/home/plone/.buildout/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 150, in setupTransform
xsl_params=xslParams,
File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/compiler.py", line 106, in compile_theme
read_network=read_network,
File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/rules.py", line 160, in process_rules
rules_doc = fixup_themes(rules_doc)
File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/utils.py", line 49, in __call__
result = self.xslt(*args, **kw)
File "xslt.pxi", line 568, in lxml.etree.XSLT.__call__ …
Run Code Online (Sandbox Code Playgroud) 在轻微使用collective.xdv之后,我正在接近Diazo.
通常在xdv中我可以使用一个很好的env变量"HTTP_X_XDV"来允许渲染某些css文件(在portal_css中通过genericsetup).我在Diazo可以使用什么?
谢谢Vito
我的新老板参加了演讲,演讲中提供了Deliverance,这是一种允许动态添加任何html输出皮肤的代理.不管它多么年轻,他决定在那之后使用它.
更多信息:
http://www.openplans.org/projects/deliverance/introduction
从理论上讲,当你想让一个新手调整你的plone主题而不必教他zope产品背后的所有复杂机制时,系统听起来很棒.并在一行的Drupal网站上应用相同的主题.
但我不相信理论,并想知道是否有人在现实世界中尝试过这个:-)