aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13REST API is now able to list stuff \o/Alexis Metaireau1-2/+11
2011-09-09Refactor the application to use blueprints.Alexis Metaireau1-50/+43
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-09Move some logic to the models and add comments.Alexis Metaireau1-15/+24
2011-09-09Start working on archive managementAlexis Metaireau1-12/+10
2011-08-25Add a way to reactivate an user, make the add project non obstrusiveAlexis Metaireau1-0/+11
2011-08-22display a flash message when an user is coming backAlexis Metaireau1-0/+1
2011-08-22Add missing tests. Fixes #14 and #22.Alexis Metaireau1-0/+8
2011-08-21RequestRedirect uses a HTTP 301. We need 303.Alexis Metaireau1-4/+3
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-21authentication danceAlexis Metaireau1-8/+7
2011-08-21Add a flash message + the name of the site when sending invitationsAlexis Metaireau1-0/+1
2011-08-21put back stuff in the wrong place for nowAlexis Metaireau1-8/+9
2011-08-21Fix a weird behavior with tests and databases.Alexis Metaireau1-9/+13
Now all the database during the tests is in memory, created for each test and cleared at the end of the test.
2011-08-21add a demo feature (see #16)Alexis Metaireau1-0/+6
2011-08-21Do not loop-redirect on authenticate.Alexis Metaireau1-0/+2
2011-08-21Re-design (Fixes #19)Alexis Metaireau1-32/+32
2011-08-20Add the project to the local context even if it is already in session.Alexis Metaireau1-0/+1
2011-08-20forgot to commit changes to web.pyAlexis Metaireau1-5/+5
2011-08-19No need anymore to pass the project_id to the urls.Alexis Metaireau1-54/+68
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-10Add a set_default argument to the get_billform_for function.Alexis Metaireau1-2/+1
2011-08-10Add some more tests about membership. (#14)Alexis Metaireau1-1/+1
Fixes #15 as invalid: deactivated users are not listed on the bill form or on the balance.
2011-08-10The delete bill feature has been fixed. #6Frédéric Sureau1-2/+0
2011-08-10It is now possible to edit existing bills.Frédéric Sureau1-12/+31
2011-08-10Fixes various typos.Alexis Metaireau1-1/+1
2011-08-10get ready for production, baby :)Alexis Metaireau1-8/+9
2011-08-10remove the debug route for productionAlexis Metaireau1-5/+0
2011-08-09formattingAlexis Metaireau1-4/+6
2011-08-09fixes authentication (#9)Alexis Metaireau1-18/+19
2011-08-09Add tests about sending notifications. #7Alexis Metaireau1-1/+1
2011-08-09Do not redirect users to the creation form when they are trying to log in.Alexis Metaireau1-4/+7
Fixes #9
2011-08-09Users are deleted when no bill is assigned to them. Fixes #5Frédéric Sureau1-3/+8
2011-08-09The bills list now only displays the specific bills of the project.Frédéric Sureau1-2/+5
2011-07-31Makes the computation working.Alexis Metaireau1-20/+18
2011-07-31List the projects in session into the home page.Alexis Metaireau1-2/+6
This allows easier access when people don't remembre the name / url of their projects.
2011-07-31Adding a bill is now working properlyAlexis Metaireau1-10/+3
2011-07-30Invite people after project creation.Alexis Metaireau1-5/+31
Uses the flask-mail extension.
2011-07-30Put back the old version of authenticate.Alexis Metaireau1-24/+22
(Fred, is there a reason why you're using form.id.validate()? Doesn't seem to be defined in here. Also properly deletes the session using session.clear rather than session = None. As session is an observable object, if it is updated to None, the session will *not* be invalided at the end of the request. Instead, you have to call clear() which will clear its members so the cookie will be updated accordingly at the end of the request.
2011-07-29Adding bill worksFrédéric Sureau1-1/+0
2011-07-29Homepage created and project authentication refactoredFrédéric Sureau1-26/+38
2011-07-26Check project id before authenticationFrédéric Sureau1-3/+5
2011-07-23Manage users creationAlexis Metaireau1-4/+14
2011-07-23Project creation.Alexis Metaireau1-27/+44
2011-07-23Split the logic into different python modules:Alexis Metaireau1-0/+145
* 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