[Zope-CMF] CMFArticle with Plone - fails
Thomas Olsen
tol@tanghus.dk
Mon, 11 Mar 2002 00:01:54 +0100
Hi
The article_getTemplate script checks if skin to use is Plone or it should
use the default main_template. If it finds Plone its trying to use
content_template. Can you please check if content_template is available in
the Plone skin you are using?
Otherwise you can just change the line in article_edit_form, article_view etc
which looks like: metal:use-macro="here/article_getTemplate" to
metal:use-macro="here/main_template/macros/master".
On Sunday 10 March 2002 18:49, Brad Clements wrote:
> On 10 Mar 2002 at 15:37, Erik Lange wrote:
> > We're using CMFArticles in production - it works great :-)
> >
> > http://www.zope.org/Members/tanghus/CMFArticle
>
> Just installed this and the Image_hotfix on Zope 2.5.0 Linux with latest
> Plone skin..
>
> When choosing "Add Article" from the Add New item view, I get this
> traceback
>
>
> Site Error
> An error was encountered while publishing this resource.
> TALESError
> Sorry, a site error occurred.
> Traceback (innermost last):
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/ZPublisher/Publish.py, line 153, in
> publish_module
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/ZPublisher/Publish.py, line 117, in publish
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Zope/__init__.py, line 158, in
> zpublisher_exception_hook
> (Object: Article,2002-03-10,1015780837208910785)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/ZPublisher/Publish.py, line 98, in publish
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/ZPublisher/mapply.py, line 88, in mapply
> (Object: article_edit_form)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/ZPublisher/Publish.py, line 39, in call_object
> (Object: article_edit_form)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in
> __call__
> (Object: article_edit_form)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in
> _bindAndExec
> (Object: article_edit_form)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/ZopePageTemplate.py, line
> 207, in _exec
> (Object: article_edit_form)
> File
> /usr/local/Zope/AdkWood/Products/CMFCore/FSPageTemplate.py, line
> 99, in pt_render
> (Object: article_edit_form)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/PageTemplate.py, line 86,
> in pt_render
> (Object: article_edit_form)
> (Info: {'container': <CMFSite instance at 8eb8e40>,
> 'here': <Article instance at 8e30bb8>,
> 'modules':
> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
> instance at 0x86a157c>,
> 'nothing': None,
> 'options': {'args': ()},
> 'request':
> <h3>form</h3><table></table><h3>cookies</h3><table><tr
> valign="top" align="left"><th>portal_skin</th><td>'Plone
> Default'</td></tr><tr valign="top"
> align="left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8d%04%12%D1%20
> B%83%1DH%143%80%086%20%11%5CY%9C_P%5C%CC%0Cd%3A%FB%BA%15%83%24%7
> DSs%93R%8B%20bI%D9%C9%60e%7E%F9e%A999%60ffnbzj1%00/%AB%10%AC'</t
> d></tr></table><h3>lazy items</h3><table><tr valign="top"
> align="left"><th>SESSION</th><td><Python Method object at
> 0x8e78110></td></tr></table><h3>other</h3><table><tr
> valign="top"
> align="left"><th>BASE9</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785/article_edit_form'</td></tr><tr
> valign="top"
> align="left"><th>BASE8</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785'</td></tr><tr valign="top"
> align="left"><th>BASE7</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF/Members/bkc/Novell/Jython'</td></tr><tr
> valign="top"
> align="left"><th>BASE6</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF/Members/bkc/Novell'</td></tr><tr valign="top"
> align="left"><th>portal_skin</th><td>'Plone
> Default'</td></tr><tr valign="top"
> align="left"><th>BASE4</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF/Members'</td></tr><tr valign="top"
> align="left"><th>BASE3</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF'</td></tr><tr valign="top"
> align="left"><th>URL2</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell/Jython'</td></tr><tr valign="top"
> align="left"><th>BASE1</th><td>'http://marimba.murkworks.com:918
> 0'</td></tr><tr valign="top"
> align="left"><th>traverse_subpath</th><td>[]</td></tr><tr
> valign="top"
> align="left"><th>URL8</th><td>'http://marimba.murkworks.com:9180
> '</td></tr><tr valign="top"
> align="left"><th>SERVER_URL</th><td>'http://marimba.murkworks.co
> m:9180'</td></tr><tr valign="top"
> align="left"><th>AUTHENTICATED_USER</th><td>bkc</td></tr><tr
> valign="top"
> align="left"><th>TraversalRequestNameStack</th><td>[]</td></tr><
> tr valign="top"
> align="left"><th>BASE5</th><td>'http://marimba.murkworks.com:918
> 0/Sysops/CMF/Members/bkc'</td></tr><tr valign="top"
> align="left"><th>AUTHENTICATION_PATH</th><td>'Sysops/CMF'</td></
> tr><tr valign="top"
> align="left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8d%04%12%D1%20
> B%83%1DH%143%80%086%20%11%5CY%9C_P%5C%CC%0Cd%3A%FB%BA%15%83%24%7
> DSs%93R%8B%20bI%D9%C9%60e%7E%F9e%A999%60ffnbzj1%00/%AB%10%AC'</t
> d></tr><tr valign="top"
> align="left"><th>URL3</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell'</td></tr><tr valign="top"
> align="left"><th>URL0</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785/article_edit_form'</td></tr><tr
> valign="top"
> align="left"><th>URL1</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785'</td></tr><tr valign="top"
> align="left"><th>URL6</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF'</td></tr><tr valign="top"
> align="left"><th>URL7</th><td>'http://marimba.murkworks.com:9180
> /Sysops'</td></tr><tr valign="top"
> align="left"><th>URL4</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc'</td></tr><tr valign="top"
> align="left"><th>URL5</th><td>'http://marimba.murkworks.com:9180
> /Sysops/CMF/Members'</td></tr><tr valign="top"
> align="left"><th>PUBLISHED</th><td><FSPageTemplate instance
> at 8e370c0></td></tr><tr valign="top"
> align="left"><th>URL</th><td>'http://marimba.murkworks.com:9180/
> Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785/article_edit_form'</td></tr><tr
> valign="top"
> align="left"><th>BASE2</th><td>'http://marimba.murkworks.com:918
> 0/Sysops'</td></tr><tr valign="top"
> align="left"><th>BASE0</th><td>'http://marimba.murkworks.com:918
> 0'</td></tr><tr valign="top"
> align="left"><th>URL0</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785/article_edit_form</td></tr><tr
> valign="top"
> align="left"><th>URL1</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785</td></tr><tr valign="top"
> align="left"><th>URL2</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF/Members/bkc/Novell/Jython</td></tr><tr valign="top"
> align="left"><th>URL3</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF/Members/bkc/Novell</td></tr><tr valign="top"
> align="left"><th>URL4</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF/Members/bkc</td></tr><tr valign="top"
> align="left"><th>URL5</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF/Members</td></tr><tr valign="top"
> align="left"><th>URL6</th><td>http://marimba.murkworks.com:9180/
> Sysops/CMF</td></tr><tr valign="top"
> align="left"><th>URL7</th><td>http://marimba.murkworks.com:9180/
> Sysops</td></tr><tr valign="top"
> align="left"><th>URL8</th><td>http://marimba.murkworks.com:9180<
> /td></tr><tr valign="top"
> align="left"><th>BASE0</th><td>http://marimba.murkworks.com:9180
> </td></tr><tr valign="top"
> align="left"><th>BASE1</th><td>http://marimba.murkworks.com:9180
> </td></tr><tr valign="top"
> align="left"><th>BASE2</th><td>http://marimba.murkworks.com:9180
> /Sysops</td></tr><tr valign="top"
> align="left"><th>BASE3</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF</td></tr><tr valign="top"
> align="left"><th>BASE4</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF/Members</td></tr><tr valign="top"
> align="left"><th>BASE5</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc</td></tr><tr valign="top"
> align="left"><th>BASE6</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell</td></tr><tr valign="top"
> align="left"><th>BASE7</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell/Jython</td></tr><tr valign="top"
> align="left"><th>BASE8</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785</td></tr><tr valign="top"
> align="left"><th>BASE9</th><td>http://marimba.murkworks.com:9180
> /Sysops/CMF/Members/bkc/Novell/Jython/Article%2C2002-03-
> 10%2C1015780837208910785/article_edit_form</td></tr></table><h3>
> environ</h3><table><tr valign="top"
> align="left"><th>HTTP_ACCEPT_ENCODING</th><td>'gzip,
> deflate'</td></tr><tr valign="top"
> align="left"><th>HTTP_CACHE_CONTROL</th><td>'no-
> cache'</td></tr><tr valign="top"
> align="left"><th>HTTP_USER_AGENT</th><td>'Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.0)'</td></tr><tr
> valign="top"
> align="left"><th>SERVER_PROTOCOL</th><td>'HTTP/1.1'</td></tr><tr
> valign="top"
> align="left"><th>SERVER_PORT</th><td>'9180'</td></tr><tr
> valign="top"
> align="left"><th>PATH_INFO</th><td>'/Sysops/CMF/Members/bkc/Nove
> ll/Jython/Article,2002-03-
> 10,1015780837208910785/article_edit_form'</td></tr><tr
> valign="top"
> align="left"><th>HTTP_HOST</th><td>'marimba.murkworks.com:9180'<
> /td></tr><tr valign="top"
> align="left"><th>REQUEST_METHOD</th><td>'GET'</td></tr><tr
> valign="top"
> align="left"><th>PATH_TRANSLATED</th><td>'/Sysops/CMF/Members/bk
> c/Novell/Jython/Article,2002-03-
> 10,1015780837208910785/article_edit_form'</td></tr><tr
> valign="top"
> align="left"><th>HTTP_COOKIE</th><td>'__ac="YmtjOmZyZWRkeQ%3D%3D
> %0A"; portal_skin="Plone Default";
> __cp="x%DA%D3%60b%60%60%C8d%04%12%D1%20B%83%1DH%143%80%086%20%11
> %5CY%9C_P%5C%CC%0Cd%3A%FB%BA%15%83%24%7DSs%93R%8B%20bI%D9%C9%60e
> %7E%F9e%A999%60ffnbzj1%00/%AB%10%AC"'</td></tr><tr valign="top"
> align="left"><th>SCRIPT_NAME</th><td>''</td></tr><tr
> valign="top"
> align="left"><th>SERVER_SOFTWARE</th><td>'Zope/(Zope 2.5.0
> (binary release, python 2.1, linux2-x86), python 2.1.2, linux2)
> ZServer/1.1b1'</td></tr><tr valign="top"
> align="left"><th>HTTP_ACCEPT_LANGUAGE</th><td>'en-
> us'</td></tr><tr valign="top"
> align="left"><th>HTTP_ACCEPT</th><td>'image/gif, image/x-
> xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
> application/vnd.ms-excel, application/msword, */*'</td></tr><tr
> valign="top"
> align="left"><th>REMOTE_ADDR</th><td>'128.153.43.12'</td></tr><t
> r valign="top"
> align="left"><th>HTTP_REFERER</th><td>'http://marimba.murkworks.
> com:9180/Sysops/CMF/Members/bkc/Novell/Jython?filter_state=set_v
> iew_filter&filter_by_Type%3Alist=%23&filter_by_Subject%3
> Atokens=&folder_factories%3Amethod=Add+New+Item'</td></tr><t
> r valign="top"
> align="left"><th>SERVER_NAME</th><td>'www.whfcauction.org'</td><
> /tr><tr valign="top"
> align="left"><th>GATEWAY_INTERFACE</th><td>'CGI/1.1'</td></tr><t
> r valign="top"
> align="left"><th>channel.creation_time</th><td>1015780837</td></
> tr><tr valign="top"
> align="left"><th>CONNECTION_TYPE</th><td>'Keep-
> Alive'</td></tr></table>,
> 'root': <Application instance at 8b18850>,
> 'template': <FSPageTemplate instance at 8e370c0>,
> 'traverse_subpath': [],
> 'user': bkc})
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/TAL/TALInterpreter.py, line 158, in __call__
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/TAL/TALInterpreter.py, line 510, in do_useMacro
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/TALES.py, line 247, in
> evaluate
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/Expressions.py, line 189,
> in __call__
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/Expressions.py, line 184,
> in _eval
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/Expressions.py, line 84,
> in render
> (Object: article_getTemplate)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Products/PageTemplates/ZRPythonExpr.py, line 75,
> in call_with_ns
> (Object: __render_with_namespace__)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Shared/DC/Scripts/Bindings.py, line 266, in
> __render_with_namespace__
> (Object: article_getTemplate)
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in
> _bindAndExec
> (Object: article_getTemplate)
> File
> /usr/local/Zope/AdkWood/Products/CMFCore/FSPythonScript.py, line
> 115, in _exec
> (Object: article_getTemplate)
> (Info: ({'script': <FSPythonScript instance at 8b52958>,
> 'context': <Article instance at 8e30bb8>, 'container': <CMFSite
> instance at 8eb8e40>, 'traverse_subpath': []}, (), {}, None))
> File Script (Python), line 9, in article_getTemplate
> File /usr/local/Zope/Zope-2.5.0-linux2-
> x86/lib/python/AccessControl/ZopeGuards.py, line 47, in
> guarded_getattr
> (Object: Article,2002-03-10,1015780837208910785)
> TALESError: Sorry, an error occurred
>
>
>
> Brad Clements, bkc@murkworks.com (315)268-1000
> http://www.murkworks.com (315)268-9812 Fax
> AOL-IM: BKClements
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests
--
Regards,
Thomas Olsen
http://www.tarpit.dk