aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
AgeCommit message (Collapse)AuthorFilesLines
2017-06-26Explain better what is a deactivation of a member, per @JocelynDelalande's ↵Alexis Métaireau1-1/+3
review
2017-05-18Public project creation and admin permissions (#210)0livd1-2/+37
* Add a @requires_admin decorator It can be used to protect specific endpoints with ADMIN_PASSWORD (a password that is stored unencrypted in the settings) The decorator has no effect if ADMIN_PASSWORD is an empty string (default value) * Require admin permissions to access create project endpoint When ADMIN_PASSWORD is not empty, project creation form on the home page will be replaced by a link to the create project endpoint so one is able to enter the admin password before filling the form
2017-05-17Add ACTIVATE_DEMO_PROJECT setting (#209)0livd1-2/+11
When set to False (True by default), it deactivates the demo project
2017-03-20Merge pull request #181 from 0livd/remove_archiveAlexis Metaireau1-13/+2
Remove unused archive feature
2017-03-19Remove unused archive feature0livd1-13/+2
The archive table is not removed from the database model because it would involve a tricky migration fixes #170
2017-03-19Use project.id in export filename as it is already slugified0livd1-1/+1
2017-03-09Add export feature0livd1-11/+34
Bills and transactions can now be exported to json or csv ref #28
2017-01-30Factor navbar between list_bills and settle_billJocelyn Delalande1-2/+7
2017-01-21Fix deprecation issues (ExtDeprecationWarning)Alexandre Avenel1-2/+2
2017-01-02Optimise SQL queries when displaying bills for a projectBaptiste Jonglez1-1/+3
By defaut, SQLAlchemy uses lazy loading, which means that displaying n bills will generate around n queries (to get the list of owers of each bill). Pre-load the list of owers to drastically decrease the number of SQL queries. Before this commit: 1004 SQL queries, 7535 ms elapsed time, 7536 ms CPU time, 530 ms SQL time After this commit: 5 SQL queries, 3342 ms elapsed time, 3393 ms CPU time, 15 ms SQL time Measured request: display the list of all bills for the project (without displaying the sidebar with balances) Test setup to measure performance improvement: - 5 users with various weights - 1000 bills, each paid by a random user, each involving all 5 users - laptop with Celeron N2830@2.16 GHz, SSD Samsung 850 EVO - sqlite database on SSD, using sqlite 3.15.2 - python 2.7.13 - Flask-DebugToolbar 0.10.0 (to count SQL queries and loading time) Performance measurements (using Flask-DebugToolbar with the second request, to avoid measuring cold-cache performance): - number of SQL queries - elapsed time (from request to response) - total CPU time consumed by the server handling the request - total time spent on SQL queries (as reported by SQLAlchemy)
2016-06-16Added member edit formJocelyn Delande1-0/+18
2013-10-12Add unit-test for bug #105.A.Avenel1-4/+6
Small code refactoring for better readability
2013-06-23Bugfix : error when you access /authenticate url without a project identifierA.Avenel1-1/+6
2013-05-09Merge pull request #96 from aavenel/masterAlexis Metaireau1-3/+4
New feature : Settle the bill
2013-04-08Bugfix#92 : error when deleting an userA.Avenel1-5/+5
2013-04-07More code cleanup for "settle bills"A.Avenel1-1/+1
2013-04-07use "member.id" instead of "member"A.Avenel1-3/+3
2013-02-19Merge branch 'flask0.9' of github.com:aavenel/ihatemoneyA.Avenel1-3/+3
2013-02-18update for flask 0.9A.Avenel1-2/+2
2012-11-26update for "create archive" interfaceA.Avenel1-1/+1
2012-11-03Merge git://github.com/Lastpixl/ihatemoney into HEADA.Avenel1-3/+4
Conflicts: budget/templates/layout.html budget/templates/list_bills.html
2012-09-02Fix project deletion. fix #87Alexis Metaireau1-2/+3
2012-03-12Split bills function and basic template.Xavier Mehrenberger1-3/+4
2012-03-06pep8 <3 and '*' imports removalFeth AREZKI1-28/+52
2012-02-20tolerance to smtp error when creating projectFeth AREZKI1-2/+10
2012-02-20cosmit. rem trailing spacesFeth AREZKI1-18/+18
2012-01-28Changed delete feature to only support POST method. Fix #21.Frédéric Sureau1-3/+3
2011-12-03The 'submit and add a new one' button now acts as intendedAlexis Metaireau1-2/+7
2011-11-28Add a 'sumbit and add a new one' button for new bills. Fix #53Alexis Metaireau1-2/+4
2011-11-28Fix #59. Edit now works properlyAlexis Metaireau1-1/+3
2011-11-28add a (dead simple) dashboard. Fixes #42Alexis Metaireau1-0/+4
2011-11-27change the icons, simplify some javascriptAlexis Metaireau1-1/+1
2011-11-02Add a way to delete a project. Fix #63Arnaud Bos1-0/+5
2011-10-20Last selected payer and translations. Fix #47.Arnaud Bos1-1/+9
- Last selected payer selected by default when creating a new bill - Fix some translation typos and modify a few labels
2011-10-17Add the ability to change the language explicitely. I'm not sure the UI is ↵Alexis Metaireau1-0/+7
better with this. Any thoughts are welcome. Fix #35
2011-10-15fix a bit the UI (identifier on bill's list)Alexis Metaireau1-3/+1
2011-10-15Translate the application using Flask-babel.Alexis Metaireau1-18/+23
The only translation so far is french, but more can be added. The browser language is used thanks to the HTTP languages headers. There are still some problems with the translation of some strings, I don't know why this is. See #12
2011-10-08Add a password recovery feature. Fix #32Alexis Metaireau1-2/+18
2011-10-08merge with masterAlexis Metaireau1-3/+3
2011-10-08Complete the REST API + Tests. Fix #27Alexis Metaireau1-2/+2
2011-09-18Merge branch 'master' into auth-forms-usabilityArnaud Bos1-15/+39
2011-09-14Provide a way to edit a project. Fix #17Alexis Metaireau1-1/+19
2011-09-14Simplified #30 fix.Arnaud Bos1-3/+2
2011-09-14Validate authentication form if given identifier is null. Fix #30.Arnaud Bos1-2/+6
2011-09-14Make the identifier clearer to the end-user.Arnaud Bos1-1/+14
- Send an email to the user with the summary of the created project containing a reminder of the identifier, password and a link. - Add flash message with the identifier in the /invite page/ - Add a small note containing the identifier in the upper right corner of the project main page.
2011-09-13API: Create and Update supportAlexis Metaireau1-10/+3
2011-09-13REST API is now able to list stuff \o/Alexis Metaireau1-2/+11
2011-09-11Fix #24 on Authentication and New project forms usability.Arnaud Bos1-6/+12
- 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-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