Bug#429334: zope-cmfcore1.6: Adding a CMF Site being a Plone Site fails
Boris Daix
Boris.Daix at alysse.org
Sat Jun 16 17:21:59 UTC 2007
Package: zope-cmfcore1.6
Version: 1.6.2-1
Severity: normal
Hello,
I wanted Plone so I did:
# apt-get install plone-site
Logged in the ZMI, I did:
- Select "CMF Site" in the box;
- Hit "Add";
Then:
- Enter "myplone" in the Site ID;
- Select "Plone Site" in the box;
- Hit "Add".
When getting on the portal I caught a "Site Error". Here is the
corresponding trace, cut in the event.log file:
,----
| ------
| 2007-06-16T18:11:08 ERROR root Exception while rendering an error message
| Traceback (most recent call last):
| File "/usr/lib/zope2.9/lib/python/OFS/SimpleItem.py", line 223, in raise_standardErrorMessage
| v = s(**kwargs)
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPythonScript.py", line 108, in __call__
| return Script.__call__(self, *args, **kw)
| File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
| return self._bindAndExec(args, kw, None)
| File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
| return self._exec(bound_data, args, kw)
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPythonScript.py", line 164, in _exec
| result = f(*args, **kw)
| File "Script (Python)", line 16, in standard_error_message
| File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
| return self._bindAndExec(args, kw, None)
| File "/usr/lib/zope2.9/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
| return self._exec(bound_data, args, kw)
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPageTemplate.py", line 195, in _exec
| result = self.pt_render(extra_context=bound_names)
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFCore/FSPageTemplate.py", line 134, in pt_render
| result = FSPageTemplate.inheritedAttribute('pt_render')(
| File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/PageTemplate.py", line 104, in pt_render
| tal=not source, strictinsert=0)()
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 238, in __call__
| self.interpret(self.program)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 281, in interpret
| handlers[opcode](self, args)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro
| self.interpret(macro)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 281, in interpret
| handlers[opcode](self, args)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 457, in do_optTag_tal
| self.do_optTag(stuff)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 442, in do_optTag
| return self.no_tag(start, program)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 437, in no_tag
| self.interpret(program)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 281, in interpret
| handlers[opcode](self, args)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro
| self.interpret(macro)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 281, in interpret
| handlers[opcode](self, args)
| File "/usr/lib/zope2.9/lib/python/TAL/TALInterpreter.py", line 507, in do_setLocal_tal
| self.engine.setLocal(name, self.engine.evaluateValue(expr))
| File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/TALES.py", line 221, in evaluate
| return expression(self)
| File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py", line 185, in __call__
| return self._eval(econtext)
| File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py", line 180, in _eval
| return render(ob, econtext.vars)
| File "/usr/lib/zope2.9/lib/python/Products/PageTemplates/Expressions.py", line 85, in render
| ob = ob()
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFPlone/browser/navigation.py", line 328, in breadcrumbs
| base = tuple(view.breadcrumbs())
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFPlone/browser/navigation.py", line 328, in breadcrumbs
| base = tuple(view.breadcrumbs())
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFPlone/browser/navigation.py", line 328, in breadcrumbs
| base = tuple(view.breadcrumbs())
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFPlone/browser/navigation.py", line 317, in breadcrumbs
| name, item_url = get_view_url(context)
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFPlone/browser/navigation.py", line 37, in get_view_url
| props = getToolByName(context, 'portal_properties')
| File "/var/lib/zope2.9/instance/plone-site/Products/CMFCore/utils.py", line 82, in getToolByName
| raise AttributeError, name
| AttributeError: portal_properties
`----
By selecting "Plone Site" directly in the ZMI, it works fine (special
thanks to bzed on #debian-zope !).
Good bye,
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages zope-cmfcore1.6 depends on:
ii zope-common 0.5.33 common settings and scripts for zo
ii zope2.9 2.9.7-1 Open Source Web Application Server
zope-cmfcore1.6 recommends no packages.
-- no debconf information
--
Boris Daix
More information about the pkg-zope-developers
mailing list