1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
Commit graph

19 commits

Author SHA1 Message Date
Alexandre Avenel
5d009d839b Fix deprecation issues (ExtDeprecationWarning) 2017-01-21 15:03:58 +01:00
Jocelyn Delande
a5579220e0 Fix migrations upgrade path for MySQL
For some reason, the migration path from unmanaged db (from alembic
point-of-view) to managed db, through the initial migration works well with
sqlite… But not with mysql where the db system tries to re-create the existing
tables.

This commit is a way to detect if we are migrating from pre-alembic era and
skip the first migration (which would do nothing anyway), marking it as already
executed.

It's quite hackish but that's the best I found so far to get it working with
both MySQL and SQLite.
2016-06-18 12:13:46 +02:00
Jocelyn Delande
85abc0b1fc Added a template filter not to show zero decimals on user weights 2016-06-15 10:20:37 +02:00
Jocelyn Delande
74995f9959 Handle migrations through alembic/flask-Migrations
Auto-initialization now applies migrations instead of using db. create_all()

fix #83
2016-05-31 12:10:53 +02:00
Jocelyn Delande
b685fa74d6 Do not load user-overriden settings in unit tests.
Loading not versioned settings.py during tests make them less predictable.
That's inspired from django behaviour with DJANGO_SETTING_MODULE environment variable.
2016-04-03 22:31:32 +02:00
Jocelyn Delande
15091e28c0 Made an URL prefix configurable in settings, includes tests. 2015-08-19 22:56:45 +02:00
Jocelyn Delande
d6c514e7d1 Adds a way to (re)configure the running app, reloading settings.
Currently, there is no way to reset settings after modifying them, which is
anoying for tests.
2015-08-19 22:53:16 +02:00
Jocelyn Delande
df215cbb79 nicely deprecates DEFAULT_MAIL_SENDER as it changed upstream for flask-mail>=0.8 2015-04-30 16:58:16 +02:00
A.Avenel
bfea4e436f update for flask 0.9 2013-02-18 19:18:49 +01:00
Alexis Metaireau
b3ce91c79f add sentry support 2012-06-10 01:49:01 +02:00
Feth AREZKI
e04a4154e8 remove unused imports and from blah import * 2012-03-06 22:14:10 +01:00
Alexis Metaireau
db7e1496b0 Add the ability to change the language explicitely. I'm not sure the UI is better with this. Any thoughts are welcome. Fix #35 2011-10-17 00:03:41 +02:00
Alexis Metaireau
f7a969240a Add a datepicker (with support of i18n). Fix #37 2011-10-16 23:38:27 +02:00
Alexis Metaireau
d9c7977a59 fix a bit the UI (identifier on bill's list) 2011-10-15 02:24:02 +02:00
Alexis Metaireau
f61d1432c7 Translate the application using Flask-babel.
The only translation so far is french, but more can be added. The browser language
is used thanks to the HTTP languages headers.

There are still some problems with the translation of some strings, I don't know
why this is. See #12
2011-10-15 01:19:19 +02:00
Alexis Metaireau
97132ce88a Fix some problems related to postgresql and models 2011-10-13 21:27:56 +02:00
Alexis Metaireau
ef3d761fc7 Add Handlers for members and bills. 2011-09-11 23:00:32 +02:00
Alexis Metaireau
4bb96b28de API first draft: utils. (related to #27)
Introduces the "rest" module, with reusable utils for flask applications (will be packaged as a flask extension later on).
2011-09-11 22:11:36 +02:00
Alexis Metaireau
ef353d643c Refactor the application to use blueprints.
This allows to isolate some behavior in the context of the web application so
the API and the web application can behave in different ways.
2011-09-09 21:21:37 +02:00