On Jan 5, 2006, at 4:17 PM, Stephen Thorne wrote:


I'm having a bit of problem with inheritance.

Because of @turbogears.expose() I can't seem to be able to do this:

class MyClass(ParentClass):
    @turbogears.expose(self, args):
    def foo(self):
         d = super(MyClass, self).foo()
         d.update(dict(bar='baz'))
         return d

because of the double-decoration going on.

Is this kind of behaviour even possible? How do I access the original, pre-decorated method in the parent?

That should work perfectly fine, given a correct turbogears.expose call of course. How about you show a full example that doesn't work and also post the traceback?

-bob

Reply via email to