class MyClass:
def action(self, data):
print data
def fetch(self):
User.find(where=['uid = ?', self.uid]).addCallback(self.action)
But the self.action method never gets called.. It appears that only callbacks that are accepted are global functions. Is there any way to make this work with the current code and/or is this a bug/feature of Twistar?
Hi there,
I'm running something like
But the self.action method never gets called.. It appears that only callbacks that are accepted are global functions. Is there any way to make this work with the current code and/or is this a bug/feature of Twistar?
Cheers