[Zope3-Users] traversing/publishing a simple attribute
Bernd Dorn
zope-mailinglist at mopa.at
Sat Nov 11 15:10:31 EST 2006
On 11.11.2006, at 18:34, Sascha Ottolski wrote:
>
> Now all I want is being able to visit
> http://localhost:8080/testhing/something, which would simply return
> the
> string "sometext". I'm wondering if this can be done without writing a
> view, and without making MyThing a Container.
there is a traversing namespace defined for this called attribute
http://localhost:8080/testhing/++attribute++something
the default traverser of objects just traverses dictionary items
if you want to implement a custom traverser you may want to take a
look at z3c.traverser
regards, Bernd
More information about the Zope3-users
mailing list