Working through Web Component Development with Zope 3 Second Edition, I'm
stuck just at the point it gets more interesting.

In the interactive debug session looking at a basic view, I get a lookup
error at...

view = getMultiAdapter((lasagne, request), name=u'index.html')

I've confirmed that both lasagne, and request are objects.

the error reads in part,  "line 103 in multiadapter ...

And related to this, when I open the browser to the recipes stored in root


as the example shows,  I get "The page that your are trying to access is not
available", even though ministrone is in the root and shows up in the ZMI

I need help getting further in my studies.  If there is a FAQ or archive if
this list please let me know where it is.

(The configuration files and relevant py files are included)


Attachment: configure.zcml
Description: Binary data

from zope.publisher.browser import BrowserPage

class ViewRecipe(BrowserPage):

    def __call__(self):
        response = self.request.response
        response.setHeader('Content-Type', 'text/plain')
from persistent import Persistent
from zope.interface import implements
from worldcookery.interfaces import IRecipe

class Recipe(Persistent):

    name = u''
    ingredients = []
    tools = []
    time_to_cook = 0
    description = u''

from zope.component.factory import Factory

recipeFactory = Factory(
    title=u"Create a new recipe",
    description = u"This factory instantiates new recipes."
Zope3-users mailing list

Reply via email to