class Boo ServerTask sm def testie self test test2 return test 10 test

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class Boo(ServerTask):
@sm
def testie(self, test, test2):
return test * 10, test2 + 'bobobo'
def handler(self):
self._server = 12346
if settings.PORT != 12346:
while True:
print self.testie(10, 'test')
self.schedule()