zorun

zorun created pull request FFDN/himport#5

Python3 fixes

6 years ago

zorun pushed to py3k at zorun/himport

  • 9a9766d5db Tri des factures par nom quand elles sont listées dans un règlement Avec python3, l'ordre d'itération sur les dictionnaires est aléatoire. Lorsqu'un règlement concerne plusieurs factures, celles-ci sont donc listées dans un ordre aléatoire, ce qui génère une écriture différente à chaque lancement de himport. Pour résoudre ce problème, on liste les factures dans l'ordre alphabétique (ce qui correspond normalement à un ordre chronologique).

6 years ago

zorun pushed to py3k at zorun/himport

  • 568de8accd Don't override sys.stdout This caused Python3 (3.7.2 to be precise) to fail to print to stdout: Traceback (most recent call last): File "/home/zorun/.local/bin/himport", line 11, in <module> load_entry_point('himport', 'console_scripts', 'himport')() File "/home/zorun/tmp/himport/himport/cli.py", line 99, in main options = process_args() File "/home/zorun/tmp/himport/himport/cli.py", line 44, in process_args print(usage) File "/usr/lib/python3.7/codecs.py", line 378, in write self.stream.write(data) TypeError: write() argument must be str, not bytes After removing the sys.stdout redefinition, python3 is now happy, and python2 seems to still be able to print to stdout even with unicode characters.
  • 2055f54a4b Merge branch 'ignore_weird_facture_details' of zorun/himport into master
  • a5fec9136c Merge branch 'fixes' of zorun/himport into master
  • edfbb64242 Ignore useless invoice lines Dolibarr allows to group invoice lines under a title (actually, there can be up to 9 levels of title/subtitle/etc). Unfortunately, the title of each group appears in the database as a legitimate invoice line, so it gets imported by himport even though it does not make any sense. This patch ignores these "fake" invoice lines by filtering on the 'special_code' column.
  • 04a7006dd8 Use mysqlclient instead of the deprecated MySQL-python

6 years ago

zorun created new branch py3k at zorun/himport

6 years ago

zorun pushed to master at zorun/kea-hook-runscript

6 years ago

zorun created pull request FFDN/himport#4

Ignore useless invoice lines

6 years ago

zorun created pull request FFDN/himport#3

Small fixes

6 years ago

zorun pushed to fixes at zorun/himport

6 years ago

zorun created new branch fixes at zorun/himport

6 years ago

zorun pushed to ignore_weird_facture_details at zorun/himport

  • edfbb64242 Ignore useless invoice lines Dolibarr allows to group invoice lines under a title (actually, there can be up to 9 levels of title/subtitle/etc). Unfortunately, the title of each group appears in the database as a legitimate invoice line, so it gets imported by himport even though it does not make any sense. This patch ignores these "fake" invoice lines by filtering on the 'special_code' column.
  • fbd63dcd72 Merge branch 'develop'
  • d85a143d39 Fix #2 : Check also if societe is not none
  • d42d095f7b Fix dolibarr version check Fix #1
  • 378d176bf4 Fix module name

6 years ago

zorun created new branch ignore_weird_facture_details at zorun/himport

6 years ago

zorun forked a repository to zorun/himport

6 years ago

zorun pushed to master at Groupe_ftth/formulaire-tarifs-dsp-ftth

6 years ago

zorun pushed to master at Groupe_ftth/formulaire-tarifs-dsp-ftth

6 years ago

zorun pushed to master at Groupe_ftth/collecteftth

6 years ago

zorun pushed to master at Groupe_ftth/formulaire-tarifs-dsp-ftth

6 years ago

zorun pushed to master at Groupe_ftth/collecteftth

6 years ago

zorun pushed to stability at FFDN/celutz

  • bcecf09e74 Add a 'duration' field to reference points
  • f11f7817b4 Introduce LOCATE_POINT_MAX_DISTANCE setting
  • d27b2769d8 Add a command to create a panorama from the command-line
  • 6a5768ac4b Fix python2 compatibility with UTF-8 encoding
  • 5ff2a5c9ca Don't draw a line with the height if it's too small

6 years ago

zorun created new branch stability at FFDN/celutz

6 years ago

zorun pushed to rezine at FFDN/celutz

6 years ago