[Zope3-Users] zmi menu error

Marius Gedminas mgedmin at b4net.lt
Wed Jan 23 13:21:20 EST 2008


On Mon, Jan 14, 2008 at 06:01:27PM +0100, Christophe Combelles wrote:
> john saponara a écrit :
>> I get reasonable edit screens for my car and driver classes when I use a 
>> url like "limoService/car1/edit.html" but when I try to add the edit 
>> screens as zmi menu entries I get an error:
>>   File "C:\Python24\Lib\site-packages\zope\app\publisher\browser\menu.py", 
>> line 62, in getMenuItems
>>     result = [(ifaces.index(item._for or Interface),
>> ValueError: list.index(x): x not in list
>
> It looks like there is a class instead of an interface somewhere.
> Maybe try to register your CarView and DriverView for ICar and IDriver 
> interfaces instead of Car and Driver classes.

That's right.

This is a Zope 3 bug that's been fixed in SVN:
http://svn.zope.org/?rev=79035&view=rev

Marius Gedminas
-- 
Cheap, Fast, Good -- pick two.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20080123/fb8eb7ba/attachment.bin


More information about the Zope3-users mailing list