Commit Graph

66 Commits

Author SHA1 Message Date
Georg Sauthoff af78ec1c53 support building ShoppingCartPDFPosition positions 2016-09-23 18:37:58 +02:00
Georg Sauthoff bf758177bf add formats retrieval method
and cache the result as json
2016-09-23 18:36:32 +02:00
Georg Sauthoff 19c48360cb convert class variable into an instance one
Otherwise, you can't have multiple connections with different
authentications and basket contents. Also, re-constructing the
object didn't clear the positions which isn't very intuitive.
2016-09-23 11:38:01 +02:00
Georg Sauthoff d5220f809e fix Python 3 compatibiltiy
the result still is compatible with Python 2 (tested with 2.7)

- use relative import in `__init__.py` such that the import of `inema`
  also works with `PYTHONPATH` set to the repository
- use another method to load the json file, i.e. one that also works
  when the package isn't installed
- replace some deprecated imports (that aren't available in Python 3)
  with their sucessors
- replace some Python 2 specific constructs (e.g. `map` that implicitly
  converts to a list in Python 2 but just returns a map object in Python 3)
2016-09-23 11:30:18 +02:00
Harald Welte a478bfe03e setup.py: Update classifiers, add cgit URL 2016-07-24 13:32:31 +02:00
Harald Welte 597cc60046 Add actual content to README.rst 2016-07-24 12:56:03 +02:00
Harald Welte 869d001b81 setup.py: Add missing ',' 2016-07-24 12:49:58 +02:00
Harald Welte c136b66a31 fix setup.py / install on FreeBSD 2016-07-24 12:48:20 +02:00
Harald Welte d679cc1d3d add example script on how to use python-inema 2016-07-24 12:37:29 +02:00
Harald Welte 3a643f54b5 port to python-zeep >= 0.12.0 which uses _soapheaders
Prior to this commit, we useda custom modified versin of python-zeep
that accepts a list of headesr as part of the _soapheader argument.
Recent changes to python-zeep include that support natively using the
_soapeheaders [plural] argument.  Port the code to that.
2016-07-24 12:29:29 +02:00
Harald Welte bdb60a861b log how many positions in the basket we are submitting 2016-07-15 23:24:21 +02:00
Harald Welte eb03095932 add new clear_positions() method to clear a shopping basket 2016-07-15 23:24:05 +02:00
Harald Welte 4a87cb7d57 fix logger statements in terms of format string use 2016-07-15 15:53:27 +02:00
Harald Welte 9b3187c6a9 remove 'print' statements and use python logging instead 2016-07-15 15:03:46 +02:00
Harald Welte 36120fbd7d Always use German time zone, even if system time zone is different
The 1C4A hash is computed based (among other things) the current German
time.  Let's use German time no matter which timezone the executing
system is using.
2016-07-15 13:49:20 +02:00
Harald Welte 6b4c0683a2 initial import of code 2016-07-14 01:32:12 +02:00