[Zope3-Users] Trouble with Skins

Arne Nordmann mail at arne-nordmann.de
Tue Jun 26 06:43:48 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I tried to create my own skin for a website of mine. I used Phillip's
book (2nd version) and tried to do everything analog (just different
names and a slightly different file structure).

If I call a test view (registered for IRootFolder) with the skin I get
the following error:

ComponentLookupError: ((<zope.app.folder.folder.Folder object at
0x886916c>, <zope.publisher.browser.BrowserRequest instance
URL=http://localhost:9673/++skin++norro/test>), <InterfaceClass
zope.interface.Interface>, 'h')

(Full traceback attached)

I don't know what this traceback wants to say. I'm wondering about the
value of the name-parameter that seems to be 'h' in this case. Where
does this 'h' come from? I really don't know where to look at.

I would appreciate every hint on what's going on here or where to look
for the error.

Thanks in advance,

Arne

PS: Using Zope 3.4 and Python 2.4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGgO3kRawDj1XqbtwRAgx2AJ4/xyFR/mB4KIcfEfVHQANj3HE96gCeNUyW
cOdTYjKurokuileJgE5gpf0=
=qtZD
-----END PGP SIGNATURE-----
-------------- next part --------------
------
2007-06-26T12:30:33 ERROR SiteError http://localhost:9673/++skin++norro/test
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 133, in publish
    result = publication.callObject(request, obj)
  File "/usr/lib/python2.4/site-packages/zope/app/publication/zopepublication.py", line 161, in callObject
    return mapply(ob, request.getPositionalArguments(), request)
  File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 108, in mapply
    return debug_call(obj, args)
   - __traceback_info__: <security proxied zope.app.publisher.browser.viewmeta.Test instance at 0x88b002c>
  File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 114, in debug_call
    return obj(*args)
  File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py", line 83, in __call__
    return self.im_func(im_self, *args, **kw)
  File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py", line 51, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/usr/lib/python2.4/site-packages/zope/pagetemplate/pagetemplate.py", line 117, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations)()
   - Warning: Macro expansion failed
   - Warning: zope.component.interfaces.ComponentLookupError: ((<zope.app.folder.folder.Folder object at 0x886916c>, <zope.publisher.browser.BrowserRequest instance URL=http://localhost:9673/++skin++norro/test>), <InterfaceClass zope.interface.Interface>, 'h')
  File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 271, in __call__
    self.interpret(self.program)
  File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 346, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 870, in do_useMacro
    macro = self.engine.evaluateMacro(macroExpr)
  File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 696, in evaluate
    return expression(self)
   - /var/www/zope_hp/lib/python/hp/browser/test.pt
   - Line 1, Column 0
   - Expression: <PathExpr standard:u'context/@@standard_macros/page'>
   - Names:
      {'args': (),
       'context': <zope.app.folder.folder.Folder object at 0x886916c>,
       'default': <object object at 0xb7e10558>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': {},
       'request': <zope.publisher.browser.BrowserRequest instance URL=http://localhost:9673/++skin++norro/test>,
       'template': <zope.app.pagetemplate.viewpagetemplatefile.ViewPageTemplateFile object at 0x905644c>,
       'usage': <zope.pagetemplate.pagetemplate.TemplateUsage object at 0x88bbc8c>,
       'view': <zope.app.publisher.browser.viewmeta.Test object at 0x88b002c>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x88bbb2c>}
  File "/usr/lib/python2.4/site-packages/zope/tales/expressions.py", line 217, in __call__
    return self._eval(econtext)
  File "/usr/lib/python2.4/site-packages/zope/tales/expressions.py", line 194, in _eval
    ob = self._subexprs[-1](econtext)
  File "/usr/lib/python2.4/site-packages/zope/tales/expressions.py", line 124, in _eval
    ob = self._traverser(ob, element, econtext)
  File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/engine.py", line 68, in __call__
    request=request)
  File "/usr/lib/python2.4/site-packages/zope/traversing/adapters.py", line 164, in traversePathElement
    return traversable.traverse(nm, further_path)
   - __traceback_info__: (<zope.app.publisher.browser.viewmeta.standard_macros object at 0x88ab84c>, 'page')
  File "/usr/lib/python2.4/site-packages/zope/traversing/adapters.py", line 49, in traverse
    return subject[name]
   - __traceback_info__: (<zope.app.publisher.browser.viewmeta.standard_macros object at 0x88ab84c>, 'page', [])
  File "/usr/lib/python2.4/site-packages/zope/app/basicskin/standardmacros.py", line 41, in __getitem__
    page = getMultiAdapter((context, request), name=name)
  File "/usr/lib/python2.4/site-packages/zope/component/_api.py", line 103, in getMultiAdapter
    raise ComponentLookupError(objects, interface, name)
ComponentLookupError: ((<zope.app.folder.folder.Folder object at 0x886916c>, <zope.publisher.browser.BrowserRequest instance URL=http://localhost:9673/++skin++norro/test>), <InterfaceClass zope.interface.Interface>, 'h')


More information about the Zope3-users mailing list