aboutsummaryrefslogtreecommitdiff
path: root/budget/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2017-03-29Use propper base64 encoding version for py3Jocelyn Delalande1-0/+4
Removes py3-only warning (this alias might be removed in future py3 version): > DeprecationWarning: encodestring() is a deprecated alias, use encodebytes() > ('%s:%s' % (username, password)).encode('utf-8')).decode('utf-8').replace('\n', '') py2-compatible change.
2017-03-29Add Python 3.4 supportJocelyn Delalande1-1/+3
Note that py3.4 is the version shipped in current Debian version (Jessie).
2017-03-17Make ihatemoney Py2/3 compatible0livd1-18/+28
Flask-wtf>=0.13 is now required and Form is replaced by FlaskForm Py2/3 compatibility is assured by six
2017-03-09Add export feature0livd1-0/+31
Bills and transactions can now be exported to json or csv ref #28
2016-06-15Added a template filter not to show zero decimals on user weightsJocelyn Delande1-0/+14
2015-08-19Made an URL prefix configurable in settings, includes tests.Jocelyn Delande1-0/+31
2012-03-06remove unused codeFeth AREZKI1-9/+0
If that code is ever needed, I'll try to rewrite it as a class decorator, which is more hype
2012-03-06remove unused imports, and pep8Feth AREZKI1-2/+3
2011-10-08merge with masterAlexis Metaireau1-15/+0
2011-10-08Complete the REST API + Tests. Fix #27Alexis Metaireau1-1/+16
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