Commit graph

712 commits

Author SHA1 Message Date
Alexis Métaireau
08bcf702b8 Merge branch 'master' into almet/fix-supervisord-template 2018-08-05 14:27:30 +02:00
Alexis Métaireau
9ece687eb0 Update the changelog entry 2018-08-05 14:14:55 +02:00
Carey Metcalfe
94e2befb82 Fix cffi installation in Dockerfile (#364)
The Python cffi package requires the libc, libffi and openssl
development packages, as well as gcc to compile it.
2018-08-03 17:11:12 +02:00
JocelynDelalande
9caf213e1d Document MySQL setup (#357)
PyMySQL is more difficult to install since its version 0.9 since it now depends
on *cryptography* lib, which in turns depends on OpenSSL and Python dev files.

See https://github.com/PyMySQL/PyMySQL/issues/697
2018-07-17 00:22:23 +02:00
Jocelyn Delalande
026c1ec4aa Add missing ChangeLog entry 2018-07-16 23:00:31 +02:00
1d0880f3cb
Merge branch 'master' into almet/fix-supervisord-template 2018-07-16 22:58:48 +02:00
JocelynDelalande
c3f8ddd274 Fix Apache conf template, without relying on environment var (#359)
`python-home` is prefered over `python-path`. It will work with or without
a virtualenv.

See http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIDaemonProcess.html
2018-07-16 22:55:54 +02:00
mduret
f9cc4e5623 fix install with pip10 (#341)
* fix the docker build with pip10

* maj tricks https://github.com/spiral-project/ihatemoney/pull/341
2018-07-16 22:08:15 +02:00
JocelynDelalande
61f0fdde84
Merge pull request #338 from Glandos/translation_update
Translation update
2018-06-20 11:07:03 +02:00
Adrien CLERC
26d1e03877 Add changelog entry 2018-06-19 22:35:23 +02:00
Adrien CLERC
a5240fb8a3 compile l10n 2018-06-17 09:49:10 +02:00
Adrien CLERC
893db0bf2c fix fr l10n 2018-06-17 09:48:19 +02:00
Adrien CLERC
0a9d16b40a compile translations to MO 2018-05-15 22:05:42 +02:00
Adrien CLERC
1947a5ae78 update fr l10n 2018-05-15 22:05:06 +02:00
Adrien CLERC
fb31868278 update locales from template with pybabel 2018-05-15 21:47:01 +02:00
Adrien CLERC
74f72a46d5 new extraction with pybabel 2018-05-15 21:45:24 +02:00
Jocelyn Delalande
c3b2af3df3 Back to development: 2.1.1 2018-02-16 23:21:36 +01:00
Jocelyn Delalande
d3d1ddfa91 Preparing release 2.1 2018-02-16 23:18:12 +01:00
Jocelyn Delalande
131fe8a8b4 Add missing CHANGELOG and CONTRIBUTORS entries for v2.1 2018-02-16 23:17:45 +01:00
0livd
225849ac71 Docker: Fix gunicorn not using ihm system package (#320)
Fixes #319
2018-02-07 09:37:49 +01:00
0livd
d9471733f8 Fix some anti patterns in docker deployment (#321)
- Use exec to run gunicorn and avoid creating a new process.
- Add the possibility to pass any additional parameters to
gunicorn.
- Use only one gunicorn worker by default as the usual way to
scale the app in production would be to use the scale command
of the cluster scheduler. Additional workers could still be
added by passing the "-w" gunicorn parameter to docker run.
2018-02-07 09:37:21 +01:00
JocelynDelalande
667e555d67
Merge pull request #324 from JocelynDelalande/jd-stats-api
Add an API endpoint for statistics
2018-02-07 00:07:09 +01:00
Jocelyn Delalande
b95ea7f4e6 Add statistics support to API 2018-02-07 00:06:08 +01:00
Jocelyn Delalande
036cd05e57 Move member stats computation to a dedicated method 2018-02-07 00:01:13 +01:00
Jocelyn Delalande
b1a4572e8c Change statistics data structure
Clearer data structure, and simpler template

This commit has a side effect: sidebar now hides disabled members.

IMHO, the disabled members should either be hidden or shown consistently between
sidebar and central table. Previous status was: shown in sidebar (if balance ≠
0) and hidden in central table.
2018-02-07 00:01:13 +01:00
Jocelyn Delalande
389c7b8bcd Remove dead code 2018-02-06 23:59:46 +01:00
Jocelyn Delalande
cf7bd57248 Remove unused CSS odd/even classes
That was forgotten from fe39258630
2018-02-04 13:12:08 +01:00
Jocelyn Delalande
434ee8b852 Display sidebar scroll-bar only if required
This fix a regression from #316 (scrollbar was displayed all the time).

Note that the padding-bottom value is totally empiric, but proved OK on my Fx
and Chrome instances + some responsive tests. There might be finer solutions,
feel free :-).
2018-01-26 16:18:26 +01:00
0livd
b93ea4830d API: Migrate from flask-rest to flask-restful (#315)
The flask-rest custom json encoder is still needed
and thus was added to ihatemoney's utils.

Closes #298
2018-01-25 17:41:28 +01:00
Richard Coates
830718e1fe Make sidebar scrollable (#316)
* Make sidebar scrollable

Make sidebar scrollable.

* Update CHANGELOG.rst

Fixes #318
2018-01-25 17:34:37 +01:00
230eafdf58 Use Jinja2 strict rendering.
For this I had to create an Jinja2 explicit environment, so I put a
function in `ihatemoney.utils.create_jinja2_env(strict_rendering=False)`.

When using this environment and if `strict_rendering` is activated,
templates using undefined variables will now error out rather than
failing silently.
2018-01-14 18:37:10 +01:00
0504fd82f5 Fix the supervisord template.
The script was relying on the presence of an environment variable, which
is only set when the virtualenv is activated. But a virtualenv does not
have to be activated to work (it's possible to call the python command
directly).

This fixes it by relying on `sys.executable` which should be correct at
all times.

Fixes #306
2018-01-14 15:55:06 +01:00
JocelynDelalande
34a2161650
Merge pull request #308 from spiral-project/almet/fix-template-inclusion-packaging
Include all .j2 files in the packaged version.
2018-01-07 23:01:34 +01:00
c24ee6f1c4 Update the CHANGELOG. 2018-01-07 22:46:07 +01:00
59ff2dd6b2 Merge branch 'almet/fix-template-inclusion-packaging' of github.com:spiral-project/ihatemoney into almet/fix-template-inclusion-packaging 2018-01-07 21:44:33 +01:00
f1e2a2d84c Add a changelog entry 2018-01-07 21:43:35 +01:00
JocelynDelalande
2019b398f1 manage commands testing (#313)
* Rename manage.ConfigTemplate → manage.GenerateConfig

To be consistent with the CLI name: `generate-config`.

* Add tests for manage.py commands

* Run tests from pip-installed package

To be able to detect packaging-related issues on test runs.

refs #305
2018-01-07 00:27:42 +01:00
c3b973b15e Do not enforce a check on sha256 hash algorithm.
This makes it inconsistent with our own generated passwords. Only check
that the password has been hashed.

Fixes #310.
2018-01-05 22:59:12 +01:00
b581865873 Fix the supervisord template.
The script was relying on the presence of an environment variable, which
is only set when the virtualenv is activated. But a virtualenv does not
have to be activated to work (it's possible to call the python command
directly).

This fixes it by relying on `sys.executable` which should be correct at
all times.

Fixes #306
2018-01-05 22:40:28 +01:00
3b2e11ab63 Include all .j2 files in the packaged version.
I've also renamed the templates to *.j2 in order to make things clearer
to others. Having extensions with the name of the locale doesn't seem to
be a good practice, and would need us to add the locales in the MANIFEST
file each time we add one.

Fix #305
2018-01-05 22:06:11 +01:00
donkers
4ab8863eb2 Enable basic auth passthrough for API (#303)
* Enable basic auth passthrough for API

Added the couple of apache configuration lines necessary to get the basic authentication working for the API.

* Revert the addition of "AuthType Basic"

Did some more testing on my server here and I totally agree, don't need "AuthType Basic".
2018-01-05 12:32:46 +01:00
JocelynDelalande
c002cdbf94 Allow to disable/enable member via API (#301)
Disable was already (kind-of) possible via API via DELETE, but not re-enabling.

Kudos to @almet for helping me fixing that damn BooleanField :-)
2017-12-29 18:07:39 +01:00
Jocelyn Delalande
40e5a833a1 Fix tests layout so that API tests are not ran twice
Bad inheritance was causing APITestsCase tests to be ran twice.
2017-12-27 23:27:41 +01:00
Jocelyn Delalande
8fdf6407eb Back to development: 2.1 2017-12-27 19:10:00 +01:00
Jocelyn Delalande
b9d1a9c450 Preparing release 2.0 2017-12-27 19:09:05 +01:00
Jocelyn Delalande
d00f99b7ef Add missing entry to ChangeLog 2017-12-27 19:04:47 +01:00
JocelynDelalande
2dd7a0740a
Merge pull request #299 from spiral-project/fix-duplicate-member-validation
Fix duplicate member validation
2017-12-27 19:00:09 +01:00
JocelynDelalande
1c9120e68b Silent stderr output during app init for some commands (#293)
Avoid confusing the user for the commands outputing text to the user.

fix #277
2017-12-27 17:28:18 +01:00
867f77905b Require flask-rest 1.3 minimum.
Fixes #294
2017-12-27 17:26:16 +01:00
9fea0ffe2c Add tests for #294 2017-12-27 17:06:46 +01:00