Run task for trytond
Allow running tasks for trytond/5, this work has follow:
trytond-tasks expect class with suffix ‘Task’ inside directory ‘tasks’ in your module, look example class:
class HelloTask: """ hello print hello word """ command = 'hello' def parser_args(parser): # pleaser review argparser pass def run(pool, options): # pool is trytond.pool.Pool print("hello world")
Now you can call this task as follow: trytond-tasks -d midatabase hello.
Thats it, now you can write your administrative task for trytond.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size trytond_tasks-0.0.4.tar.gz (3.1 kB)||File type Source||Python version None||Upload date||Hashes View hashes|