[prev in list] [next in list] [prev in thread] [next in thread]
List: zope3-users
Subject: Re: [Zope3-Users] Re: browser:form
From: "Jeff Shell" <eucci.group () gmail ! com>
Date: 2006-02-23 18:11:36
Message-ID: 88d0d31b0602231011n79b70565hb3ba173767953391 () mail ! gmail ! com
[Download RAW message or body]
On 2/22/06, suresh <suresh_vv@yahoo.com> wrote:
> Jeff Shell wrote:
> > On 2/21/06, David Johnson <djohnson@jsatech.com> wrote:
> > With formlib, you'd be able to get/set this in the update() method, or
> > if you're clever, you can do it in publishTraverse so you can have url
> > like '.../mycontacts/contact/1234'.
>
> Thanks for the mini-tutorial :)
>
> Will publishTraverse work with Five?
I'm not sure. I haven't used Five. But if it doesn't, you *should* be
able to get by with ``__bobo_traverse__``. I think the signature is
the same - accepts a request and a name, and should return a callable
or traversable object::
def __bobo_traverse__(self, REQUEST, key):
self.contactid = key
return self
*Should* work if publishTraverse doesn't. But since publishTraverse is
a core protocol from zope.publisher, I would expect Five views to
support it.
--
Jeff Shell
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic