tryton-session

4.8.2 • Public • Published

Tryton Session

THIS PROJECT IS STILL A WORK IN PROGRESS !

tryton is a very extensible ERP written in Python.

tryton-session is a part of a bigger package (tryton-api) that is:

  • aimed to be a simple library to interact with a tryton server (trytond) from javascript (node or browser)
  • could be considered as a proteus like library for javascript

History

  • This project started as a portage of sao on nodejs
  • This migration faced many problems due to sao design as a clone of GTK client
    • session is unique
    • usage of jQuery for all (ajax, object manipulation, etc)
  • This project has progressively moved from a translation to a rewrite as we decided to
    • use more ES6 features (Promises, Arrow functions, etc)
    • use standard libraries for utils functions (underscorejs)
    • make it more event driven (some ideas from backbonejs)
    • support some extra features like session serialization, triggers on start/stop, etc

Credits

Contents

tryton-session exposes a session class that:

  • connects to server and keeps the token
  • ensures all server calls
  • supports pack and unpack for serialization (with triggers)

Readme

Keywords

none

Package Sidebar

Install

npm i tryton-session

Weekly Downloads

14

Version

4.8.2

License

GPL-3.0+

Unpacked Size

18.4 kB

Total Files

17

Last publish

Collaborators

  • coopengo