[Zope3-dev] Re: Question about skins (standard_macros)

Florian Lindner mailinglists at xgm.de
Thu Oct 7 11:40:27 EDT 2004


Stephan Richter schrieb:

>On Thursday 07 October 2004 09:30, Florian Lindner wrote:
>  
>
>>>It selects the first one found. But I would consider it bad programming,
>>>if you have a macro defined twice.
>>>      
>>>
>>But the rotterdam skins defines the page macro twice:
>>
>>in template.pt registered as skin_macros and in view_macros.pt
>>registered as view_macros.
>>
>>Since macro_pages is defined as
>>macro_pages = ('skin_macros', 'view_macros', 'dialog_macros',  
>>'navigation_macros')
>>
>>is the macro from view_marcos ever been choosen?
>>
Ok, then I think I got the point.
I configured it like one, but when to try to call the object gg of skin 
centershock:

http://localhost:8080/++skin++centershock/gg/@@main.html

I get a "System error occured":

  File "C:\Python23\Lib\site-packages\zope\app\traversing\adapters.py", 
line 50,
 in traverse
    return subject[name]
  File 
"C:\Python23\Lib\site-packages\zope\app\basicskin\standardmacros.py", lin
e 42, in __getitem__
    page = getView(context, name, request)
  File "C:\Python23\Lib\site-packages\zope\component\__init__.py", line 
212, in
getView
    name, object, context, request)
ComponentLookupError: ("Couldn't find view", 's', <CS.Event.event.Event 
instance
 at 0x01460990>, None, <zope.publisher.browser.BrowserRequest instance 
URL=http:
//localhost:8080/++skin++centershock/gg/@@main.html>)
127.0.0.1 - zope.manager [7/Oct/2004:19:36:48 +0400] "GET 
/++skin++centershock/g
g/@@main.html HTTP/1.1" 200 292 "" "Mozilla/5.0 (Windows; U; Windows NT 
5.1; de-
DE; rv:1.7) Gecko/20040803 Firefox/0.9.3"

I got no idea where I have this view "s"  defined or used.

If you need further information, please request....!

Thx,

Florian



More information about the Zope3-dev mailing list