forked from Botanical/BotanJS
Deprecating old approach
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
class log:
|
||||
|
||||
@staticmethod
|
||||
def info( *args ):
|
||||
print( *args )
|
||||
|
||||
@staticmethod
|
||||
def error( *args ):
|
||||
print( *args )
|
||||
|
||||
class dummyTask( object ):
|
||||
|
||||
Func = None
|
||||
|
||||
def delay( self, *args ):
|
||||
self.Func( *args )
|
||||
|
||||
def __init__( self, *args ):
|
||||
self.Func = args[0]
|
||||
|
||||
def __call__( self, *args ):
|
||||
pass
|
||||
|
||||
class dummyConf:
|
||||
def update( self, broker_url = None ):
|
||||
pass
|
||||
|
||||
class app:
|
||||
conf = dummyConf()
|
||||
|
||||
def task():
|
||||
return dummyTask
|
||||
Reference in New Issue
Block a user