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

16 commits

Author SHA1 Message Date
Jocelyn Delande
3192681226 Imperted upstream code at 42dd9d54a8 (upstream is not tagged) inside a the sources dir 2015-04-26 14:06:33 +02:00
Feth AREZKI
46d2dfeb29 remove unused code
If that code is ever needed, I'll try to rewrite it as a class
decorator, which is more hype
2012-03-06 22:42:58 +01:00
Feth AREZKI
353aec4f1e remove unused imports, and pep8 2012-03-06 22:14:29 +01:00
Alexis Metaireau
19ae3ab3b2 merge with master 2011-10-08 13:45:05 +02:00
Alexis Metaireau
48bc551853 Complete the REST API + Tests. Fix #27 2011-10-08 13:27:30 +02:00
Arnaud Bos
681f22f3e4 Merge branch 'master' into auth-forms-usability 2011-09-18 23:39:10 +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
Arnaud Bos
88cd2f8675 Fix #24 on Authentication and New project forms usability.
- Do not display anymore the identifier field in home.

- Let the user enter the id if the slug generated from project name already exists as a project id.

- Moved get_billform_for from 'utils' to 'forms', to avoid issue (was 'from forms import ...' into utils,
  and 'from utils import ...' into forms, which causeed an error).
2011-09-11 05:30:28 +02:00
Alexis Metaireau
9eab5be9a3 RequestRedirect uses a HTTP 301. We need 303.
This is mainly because 301 is cacheable whereas 303 (See other) isn't.
The redirect response given by the app when trying to connect to a project
(via /project_name) while not authenticated was to permanently redirect to
/authenticate.

Once authenticated, the browser was redirected to the /project_name, that was
cached, leading to an endless loop.

303 see other allows to solve this problem.
2011-08-21 22:35:01 +02:00
Alexis Metaireau
065fe965a0 Add a set_default argument to the get_billform_for function. 2011-08-10 19:47:06 +02:00
Frédéric Sureau
922bf769f9 It is now possible to edit existing bills. 2011-08-10 12:59:30 +02:00
Frédéric Sureau
af2ca220a7 Automatically select all members of the 'payed for' field when adding a bill. 2011-08-10 10:48:14 +02:00
Alexis Metaireau
548101d8bb Some more theming and fixes. 2011-07-31 23:55:02 +02:00
Alexis Metaireau
2df6e11f05 Adding a bill is now working properly 2011-07-31 00:41:28 +02:00
Frédéric Sureau
e9b9a06779 Adding bill works 2011-07-29 17:14:33 +02:00
Alexis Metaireau
5e63a5034b Split the logic into different python modules:
* web.py contains the controllers (also called views) + url definitions
* models.py contains the models
* forms.py contains the forms
* utils.py contains a set of utility fonctions to ease the dev. process
2011-07-23 18:45:40 +02:00