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