[Zope3-dev] Can't view @@contents.html on root folder
Steve Alexander
steve@cat-box.net
Sun, 06 Apr 2003 23:24:15 +0200
I'm having a problem with the Zope 3 HEAD.
When I go to http://server.tld:port/@@contents.html, I get this error:
Traceback (most recent call last):
File "/home/steve/coding/zope3/Zope3/src/zope/publisher/publish.py",
line 138, in publish
result = publication.callObject(request, object)
File
"/home/steve/coding/zope3/Zope3/src/zope/app/publication/zopepublication.py",
line 155, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/home/steve/coding/zope3/Zope3/src/zope/publisher/publish.py",
line 115, in mapply
return debug_call(object, args)
File "/home/steve/coding/zope3/Zope3/src/zope/publisher/publish.py",
line 120, in debug_call
return object(*args)
File
"/home/steve/coding/zope3/Zope3/src/zope/app/pagetemplate/simpleviewclass.py",
line 45, in __call__
return self.index(template_usage, *args, **kw)
File
"/home/steve/coding/zope3/Zope3/src/zope/app/pagetemplate/viewpagetemplatefile.py",
line 77, in __call__
return self.im_func(self.im_self, template_usage, **kw)
File
"/home/steve/coding/zope3/Zope3/src/zope/app/pagetemplate/viewpagetemplatefile.py",
line 53, in __call__
return self.pt_render(namespace)
File
"/home/steve/coding/zope3/Zope3/src/zope/pagetemplate/pagetemplate.py",
line 119, in pt_render
context, output, tal=not source, strictinsert=0)()
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 167, in __call__
self.interpret(self.program)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 210, in interpret
handlers[opcode](self, args)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 649, in do_useMacro
self.interpret(macro)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 210, in interpret
handlers[opcode](self, args)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 375, in do_optTag_tal
self.do_optTag(stuff)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 360, in do_optTag
return self.no_tag(start, program)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 355, in no_tag
self.interpret(program)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 210, in interpret
handlers[opcode](self, args)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 672, in do_defineSlot
self.interpret(slot)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 210, in interpret
handlers[opcode](self, args)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 628, in do_defineMacro
self.interpret(macro)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 210, in interpret
handlers[opcode](self, args)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 615, in do_condition
self.interpret(block)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 210, in interpret
handlers[opcode](self, args)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 239, in do_startEndTag
self.do_startTag(stuff, self.endsep, self.endlen)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 261, in do_startTag
ok, name, s = attrAction(self, item)
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 339, in attrAction_tal
translated = self.translate(msgid or value, value, {})
File "/home/steve/coding/zope3/Zope3/src/zope/tal/talinterpreter.py",
line 601, in translate
msgid, i18ndict, default=default)
File
"/home/steve/coding/zope3/Zope3/src/zope/app/pagetemplate/engine.py",
line 70, in translate
return translator.translate(msgid, mapping, default=default)
File "/home/steve/coding/zope3/Zope3/src/zope/i18n/translate.py",
line 49, in translate
default=default)
File
"/home/steve/coding/zope3/Zope3/src/zope/i18n/globaltranslationservice.py",
line 76, in translate
target_language = negotiator.getLanguage(langs, context)
File "/home/steve/coding/zope3/Zope3/src/zope/i18n/negotiator.py",
line 29, in getLanguage
envadaptor = getAdapter(env, IUserPreferredLanguages)
File "/home/steve/coding/zope3/Zope3/src/zope/component/__init__.py",
line 65, in getAdapter
return getService(context, Adapters).getAdapter(
File "/home/steve/coding/zope3/Zope3/src/zope/component/adapter.py",
line 83, in getAdapter
raise ComponentLookupError(object, interface)
ComponentLookupError: (<zope.app.content.folder.RootFolder object at
0x8ae4374>, <InterfaceClass zope.i18n.interfaces.IUserPreferredLanguages
at 83470fc>)
This is with Python 2.2.2 on Linux, freshly checked out and built, and
with a fresh Data.fs. All unit tests pass.
Here's what I get when I start Python:
Python 2.2.2 (#1, Mar 21 2003, 23:01:54)
[GCC 3.2.3 20030316 (Debian prerelease)] on linux2
I spoke to Stephan on irc, and he said that he can't reproduce this
problem using either Python 2.3 from CVS or Python 2.2.2.
Here's what Stephan gets when he starts Python 2.2:
Python 2.2.2 (#1, Apr 6 2003, 16:57:36)
[GCC 3.2 (Mandrake Linux 9.0 3.2-1mdk)] on linux2
I'm about to try with Python 2.3 from CVS to see if I get a different
result.
Can anyone else reproduce this problem?
Any other ideas?
--
Steve Alexander