0
如果我尝试制作神交的观点看模板从父目录在Plone
grok.templatedir("../browser/templates")
我得到
GrokImportError: The 'templatedir' directive can not contain path separator.
什么是模板目录设置five.grok为绝对路径的正确方法是什么?
如果我尝试制作神交的观点看模板从父目录在Plone
grok.templatedir("../browser/templates")
我得到
GrokImportError: The 'templatedir' directive can not contain path separator.
什么是模板目录设置five.grok为绝对路径的正确方法是什么?
In [1]: from os.path import dirname, join
In [2]: import zopeskel.basic_zope
In [3]: join(dirname(zopeskel.basic_zope.__file__))
Out[3]: '/usr/local/lib/python2.6/dist-packages/ZopeSkel-2.19-py2.6.egg/zopeskel'
但我不知道如果这是正确的方法。
最好, 马尔科
很抱歉,但这样做没有任何意义,或者至少不是这个问题。 – 2011-12-28 19:59:42