On 5/31/07, Tim Hicks <[EMAIL PROTECTED]> wrote:
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::


class Proxy:

    def __init__(self, context, brain):
        self.context = context
        self.obj = obj

Perhaps this is the wrong approach? You can't use views, where it is
much easier to massage the to-be-displayed data structures?

I see that you refer to 'obj' here, while you pass in 'brain', so the
above code wouldn't work. But from that I infer that you are using
CatalogBrains, in which case you'd perhaps be better off using a
different mixin object (you can specify an additional mixin in
catalogs).

--
Martijn Pieters

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to