Re: [Zope3-Users] How to make content object return a view?

2006-05-26 Thread Benji York
TAHARA Yusei wrote: You need to use zapi.getMultiAdapter. (this is a alias for zope.component.getMultiAdapter) I suggest not using zapi aliases, use the canonical name for things instead. There is a growing dislike for zapi, and I suspect it will be deprecated in the future. -- Benji York

[Zope3-Users] How to make content object return a view?

2006-05-25 Thread David Johnson
I have a content object, that I want to return a view. How is this done? This situation seems to come up frequently for me. What do you do? In this case, the content object is a fax. The fax will include browser views as part of it's body. I tried zapi.getView(), but this has been

Re: [Zope3-Users] How to make content object return a view?

2006-05-25 Thread TAHARA Yusei
Hi. I tried zapi.getView(), but this has been deprecated, and I don't quite understand the best approach. You need to use zapi.getMultiAdapter. (this is a alias for zope.component.getMultiAdapter) Because content view is named multiadapter for content's interface and IBrowserRequest interface,