On 9/28/07, Frank Burkhardt <[EMAIL PROTECTED]> wrote:
>
> You could use a view as dispatcher which then would be traversed like
> object/@@view:
>
> class MyDispatcher(object):
>def __call__(self):
>
> realview=zapi.getMultiAdapter((self.context,self.context.__parent__,self.request))
Hi,
On Fri, Sep 28, 2007 at 05:33:56PM +0800, Yuan HOng wrote:
> On 9/28/07, Frank Burkhardt <[EMAIL PROTECTED]> wrote:
>
> >
> > You just need another browser:page here. Name it 'in-shelf-view' and
> > use something like
> >
> >
> >
> > to embed it.
> >
>
> Thanks, that works. So all was miss
On 9/28/07, Frank Burkhardt <[EMAIL PROTECTED]> wrote:
>
> You just need another browser:page here. Name it 'in-shelf-view' and
> use something like
>
>
>
> to embed it.
>
Thanks, that works. So all was missing is the '@@' notation to tell
TALES to look up a view for Book.
> Registering the vi
Hi,
On Fri, Sep 28, 2007 at 03:19:10PM +0800, Yuan HOng wrote:
[snip]
> Is it possible to register two different views for the Book, one for
> display in shelf, another for the detailed view? The one for the
> detailed view is simply a BrowerPage, but how to do the book-in-shelf
> view?
Exactly
Hi,
I thought this would be a simple case for Zope3, but after one whole
day I am not able to find a clean solution. Must be missing something.
Suppose I have a BookShelf which contains lots of Books. The view for
BookShelf will show a list of Books contained in the shelf, and when
the user clic