Skip to content

Releases: camptocamp/anthem

0.7.0

28 Apr 12:56
Compare
Choose a tag to compare

Improvements

  • Split CSV loaders in functions to be able to get rows from a CSV or to load
    rows, enabling to modify the rows before loading them for instance
  • create_or_update lyrics accepts now a model so we can change its env (user,
    context, ...)
  • New lyrics to uninstall module

0.6.0

18 Jan 15:49
Compare
Choose a tag to compare

Features

  • CSV loaders can be used with a model in order to pass a context

Bugfixes

  • Fix tests by installing eggs from odoo/requirements.txt to have fixed versions

0.4.0

19 Aug 07:24
Compare
Choose a tag to compare
  • New lyrics: CSV loaders from path or stream
  • New ctx.log_line to print a line respecting the current indentation

Improvements

  • Add tests for the existing lyrics

Build

  • Finally green builds!

0.3.0

26 Jul 13:55
Compare
Choose a tag to compare

Features

  • Add --quiet mode

Fixes

  • Encode the logged strings to the default encoding or utf8
  • Allow to use Ctrl-c to stop anthem.
  • Set openerp's loglevel to ERROR, its logs clutter anthem's own outputs

0.2.0

22 Jul 13:32
Compare
Choose a tag to compare

Features

  • Ability to log descriptions and timings in songs with the
    context manager Context.log and the decorator anthem.log.
    from anthem import log

    @log
    def setup_company(ctx):
        """ Setup company """
        # do stuff
        with ctx.log('other stuff'):
            # do other stuff

    @log
    def load_data(ctx):
        """ Load data """
        # load

    @log
    def main(ctx):
        setup_company(ctx)
        load_data(ctx)

If we run anthem on main, we will get:

    running... main
       running... Setup company
          running... other stuff
          other stuff: 0.850s
       Setup company: 1.100s
       running... Load data
       Load data: 2.900s
    main: 4.000s

0.1.3

07 Jul 07:51
Compare
Choose a tag to compare

Fixes

  • Correct lyric to create or update a record

0.1.2

07 Jul 07:51
Compare
Choose a tag to compare
  • Add a lyric to create a xmlid
  • Add a lyric to create or update a record

v0.1.1

07 Jul 07:52
Compare
Choose a tag to compare

release 0.1.1

v0.1.0

07 Jul 07:52
Compare
Choose a tag to compare

release 0.1.0