Hi Tim, This is what IPublishTraverse is for. You may also want to use namespace traversal, in which case you could have URLs like:
http://foo.com/blog/++entries++/2007/01/01/abcdef This is easier to implement, I think, but an IPublishTraverse adapter should work. plone.app.portlets and plone.app.contentrules both have examples. Looking at ZPublisher.BaseRequest is also useful reading if you want to see how this works. Martin On 6/1/07, Tim Hicks <[EMAIL PROTECTED]> wrote:
Martin Aspeli wrote: > Tim Hicks wrote: >> Hi, >> >> I'm trying to proxy a persistent content object with a non-persistent >> object that intercepts calls to absolute_url. The proxy object looks >> like this:: > > That sounds pretty insane, and I can't think of any good reasons to do > it. :) > > What do you need it for? I'm trying to make objects appear as if they live in a folder hierarchy like "[weblog]/2007/06/01/the_object_here". In fact, they probably live in "[weblog]/the_object_here". I'm willing to believe the approach is (slightly) insane, but the goal seems reasonable... no? Tim
_______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
