22 lines
473 B
Python
22 lines
473 B
Python
|
import uno
|
||
|
import unohelper
|
||
|
from com.sun.star.task import XJobExecutor
|
||
|
from main import main
|
||
|
|
||
|
ID_EXTENSION = 'net.elmau.zaz.polizas'
|
||
|
SERVICE = ('com.sun.star.task.Job',)
|
||
|
|
||
|
|
||
|
class ZAZPolizas(unohelper.Base, XJobExecutor):
|
||
|
|
||
|
def __init__(self, ctx):
|
||
|
self.ctx = ctx
|
||
|
|
||
|
def trigger(self, args):
|
||
|
main(args)
|
||
|
return
|
||
|
|
||
|
|
||
|
g_ImplementationHelper = unohelper.ImplementationHelper()
|
||
|
g_ImplementationHelper.addImplementation(ZAZPolizas, ID_EXTENSION, SERVICE)
|