David Johnson wrote:

>>>     orderform = PageTemplateFile('orderform.pt')
>> maybe this attribute ought to be called "template" instead of "orderform" ?
> Does the name make a difference?

Well, no, I was in a hurry, it makes a difference if you inherit from

but I see you don't define __call__:

class MessageView(object):

    def message(self):
        return '%s %s!' % (self.context.greeting, self.context.subject)

    def __call__(self):
        return '<html><body><big>%s</big></body></html>' % self.message()

Zope3-users mailing list

Reply via email to