aboutsummaryrefslogtreecommitdiff
path: root/budget
AgeCommit message (Collapse)AuthorFilesLines
2017-06-27Use a hashed password for ADMIN_PASSWORD (#236)0livd4-8/+33
* Use a hashed password for ADMIN_PASSWORD A generate_password_hash manage.py command is provided Fixes #233 * Print a console warning for users using a clear text ADMIN_PASSWORD * Reword ADMIN_PASSWORD doc * Update changelog * Update CHANGELOG.rst - say it out loud - bump to 2.0 (that's the logic of semantic versioning while introducing breaking changes) * Bump to 2.0 (breaking change) * Update hashed password warning message * Mention the generate password hash in the Changelog
2017-06-21Add meta viewport tag. Fixes #219. (#231)Lucas Verney1-0/+1
2017-06-20Move the wsgi file to the budget dir (#218)0livd1-0/+1
The wsgi file needs to live in the budget dir if we want it to be installed by setuptools
2017-06-11More responsive layout (#213)Lucas Verney4-41/+50
Fix navbar responsiveness on mobile.
2017-05-18Public project creation and admin permissions (#210)0livd9-2/+93
* 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)0livd4-2/+22
When set to False (True by default), it deactivates the demo project
2017-04-23Externalize the settings (#193)0livd5-15/+67
Default settings from app's root path are loaded first Settings are then overriden by /etc/ihatemoney/ihatemoney.cfg or by another file which path is set in an env var Fixes #187
2017-04-22Move tests to budget.tests (#205)0livd2-0/+0
* Move tests to budget.tests Update tox.ini to call the unittest dicovery module Closes #196 * Fix typo in Readme
2017-03-29Use propper base64 encoding version for py3Jocelyn Delalande2-2/+6
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-29Remove ExtDeprecationWarning from manage.pyJocelyn Delalande1-2/+2
Using new-style flask extensions imports. grep tells me there were the only flask.ext.* occurences remaining in ihatemoney code.
2017-03-29Remove deprecated wtforms TextFieldJocelyn Delalande1-9/+9
It is a bare alias of StringField (thus, no alembic migration is required), deprecated since wtforms v2.0 (2013). Removes the following warning: > DeprecationWarning: The TextField alias for StringField has been deprecated and will be removed in WTForms 3.0 Ref https://github.com/wtforms/wtforms/commit/f07729dd45c0f5191f131d37adb0456104dc7c44
2017-03-29Use non-deprecated way to disable CSRF for APIJocelyn Delalande1-6/+6
See also https://github.com/lepture/flask-wtf/pull/287
2017-03-29Explicitly disables SQLALCHEMY_TRACK_MODIFICATIONSJocelyn Delalande1-0/+4
That noisy warning was everywhere in our test/CI logs before that commit: > ./home/travis/build/spiral-project/ihatemoney/.tox/py27/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning. > > 'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhe
2017-03-29Merge pull request #190 from spiral-project/use-app-rootJocelynDelalande1-4/+3
Use app.root_path instead of __HERE__
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-29Use app.root_path instead of __HERE__Alexis Métaireau1-4/+3
2017-03-28Create a Makefile to ease developmentAlexis Métaireau2-12/+3
2017-03-20Merge pull request #181 from 0livd/remove_archiveAlexis Metaireau7-71/+2
Remove unused archive feature
2017-03-19Remove unused archive feature0livd7-71/+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-17Make ihatemoney Py2/3 compatible0livd4-108/+122
Flask-wtf>=0.13 is now required and Form is replaced by FlaskForm Py2/3 compatibility is assured by six
2017-03-12Fix broken authentication test0livd1-1/+1
2017-03-12Fix tab indentation0livd2-9/+9
2017-03-09Add export feature0livd9-14/+260
Bills and transactions can now be exported to json or csv ref #28
2017-02-22Add non-regression test for member name XSSJocelyn Delalande1-0/+12
ref #173
2017-02-16Fix id in form labelAlexandre Avenel1-1/+1
Checking item was broken when clicking on the label instead of the checkbox
2017-02-16Remove obsolete codeAlexandre Avenel1-22/+0
2017-02-16Fix xss (#173)Alexandre Avenel3-3/+14
Fix #173 Rewrite multi select widget as a template in order to have all values properly escaped.
2017-02-15Merge pull request #172 from JocelynDelalande/jd-bootstrap-4Alexis Metaireau19-1514/+2702
WIP: Upgrade to bootstrap 4
2017-02-09Prevent "Add new bill" button flickeringJocelyn Delalande1-0/+5
2017-02-09Prevent dancing cells while hovering sidebar linesJocelyn Delalande1-0/+4
Fix a regression introduced with BS4 update.
2017-02-09Prevent modal overflowJocelyn Delalande1-4/+0
Allowing the modal to extend; thus "natural" page scrolling allows to see the whole popup.
2017-02-07Update bootstrap-datepicker to 1.6.4Jocelyn Delalande7-700/+2543
Actually switching to maintained fork at https://github.com/uxsolutions/bootstrap-datepicker ; the original project being unmaintained since 2012. - Works with recent jQuery - BS4 is not supported by bootstrap-datepicker, but actually, it works :-) ref https://github.com/uxsolutions/bootstrap-datepicker/issues/1670
2017-02-04Adapt list bills view to bootstrap 4Jocelyn Delalande2-9/+18
- modal classes and hierarchy changed since BS2 - striped tables are now handled by css3 pseudo-class rather than classes - fix placement/alignment for the button and comment above the table
2017-02-04Do not force huge add member buttonJocelyn Delalande1-1/+0
BS4 provides larger touch-friendly controls anyway.
2017-02-04Adapt tryout button to bootstrap 4Jocelyn Delalande2-1/+9
Trying to keep same look'n'feel.
2017-02-04Adapt navigation bar to bootstrap 4Jocelyn Delalande2-26/+31
Also fixed some weird alignment issues. I think this will need more work later (revamp the navbar layout to avoid that sensation of thing which are floating at random places in the navbar).
2017-02-04Add a label for screen-readers on user add formJocelyn Delalande1-1/+5
There was no label, which is bad for accessibility.
2017-02-04Refactor layout based on bootstrap 4 gridJocelyn Delalande6-49/+39
2017-02-04Adapt to bootstrap 4 formsJocelyn Delalande5-15/+19
- Adapt to BS4 class names and hierarchy - Redesign some forms to have the label above the input (mobile-friendly) - For the remaining inline form (add bill), use the grid, as BS no longer provides inline form alignment helpers
2017-02-04Update bootstrap dependency to bootstrap 4Jocelyn Delalande6-699/+20
2017-02-01Improve translation for user edit form.Berteh1-1/+5
2017-01-30Factor navbar between list_bills and settle_billJocelyn Delalande3-9/+9
2017-01-21Fix deprecation issues (ExtDeprecationWarning)Alexandre Avenel5-8/+8
2017-01-21Fix unit test rounding :Alexandre Avenel1-1/+4
Test was Ok but failed due to some floating point errors.
2017-01-17Merge pull request #166 from JocelynDelalande/jd-fix-prefixed-testAlexis Metaireau1-0/+1
Fix ServerTestCase.test_unprefixed test
2017-01-16Merge pull request #161 from zorun/optimise_sqlAlexis Metaireau2-2/+4
Optimise sql queries
2017-01-16Merge pull request #164 from zorun/fix_zero_transfersAlexis Metaireau4-8/+48
Fix zero-amount transfers and other rounding issues
2017-01-09Fix ServerTestCase.test_unprefixed testJocelyn Delalande1-0/+1
The test was always failing, actual reason is the `app.run.configure()` fails to reset the `APPLICATION_ROOT` setting which `ServerTestCase.test_prefixed` overloads (side effect). This patch *do not* fix app.run.configure as it seems uneasy, but takes a different approach which has the advantage of making the test more explicit. Would still be a good thing to investigate more on configure(). Fix #163
2017-01-03Workaround rounding issues when displaying balance of usersBaptiste Jonglez2-6/+6
A user with a "0.00" balance would have either a "+0.00" in green or a "-0.00" in red, depending on the exact value of the floating-point value. Fix this by simply rounding to 2 digits before comparing to zero.