Is it possible to call methods on a default object? To explain what I mean, here's an example:
There's Foo.py with a class:
class Foo:
def fooMethod():
print "doSomething"
fooObject = Foo()
And another pythonscript Bar.py:
from Foo import *
// what I can do now is:
fooObject.fooMethod()
// what I need is that this:
fooMethod()
// is automatically executed on fooObject if the method was not found in Bar.py
Is there any possibility to make this work? What I need is to set a "default"-object on which methods are executed if the method was not found.