Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Run task for trytond

Project description

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

  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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trytond-tasks, version 0.0.4
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

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page