python - "TypeError: make_staticdir() got an unexpected keyword argument 'document_root'" running Diazo through Proxy -
i followed steps on diazo quickstart guide hosted @ docs.plone.org (docs.diazo.org out of date write in april 2015) , received strange error when attempted execute final command bin/gearbox serve --reload -c proxy.ini. error prevented me continuing , did not indicate coming from.
the precise error received was:
file "eggs/pastedeploy-1.5.2-py2.7.egg/paste/deploy/util.py", line 55, in fix_call val = callable(*args, **kw) typeerror: make_staticdir() got unexpected keyword argument 'document_root' does know how can resolve issue in order proceed in developing plone theme?
it turns out error caused mistake in proxy.ini file due suppressed error thrown in webobentrypoints library. correct this, please change third section of proxy.ini entitled "app:static" use "path" instead of incorrect "document_root" such contains following:
[app:static] use = egg:webobentrypoints#staticdir path = %(here)s/theme once fix issue, however, still need fix 1 more problem: page quickstart guide attempts proxy has changed such redirect browser , not display theme. had luck switching final section of proxy.ini latest version of same document hosted @ plone.org:
[app:content] use = egg:webobentrypoints#proxy address = http://docs.plone.org/external/diazo/docs/index.html suppress_http_headers = accept-encoding connection to theme site must further modify rules.xml file render class ".content-column" instead of ".content." should like:
<rules xmlns="http://namespaces.plone.org/diazo" xmlns:css="http://namespaces.plone.org/diazo/css" xmlns:xsl="http://www.w3.org/1999/xsl/transform"> <theme href="theme/theme.html" /> <drop css:content="#indices-and-tables" /> <replace css:theme-children="#content" css:content-children=".content-column" /> </rules> hopefully fix problem.
note: have submitted these changes inclusion in diazo documentation but, given how many versions of document can found when looking around help, seems prudent document possible error in central location.
Comments
Post a Comment