Commit Graph

64 Commits

Author SHA1 Message Date
Michael Hope a1e04d5834 niche: move into a package so it can be installed 2020-12-12 12:35:38 +01:00
Michael Hope 14ed4b9d1f niche: update to Python3 2020-12-11 21:17:16 +01:00
Michael Hope b99a317835 Support HTTPS based redirects. 2015-03-03 20:41:12 +01:00
Michael Hope e928eae275 Added support for login behind HTTPS. 2014-05-23 21:41:04 +02:00
Michael Hope 05989ab593 Use unquote_plus so usernames like /user/foo+the+bar change to spaces. 2014-04-22 20:06:27 +02:00
Michael Hope bbf2b5e06c Fix a whitespace-only extended description turning into a real description. 2014-04-22 19:59:16 +02:00
Michael Hope 52ce6a4a44 PEP8, pylint, and pychecker all the things. 2014-04-22 19:51:34 +02:00
Michael Hope ff7dbc5b4c Switch to using a dirty flag on the whole of the table.
Pull back the cache time to reduce the dirty impact.
2014-04-19 20:50:19 +02:00
Michael Hope e90121ae36 Changed the cache prefix to come from the db name. 2014-04-19 20:24:19 +02:00
Michael Hope ad6c4a4ba6 Make /link/nn do a not found if there's no link.
Pull the memcache configuration out into config.
2014-04-19 20:11:38 +02:00
Michael Hope dbdae74266 Added a special '_count' extension which turns into a SQL COUNT(*). 2014-04-18 22:32:01 +02:00
Michael Hope 90d7d1dc7a Added a diediedie handler for killing the server while profiling. 2014-04-18 22:31:19 +02:00
Michael Hope 81ce9b2203 Added a memcache based database cache.
Turn off debug by default.
2014-04-18 22:29:59 +02:00
Michael Hope 1b39c19971 Re-worked the ordering of the by line to allow comment links.
Re-worked the layout of the sidebar.
Exclude the users own comments from the sidebar.
2014-04-17 20:17:16 +02:00
Michael Hope 9843c00dec Add CSRF tokens to all forms. 2014-04-17 19:55:55 +02:00
Michael Hope 3c464e3427 Tweaked the recent comments list. 2014-04-17 18:53:48 +02:00
Michael Hope 59abf6b5a2 Change back to three days of history. 2014-02-23 21:08:46 +01:00
Michael Hope 61978c7c08 Added a 'new' section to the sidebar. Currently goes back a fixed
number of days.
2014-02-23 21:04:35 +01:00
Michael Hope f4ddba1a4f Support an optional site wide license.
Fixes #29.
2014-02-23 20:25:42 +01:00
Michael Hope 2c072be6bc Use a (English only) helper to pluralise numbers.
Fixes #20.
2014-02-23 20:18:43 +01:00
Michael Hope f8f9e300cf Added MonkeyFilter compatible URLs. 2014-02-23 20:04:58 +01:00
Michael Hope 460083fc1b Added a Counters class for bumping event counters.
Added counters to most events.
2014-02-23 19:55:32 +01:00
Michael Hope 414b18b17f Made password boxes the same width as text.
Added a 'contact us on lost password' email link.
2013-10-10 22:15:44 +02:00
Michael Hope 12953d9616 Tidied up all of the forms. Now uses CSS.
Added a hook to automatically add descriptions and style to forms.
Now need the 'current password' when changing the password.
Changed 'content' to 'comment' for the new comment form.
2013-10-10 22:05:49 +02:00
Michael Hope 33ad21941d Prettified the new comment page. 2013-10-09 21:15:14 +02:00
Michael Hope edc008866a Added a JSON based generic type.
Added user editing.
Fixed rendering of the bio.
2013-10-09 20:49:02 +02:00
Michael Hope a7c96ebd49 web.config.debug needs to be set before anything else is created.
Tidy up the rest in preperation for a hack.
2013-10-03 22:29:41 +02:00
Michael Hope a627150757 Revert "Add simple function call count tracking."
This reverts commit b9bd774076.
2013-10-03 22:08:58 +02:00
Michael Hope b9bd774076 Add simple function call count tracking. 2013-10-03 21:50:44 +02:00
Michael Hope 53f29c3e4d Added an option to turn off auto reload. Not the best as fastcgi and
autoreload are normally tied.
2013-10-01 21:17:46 +02:00
Michael Hope 1f0a2df53b Added an internal page for tracking the object diff between GC runs.
Should show the type of any leaks.
2013-10-01 21:12:33 +02:00
Michael Hope a305bd6e08 Widened the default tags to match Monkeyfilter. 2013-10-01 19:56:27 +02:00
Michael Hope d19f0c99d7 Bind in RSS.
Bind in RSS to the layout page.
Add a checkout of all of a users links.
Put RSS and checkout behind feature flags.
2013-09-30 21:39:42 +02:00
Michael Hope af12a3d3dd Let the admin set a users password.
First pass at pylint.
2013-09-30 20:18:41 +02:00
Michael Hope beb8bc2328 Change how the server type (dev vs FastCGI) is set. 2013-09-29 21:16:04 +02:00
Michael Hope 020bbccdb3 Fix the archive by limiting the end date to 2037. Needed on brik as
its got an old libc.
Add a simple filter to the archive.
2013-09-29 20:18:21 +02:00
Michael Hope 873b4c2393 Added Markdown support for links and comments.
Split ConfigParser out so the defaults and a lists are common.
2013-09-29 15:58:06 +02:00
Michael Hope 5cd023b9b4 Fixed the link view to match the front page 'links' formatting.
Changed the comment box to always show.
2013-09-29 15:11:23 +02:00
Michael Hope 24bf894668 Did proper, auto-sizing pagination. 2013-09-28 21:25:03 +02:00
Michael Hope 31da4a2259 Always include the revno in the version. 2013-09-28 21:01:03 +02:00
Michael Hope c4602871c4 Added a call out to get the version from git. 2013-09-28 20:56:45 +02:00
Michael Hope cfd44e7103 Hid gravatar support behind a feature flag. 2013-09-28 19:38:51 +02:00
Michael Hope 2724f44828 De-hacked how the admin users are set.
Checked the other admin roles and made sure they check permissions.
2013-09-28 19:34:35 +02:00
Michael Hope 9174a57bf0 Added the per user comments view. 2013-09-28 19:23:20 +02:00
Michael Hope 5c553a2a31 Added support for features that can be turned on and off.
Put 'likes' behind a feature flag and turned it off.
2013-09-27 20:32:41 +02:00
Michael Hope d8848d200c Add date and per user links. 2012-07-04 21:33:19 +12:00
Michael Hope 85e0975789 Implement is_admin(). Need admin rights to delete a comment. Rework
authentication to show an error message on failure.
2012-07-04 20:16:20 +12:00
Michael Hope 872b9577a9 Fixed up a few more redirects. 2012-07-04 20:00:00 +12:00
Michael Hope 1c221f5057 Change all redirects to a helper to fix a range of redirect bugs. 2012-07-04 19:21:56 +12:00
Michael Hope db59fcec38 Fix liking a post. Add a subtitle. Add a default for wsgi. 2012-07-04 19:14:49 +12:00