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

9 commits

Author SHA1 Message Date
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