aboutsummaryrefslogtreecommitdiff
path: root/budget/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2011-09-18Merge branch 'master' into auth-forms-usabilityArnaud Bos1-0/+11
2011-09-11API first draft: utils. (related to #27)Alexis Metaireau1-0/+11
Introduces the "rest" module, with reusable utils for flask applications (will be packaged as a flask extension later on).
2011-09-11Fix #24 on Authentication and New project forms usability.Arnaud Bos1-15/+10
- 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-08-21RequestRedirect uses a HTTP 301. We need 303.Alexis Metaireau1-23/+12
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-10Add a set_default argument to the get_billform_for function.Alexis Metaireau1-3/+11
2011-08-10It is now possible to edit existing bills.Frédéric Sureau1-7/+2
2011-08-10Automatically select all members of the 'payed for' field when adding a bill.Frédéric Sureau1-1/+6
2011-07-31Some more theming and fixes.Alexis Metaireau1-2/+2
2011-07-31Adding a bill is now working properlyAlexis Metaireau1-1/+1
2011-07-29Adding bill worksFrédéric Sureau1-1/+1
2011-07-23Split the logic into different python modules:Alexis Metaireau1-0/+39
* 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