| Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
Note that py3.4 is the version shipped in current Debian version (Jessie).
|
|
Flask-wtf>=0.13 is now required and Form is replaced by FlaskForm
Py2/3 compatibility is assured by six
|
|
Bills and transactions can now be exported to json or csv
ref #28
|
|
|
|
|
|
If that code is ever needed, I'll try to rewrite it as a class
decorator, which is more hype
|
|
|
|
|
|
|
|
|
|
Introduces the "rest" module, with reusable utils for flask applications (will be packaged as a flask extension later on).
|
|
- 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).
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|