aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
AgeCommit message (Collapse)Author
2020-11-23bugfixproductionGuillaume Horel
the code was so secure to injections, that even the form fields were not allowed.
2020-11-23fix embarassing bugGuillaume Horel
2019-01-02répare le redirectGuillaume Horel
2019-01-02meilleur message d'erreurGuillaume Horel
2018-12-31Add configuration option for identity server locationThibaut Horel
2018-12-30fix logoutGuillaume Horel
2018-12-30bugfixesGuillaume Horel
2018-12-30formattingGuillaume Horel
2018-12-30remove password update logicGuillaume Horel
2018-12-26Change session flowThibaut Horel
The application is now expected to only receive authenticated request; the user_id is available in the X-Remote-User header. The @login_required decorator creates the session cookie from this header.
2018-11-23bretelles et ceintureGuillaume Horel
On veut être sur qu'il n'y a pas d'injection sql possible à travers le nom des colonnes, donc on utilise une whitelist.
2018-11-19restore Thibaut's brilliant codeGuillaume Horel
2018-11-19actually display error messageGuillaume Horel
2018-11-19fix timezonesGuillaume Horel
2018-11-19formattingGuillaume Horel
2017-07-23fix importGuillaume Horel
2017-07-23fix bugGuillaume Horel
2017-07-23Fix script to load emails in the databaseGuillaume Horel
- also turn on foreign keys support in sqlite3
2017-07-23handle comments through email responsesGuillaume Horel
2015-05-22Fix edit profile bug: covert to bytestring before computing the hashThibaut Horel
2015-04-02simplify restifyGuillaume Horel
2015-04-02move to python3Guillaume Horel
2015-04-01Do not add empty comments to the databaseThibaut Horel
2015-04-01Add edit comment featureThibaut Horel
This is handled in javascript. When clicking the edit link: 1. a form is shown to edit the RST source of the comment. 2. on submit, an AJAX POST request is sent to the new "comment" endpoint in the flask app. 3. the endpoint compiles the RST source, update the comment in the database and sends back formatted content to the client. 4. the client then updates the comment content and hides the form.
2015-04-01SmartypantsThibaut Horel
2015-04-01PEP8Thibaut Horel
2015-03-28unbroke adding newsGuillaume Horel
2015-03-28add an empty articles sectionGuillaume Horel
2015-03-28flash error messagesGuillaume Horel
2014-12-06refactor the templatesGuillaume Horel
2014-04-05forgot to load the timezonesshowGuillaume Horel
2013-12-01trying againGuillaume Horel
2013-12-01one more tryGuillaume Horel
2013-12-01try to fix the db lockGuillaume Horel
2013-09-17New pattern to load the dbGuillaume Horel
before it was reloaded every time due to the @app.before_request now it's loaded on demand.
2012-11-14Add a link to the news page in the emailThibaut Horel
2012-11-13fix dates in rss feedGuillaume Horel
2012-11-13Add the preview featureGuillaume Horel
not that well tested, so might kill your kitties.
2012-11-13Use le timago.js plugin to display datesGuillaume Horel
Ca a l'air de marcher, mais pose la question suivante: Pourquoi pas se débarasser du champ timezone dans la base de donnée et faire la conversion directement au niveau du javascript? L'avantage étant que l'utilisateur n'a aucun réglage à faire car le navigateur a accès à la timezone du système qui est sans la doute la première chose que l'utilisateur change.
2012-11-13Fix a unicode bug (I thought I had added this .encode() to solve another bug)Thibaut Horel
2012-11-13Send notification emails as htmlThibaut Horel
2012-11-13Order comments in ascending order (oldest comments first). Feels more naturalThibaut Horel
2012-11-12Make the locale encoding explicit to work even when the system's config is weirdThibaut Horel
2012-11-11Finish the timezine featureThibaut Horel
2012-11-10The time is be displayed in the user timezoneGuillaume Horel
I can't make the user edit template work The dropdown doesn't default to the current timezone.
2012-11-10Fix locales and minor encoding issueThibaut Horel
2012-11-10Add email notificationsThibaut Horel
2012-11-10Follow up to previous commit.Thibaut Horel
* Make flask db connnection also use date converters to avoid crashing when displaying dates * Update the import script to import dates from the old databse as timestamps By the way, I strongly disagree with this choice of using timestamps, for the following reasons: * why would timestamps be a better representation of times than ISO 8601? they cannot represent times before the epoch, they are more easily subject to "year 2000"-like bugs. No wonder why the vast majority of web protocols use ISO 8601 instead of timestamps. * Even MySQL internally uses ISO 8601 strings to store datetime fields * This solution requires to write unsupported sqlite code: there is no "timestamp" datatype in sqlite3, so you implicitely rely on sqlite3 casting this to a string. You also rely on the python doing implicit conversions from the database to datetime objects. The funniest part is that the way Python deals with this implicit conversion is by storing the datetime object as a "%Y-%m-%d %H:%M:%S" string in the database (which is by the way, not even standard ISO 8601:2004)! No timestamp anywhere to be seen, even though this is what is stated in schema.sql... This looks insane to me... Having explicit and standard conventions at the expense of two additional lines of code does not seems that insane in comparison to Python's insanity. python. The funniest part is that they way Python does this implicit conversion is by internally storing the
2012-11-09Stop insanity with timestampsGuillaume Horel
still need to check the function which imports the old database
2012-11-09Fix two bugsThibaut Horel
* make the shortening function backward compatible to old comments * fix a bug where the show_user function would always display the current user's profile