Commit graph

87 commits

Author SHA1 Message Date
Arnaud Bos
34ccb3546d Validate authentication form if given identifier is null. Fix #30. 2011-09-14 02:07:26 +02:00
b0d41291af API: Create and Update support 2011-09-13 22:58:53 +02:00
8528526f0b API: set the mimetype on the response 2011-09-13 19:24:48 +02:00
e13ceaf351 REST API is now able to list stuff \o/ 2011-09-13 18:15:07 +02:00
a60b0c2b48 add mimetype support to the rest API utils 2011-09-13 11:52:11 +02:00
d2e2260e52 Add a serialization mechanism 2011-09-13 11:27:36 +02:00
ef3d761fc7 Add Handlers for members and bills. 2011-09-11 23:00:32 +02:00
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
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
45dc6edacb Move some logic to the models and add comments. 2011-09-09 19:57:28 +02:00
801802836a Start working on archive management 2011-09-09 19:14:19 +02:00
0303ab4db7 Add a way to reactivate an user, make the add project non obstrusive 2011-08-25 18:25:58 +02:00
3f8cabd5a8 change the color of the font in the main page 2011-08-25 18:25:10 +02:00
1ccfa8a07d don't display delete link if the user is deactivated 2011-08-22 23:30:48 +02:00
e0a40a0c7c display a flash message when an user is coming back 2011-08-22 23:29:10 +02:00
e97d460a4a iterate also on deactivated people, show them if they owe or should receive money 2011-08-22 23:26:49 +02:00
5550e18cfd Add missing tests. Fixes #14 and #22. 2011-08-22 23:19:00 +02:00
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
63777c16bc authentication dance 2011-08-21 22:20:50 +02:00
16fcfd284e Add a flash message + the name of the site when sending invitations 2011-08-21 21:55:47 +02:00
929833cc04 put back stuff in the wrong place for now 2011-08-21 21:21:52 +02:00
ab44f253cd style the send invitations page 2011-08-21 21:16:32 +02:00
35ea308a26 Fix a weird behavior with tests and databases.
Now all the database during the tests is in memory, created for each test and cleared at the end of the test.
2011-08-21 20:54:20 +02:00
63a6491001 some more design fixes 2011-08-21 15:09:20 +02:00
a90959ba70 include bootstrap.css in the files to avoid weird changes in the future, Add a mention about the freedom of the project. Fixes #16 2011-08-21 14:57:05 +02:00
b941248662 add a demo feature (see #16) 2011-08-21 03:27:59 +02:00
5be9b2a0ce wording 2011-08-21 03:19:20 +02:00
85549cc98d graph some stuff from the spiral website 2011-08-21 03:16:54 +02:00
a6825cdcb7 styling & usability 2011-08-21 02:37:15 +02:00
03bb52f4c1 Do not loop-redirect on authenticate. 2011-08-21 02:23:53 +02:00
d584391929 minor styling changes (homepage) 2011-08-21 02:23:48 +02:00
2fdc86136d minor changes to the homepage 2011-08-21 01:50:35 +02:00
7d60bee0ef Re-design (Fixes #19) 2011-08-21 01:42:10 +02:00
95fb9bbbfd Add the project to the local context even if it is already in session. 2011-08-20 00:28:58 +02:00
3c4d87ae52 forgot to commit changes to web.py 2011-08-20 00:24:00 +02:00
28a3abf96d No need anymore to pass the project_id to the urls.
The project is now directly added to the context local g object, and injected on the fly into the urls that need it.

This commits also add ideas found while reading the flask documentation. The project can be enhanced in many ways, some ideas are stated there.
2011-08-19 23:44:54 +02:00
402d756bf1 Make flash messages go away after 2 seconds. 2011-08-10 23:55:07 +02:00
065fe965a0 Add a set_default argument to the get_billform_for function. 2011-08-10 19:47:06 +02:00
67350e7acc Add some simple javascript for usability.
* Ask confirmation before deleting an user
* Display the form when clicking on the add bill button
* Only show the delete button (for users) on mouse over.
2011-08-10 19:23:54 +02:00
822058b251 Add some more tests about membership. (#14)
Fixes #15 as invalid: deactivated users are not listed on the bill form or on the balance.
2011-08-10 17:49:35 +02:00
683c7ee0b8 Add tests about project creation and member add.
See #14
2011-08-10 17:07:23 +02:00
Frédéric Sureau
325b098345 Margin added between the add bill button and the bill list. 2011-08-10 13:16:46 +02:00
Frédéric Sureau
8a79f2d00c The delete bill feature has been fixed. #6 2011-08-10 13:05:01 +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
Frédéric Sureau
7ee2e74969 Changed 'for' value of checkboxes labels when adding a bill. This is now possible to check the correct box when you click on the label. 2011-08-10 10:28:41 +02:00
98f9d96a27 Fixes various typos. 2011-08-10 01:05:25 +02:00
5c44e495b7 get ready for production, baby :) 2011-08-10 00:53:15 +02:00
8050defa8f remove the debug route for production 2011-08-10 00:47:50 +02:00
0b180a7e9a use checkboxes rather than select multiple. Fixes #10 2011-08-10 00:20:16 +02:00