[Zope3-Users] problem adding view to a tool

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jan 4 08:21:31 EST 2005


On Sunday 02 January 2005 13:46, Marcus J. Ertl wrote:
> I'm trying to write a tool, for storing configuration data. I'm able to
> add the utility to the web-site folder, but If I try to view it, I get
> an error:
>
> ~  File "/usr/local/Zope3/src/zope/app/publisher/browser/menu.py", line
> 338, in getMenu
> ~    result = [{'title': item.title,
> TypeError: unpack non-sequence
>
> If i remove the one and only view, I have added for the utility, all
> works fine! This is, how I have added the view:
>
>         <page
>                 name="overview.html"
>                 for="lw.configure.configure.LocalConfigure"
>                 permission="zope.ManageServices"
>                 class=".browser.Overview"
>                 template="overview.pt"
>                 menu="zmi_views" title="Configuration" />
>
> What's wrong with this?

I think this is a bug. I am not sure why you get it though, since we use this 
pattern all the time. Please file a bug report or fix the bug in the 3.0 
branch and the trunk.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list