hamn.git
12 years agoAdd more info when JSON return is not in JSON format
Magnus Hagander [Thu, 13 Jun 2013 11:51:04 +0000 (13:51 +0200)]
Add more info when JSON return is not in JSON format

12 years agoAvoid using global variable that wasn't intended to be global
Magnus Hagander [Thu, 13 Jun 2013 11:50:31 +0000 (13:50 +0200)]
Avoid using global variable that wasn't intended to be global

12 years agoFixes for new verson of feedparser in wheezy
Magnus Hagander [Sun, 26 May 2013 17:16:06 +0000 (13:16 -0400)]
Fixes for new verson of feedparser in wheezy

12 years agoUpdate for django 1.4
Magnus Hagander [Sat, 25 May 2013 19:02:57 +0000 (15:02 -0400)]
Update for django 1.4

12 years agoFix link to signup page
Magnus Hagander [Tue, 12 Feb 2013 20:28:48 +0000 (21:28 +0100)]
Fix link to signup page

Noted by Quinn Weaver

13 years agoOops, fix SQL query properly
Magnus Hagander [Tue, 11 Sep 2012 08:16:44 +0000 (10:16 +0200)]
Oops, fix SQL query properly

13 years agoTurn all twitter handles to lowercase when comparing
Magnus Hagander [Tue, 11 Sep 2012 08:15:32 +0000 (10:15 +0200)]
Turn all twitter handles to lowercase when comparing

You can't have different users with twitter handles only differing in
case anyway.

13 years agoSynchronize mailinglist subscriptions using https instead of http
Magnus Hagander [Mon, 13 Aug 2012 11:25:07 +0000 (13:25 +0200)]
Synchronize mailinglist subscriptions using https instead of http

13 years agoSet full user name
Magnus Hagander [Fri, 20 Jan 2012 12:27:14 +0000 (13:27 +0100)]
Set full user name

This probably got broken when we switched to the new community auth system

13 years agoFix typo
Magnus Hagander [Wed, 28 Dec 2011 13:58:13 +0000 (14:58 +0100)]
Fix typo

13 years agoImplement single sign-out with community auth 2.0
Magnus Hagander [Tue, 27 Dec 2011 18:36:49 +0000 (19:36 +0100)]
Implement single sign-out with community auth 2.0

13 years agoSwitch to postgresql.org community auth 2.0
Magnus Hagander [Fri, 23 Dec 2011 09:50:03 +0000 (10:50 +0100)]
Switch to postgresql.org community auth 2.0

This makes logins through redirects to the www.postgresql.org site instead
of a local password prompt. Hopefully this will provide both better security
and a better user experience...

13 years agoRetabbed (ugh)
Selena Deckelmann [Wed, 23 Nov 2011 23:49:01 +0000 (15:49 -0800)]
Retabbed (ugh)

13 years agoAllow https URLs
Selena Deckelmann [Wed, 23 Nov 2011 23:02:16 +0000 (15:02 -0800)]
Allow https URLs

13 years agoMove policy page to the wiki
Magnus Hagander [Fri, 11 Nov 2011 16:47:00 +0000 (17:47 +0100)]
Move policy page to the wiki

13 years agoDon't throw exception when approving a blog with no name
Magnus Hagander [Sat, 24 Sep 2011 11:04:08 +0000 (13:04 +0200)]
Don't throw exception when approving a blog with no name

14 years agoRemove @ signs from twitter names
Magnus Hagander [Thu, 18 Aug 2011 16:16:55 +0000 (18:16 +0200)]
Remove @ signs from twitter names

14 years agoAdd script to generate the short URLs on the commandline, for old posts
Magnus Hagander [Mon, 11 Apr 2011 12:02:16 +0000 (14:02 +0200)]
Add script to generate the short URLs on the commandline, for old posts

14 years agoClearly in need of more testing... Need id, not title
Magnus Hagander [Mon, 28 Mar 2011 18:00:48 +0000 (20:00 +0200)]
Clearly in need of more testing... Need id, not title

14 years agoFix completely messed up copy/paste
Magnus Hagander [Mon, 28 Mar 2011 17:57:46 +0000 (19:57 +0200)]
Fix completely messed up copy/paste

14 years agoGenerate twitter links using postgr.es instead of bit.ly
Magnus Hagander [Mon, 28 Mar 2011 15:17:28 +0000 (17:17 +0200)]
Generate twitter links using postgr.es instead of bit.ly

14 years agoAdd support for generating local shortnames for twitter posts
Magnus Hagander [Mon, 28 Mar 2011 13:48:58 +0000 (15:48 +0200)]
Add support for generating local shortnames for twitter posts

Do a simple base64 encoding of the id value, and pass this to
http://postgr.es/p/<id>.

14 years agoForgot to make redirector.py executable..
Magnus Hagander [Mon, 28 Mar 2011 13:36:51 +0000 (15:36 +0200)]
Forgot to make redirector.py executable..

14 years agoAdd URL redirector for http://postgr.es/p/<id>
Magnus Hagander [Mon, 28 Mar 2011 13:35:44 +0000 (15:35 +0200)]
Add URL redirector for http://postgr.es/p/<id>

Not used yet, need to deploy the redirector before it can be used..

14 years agoEnsure twitter status messages are utf-8 encoded
Magnus Hagander [Mon, 14 Mar 2011 12:57:59 +0000 (13:57 +0100)]
Ensure twitter status messages are utf-8 encoded

14 years agoRemove imported feedparser.py, instead relying on the one that's installed on the...
Magnus Hagander [Fri, 11 Mar 2011 12:10:41 +0000 (13:10 +0100)]
Remove imported feedparser.py, instead relying on the one that's installed on the system

14 years agoCheck server status before we check the contents of the feed
Magnus Hagander [Sun, 6 Mar 2011 15:31:41 +0000 (16:31 +0100)]
Check server status before we check the contents of the feed

By checking the contents first, we'd get an exception before
we got to the status check, and thus generate an incorrect message

14 years agoAdd csrf_token, required by newer Django versions
Magnus Hagander [Sun, 13 Feb 2011 12:13:20 +0000 (13:13 +0100)]
Add csrf_token, required by newer Django versions

14 years agoFix incorrect markup
Magnus Hagander [Fri, 10 Dec 2010 19:39:00 +0000 (20:39 +0100)]
Fix incorrect markup

Also move the "reset http time" so that it's available to non-superuser,
which was really the reason is was created in the first place...

14 years agoAdd admin link to reset http time for a blog
Magnus Hagander [Thu, 9 Dec 2010 10:17:29 +0000 (11:17 +0100)]
Add admin link to reset http time for a blog

In case the blog incorrectly changes things backwards in time, or
similar situations where the If-Modified-Since header actually points
beyond the end of the blog, we don't get the latest posts. It's really
a problem on the blog side from what I can tell, but this gives the
blog owner a chance to reset the counter and re-fetch the whole blog.

14 years agoFix typo
Magnus Hagander [Thu, 9 Dec 2010 10:16:16 +0000 (11:16 +0100)]
Fix typo

15 years agoHighlight code/pre blocks in planet posts.
Magnus Hagander [Thu, 2 Sep 2010 20:24:31 +0000 (22:24 +0200)]
Highlight code/pre blocks in planet posts.

Joshua Drake

15 years agoIf the given Last-Modified value is too far in the future, rewrite it to now().
Magnus Hagander [Thu, 2 Sep 2010 12:35:21 +0000 (14:35 +0200)]
If the given Last-Modified value is too far in the future, rewrite it to now().

Some blogs would return Last-Modified as 2038-<something>, yet still honor
the If-Modified-Since: 2038-<something> header and thus never deliver any
feeds at all..

15 years agoSupport cursors when listing subscribers to a list.
Magnus Hagander [Sat, 28 Aug 2010 12:20:59 +0000 (14:20 +0200)]
Support cursors when listing subscribers to a list.

It seems the twitter api always uses this even though it's supposed
to be optional.

15 years agoUpdate sample INI file with a reborn and a new parameter.
Magnus Hagander [Sat, 28 Aug 2010 12:05:00 +0000 (14:05 +0200)]
Update sample INI file with a reborn and a new parameter.

15 years agoMake the name of the twitter list configurable.
Magnus Hagander [Sat, 28 Aug 2010 12:04:38 +0000 (14:04 +0200)]
Make the name of the twitter list configurable.

15 years agoThe list_subscribers function belongs in TwitterClient
Magnus Hagander [Sat, 28 Aug 2010 12:01:51 +0000 (14:01 +0200)]
The list_subscribers function belongs in TwitterClient

15 years agoRefactor the posttotwitter.py script to use TwitterClient.
Magnus Hagander [Sat, 28 Aug 2010 11:59:59 +0000 (13:59 +0200)]
Refactor the posttotwitter.py script to use TwitterClient.

15 years agoAdd a script that synchronizes a twitter list with the list of subscribers.
Magnus Hagander [Sat, 28 Aug 2010 11:53:20 +0000 (13:53 +0200)]
Add a script that synchronizes a twitter list with the list of subscribers.

In passing, create a TwitterClient base class for use for all communication
with twitter.

15 years agoStore the Last-Modified time as received from the webserver.
Magnus Hagander [Tue, 24 Aug 2010 13:24:02 +0000 (15:24 +0200)]
Store the Last-Modified time as received from the webserver.

Use this for If-Modified-Since, instead of just using the timestamp
of the latest blog post found.

This should keep us from pulling the full feed from any blog that
has modified the contents of a post (or comments) without updating
the post date/GUID.

15 years agoProperly escape title of blogposts when generating Delete link with the title in it,
Magnus Hagander [Fri, 2 Jul 2010 09:08:07 +0000 (10:08 +0100)]
Properly escape title of blogposts when generating Delete link with the title in it,
so it's possible to delete a post that has a single quote in the title.

Per report from JD

15 years agoUpdate sample INI file to reflect twitter-oauth changes
Magnus Hagander [Sat, 19 Jun 2010 15:11:55 +0000 (17:11 +0200)]
Update sample INI file to reflect twitter-oauth changes

15 years agoBetter way for old python compatibility (should work this time, I think)
Magnus Hagander [Sat, 19 Jun 2010 13:27:45 +0000 (15:27 +0200)]
Better way for old python compatibility (should work this time, I think)

15 years agoAttempt to make compatible with old version of python used on planet server
Magnus Hagander [Sat, 19 Jun 2010 13:25:54 +0000 (15:25 +0200)]
Attempt to make compatible with old version of python used on planet server

15 years agoMake the twitter poster use OAuth authentication instead of the old HTTP
Magnus Hagander [Sat, 19 Jun 2010 13:20:54 +0000 (15:20 +0200)]
Make the twitter poster use OAuth authentication instead of the old HTTP
based one, since Twitter will discontinue that service in a couple of days.

15 years agoImport the oauth2 library so we can make oauth calls to twitter.
Magnus Hagander [Sat, 19 Jun 2010 13:18:38 +0000 (15:18 +0200)]
Import the oauth2 library so we can make oauth calls to twitter.

Imported from http://github.com/brosner/python-oauth2

15 years agoAdd field to make it possible to exclude a blog from the toplists, used
Magnus Hagander [Tue, 20 Apr 2010 10:36:15 +0000 (12:36 +0200)]
Add field to make it possible to exclude a blog from the toplists, used
for special blogs that aren't personal, such as site-feeds.

15 years agoOops, incorrect edit applied!
Magnus Hagander [Tue, 20 Apr 2010 10:32:41 +0000 (12:32 +0200)]
Oops, incorrect edit applied!

15 years agoUpdate toplists of posts to:
Magnus Hagander [Tue, 20 Apr 2010 10:26:04 +0000 (12:26 +0200)]
Update toplists of posts to:
* Include all posters in the posting toplist, not just the teamless ones
* Include team name after poster name in the top list
* Change the team toplist to just list the team, not all members, since
  members are now listed in the main toplist.

Along the line, fix indent of text vs RSS button when overflowing to a
second line for long names (more common now that team names are included)

15 years agoTypo patrol, per Dave Page
Magnus Hagander [Fri, 16 Apr 2010 12:36:07 +0000 (14:36 +0200)]
Typo patrol, per Dave Page

15 years agoInclude exception message when failing to download a blog feed
Magnus Hagander [Tue, 13 Apr 2010 07:50:18 +0000 (09:50 +0200)]
Include exception message when failing to download a blog feed

15 years agoSwitch to using bit.ly instead of tr.im, since tr.im seems - once
Magnus Hagander [Thu, 1 Apr 2010 18:25:27 +0000 (20:25 +0200)]
Switch to using bit.ly instead of tr.im, since tr.im seems - once
again - about to be shut down.

15 years agoAdd note about using names for blogs, not just nicknames
Magnus Hagander [Thu, 25 Feb 2010 14:05:04 +0000 (15:05 +0100)]
Add note about using names for blogs, not just nicknames

15 years agoDrop max length of post back down to 2048
Magnus Hagander [Thu, 28 Jan 2010 18:24:12 +0000 (19:24 +0100)]
Drop max length of post back down to 2048

15 years agoFix error message when trying to add an empty feed.
Magnus Hagander [Wed, 27 Jan 2010 09:27:06 +0000 (10:27 +0100)]
Fix error message when trying to add an empty feed.

15 years agoFix typo
Magnus Hagander [Mon, 28 Dec 2009 18:31:21 +0000 (19:31 +0100)]
Fix typo

15 years agoSpell fix, per David Wheeler
Magnus Hagander [Wed, 11 Nov 2009 18:07:26 +0000 (19:07 +0100)]
Spell fix, per David Wheeler

15 years agoPrint not allowed in views, remove debugging code
Magnus Hagander [Fri, 23 Oct 2009 17:45:42 +0000 (19:45 +0200)]
Print not allowed in views, remove debugging code

15 years agoAdd note that the top lists cover the past month.
Magnus Hagander [Fri, 16 Oct 2009 22:48:08 +0000 (00:48 +0200)]
Add note that the top lists cover the past month.

15 years agoOnly tweet things that have happened in the past 7 days, to avoid flooding
Magnus Hagander [Fri, 16 Oct 2009 22:41:30 +0000 (00:41 +0200)]
Only tweet things that have happened in the past 7 days, to avoid flooding
the twitter feed when adding new blogs with many old entries.

15 years agoForce output to UTF8 to work on fbsd
Magnus Hagander [Wed, 7 Oct 2009 12:05:46 +0000 (14:05 +0200)]
Force output to UTF8 to work on fbsd

15 years agoProperly deal with blog names/titles with unicode characters in them.
Magnus Hagander [Wed, 7 Oct 2009 12:05:33 +0000 (14:05 +0200)]
Properly deal with blog names/titles with unicode characters in them.

15 years agoFix exception handling
Magnus Hagander [Wed, 7 Oct 2009 11:41:14 +0000 (13:41 +0200)]
Fix exception handling

16 years agoHelpful message about editing things we haven't implemented edit
Magnus Hagander [Sun, 30 Aug 2009 13:08:47 +0000 (15:08 +0200)]
Helpful message about editing things we haven't implemented edit
support for yet.

16 years agoShow registered twitter names in admin app
Magnus Hagander [Sun, 30 Aug 2009 13:07:37 +0000 (15:07 +0200)]
Show registered twitter names in admin app

16 years agoRegister the twitter username of blogs (if any), and include
Magnus Hagander [Sun, 30 Aug 2009 12:37:04 +0000 (14:37 +0200)]
Register the twitter username of blogs (if any), and include
this in the posted tweets.
No way for user to edit his/her own name yet though, that remains
a TODO.

16 years agoHeader and (C) messages updates
Magnus Hagander [Sun, 30 Aug 2009 12:26:37 +0000 (14:26 +0200)]
Header and (C) messages updates

16 years agoShow link to twitter feed on the frontpage, if one is
Magnus Hagander [Sun, 30 Aug 2009 12:22:49 +0000 (14:22 +0200)]
Show link to twitter feed on the frontpage, if one is
configured.

16 years agoURL will look much better in a single-line field. This is just
Magnus Hagander [Sun, 30 Aug 2009 12:10:38 +0000 (14:10 +0200)]
URL will look much better in a single-line field. This is just
for viewing anyway.

16 years agoDrive twitter posts from the database instead of the RSS feed, since
Magnus Hagander [Sun, 30 Aug 2009 12:08:19 +0000 (14:08 +0200)]
Drive twitter posts from the database instead of the RSS feed, since
we have better information there. Store short URLs as generated by
tr.im, in case we want them for something later. Generate short URLs
using authenticated access to tr.im (if available), so it's possible
to get statistics etc.

16 years agoOops, need to include the filename!
Magnus Hagander [Thu, 20 Aug 2009 19:18:02 +0000 (21:18 +0200)]
Oops, need to include the filename!

16 years agoCall twitter posting script from the main cron job
Magnus Hagander [Thu, 20 Aug 2009 19:07:25 +0000 (21:07 +0200)]
Call twitter posting script from the main cron job

16 years agoRemoved passwords :)
Selena Deckelmann [Tue, 18 Aug 2009 16:39:24 +0000 (10:39 -0600)]
Removed passwords :)

16 years agoRemoved some UTF8 stuff and made imports look nicer
Selena Deckelmann [Tue, 18 Aug 2009 16:31:17 +0000 (10:31 -0600)]
Removed some UTF8 stuff and made imports look nicer

16 years agoVersion from May 18 of posttotwitter.py
Selena Deckelmann [Tue, 18 Aug 2009 16:30:47 +0000 (10:30 -0600)]
Version from May 18 of posttotwitter.py

16 years agoNew way to figure out which text from the RSS flow to include in the blog:
Magnus Hagander [Mon, 3 Aug 2009 18:38:32 +0000 (20:38 +0200)]
New way to figure out which text from the RSS flow to include in the blog:
try every option we know about, and pick the longest available text.

16 years agoSupport author filter for things like wordpress blogs - simpler
Magnus Hagander [Mon, 3 Aug 2009 17:37:46 +0000 (19:37 +0200)]
Support author filter for things like wordpress blogs - simpler
filtering than what google uses.

16 years agoUse full URL to django admin interface, so it works on subpages as well.
Magnus Hagander [Mon, 3 Aug 2009 16:45:37 +0000 (18:45 +0200)]
Use full URL to django admin interface, so it works on subpages as well.

Per Stefan.

16 years agoGive status information when discovering metadata, not just a redirect
Magnus Hagander [Mon, 3 Aug 2009 16:44:21 +0000 (18:44 +0200)]
Give status information when discovering metadata, not just a redirect
back to the listing page.

Per complaint from Stefan.

16 years agoList the latest posts when viewing a blog in the admin interface.
Magnus Hagander [Fri, 31 Jul 2009 14:18:46 +0000 (16:18 +0200)]
List the latest posts when viewing a blog in the admin interface.

16 years agoRemove unnecessary userid column. Users know their userid, admins
Magnus Hagander [Thu, 30 Jul 2009 17:53:30 +0000 (19:53 +0200)]
Remove unnecessary userid column. Users know their userid, admins
use the admin interface for that...

16 years agoRemove separate admin column, fold it into the Operations one,
Magnus Hagander [Thu, 30 Jul 2009 17:52:53 +0000 (19:52 +0200)]
Remove separate admin column, fold it into the Operations one,
now that most of it is gone.

16 years agoRemove some superuser admin stuff from the template that should've
Magnus Hagander [Thu, 30 Jul 2009 15:17:45 +0000 (17:17 +0200)]
Remove some superuser admin stuff from the template that should've
aready been removed.

16 years agoAdd support for multiple blogs, and registering blogs for teams.
Magnus Hagander [Thu, 30 Jul 2009 15:15:57 +0000 (17:15 +0200)]
Add support for multiple blogs, and registering blogs for teams.

16 years agoRemove support for attaching blogs (those that aren't attached by now
Magnus Hagander [Thu, 30 Jul 2009 15:00:55 +0000 (17:00 +0200)]
Remove support for attaching blogs (those that aren't attached by now
will have to be dealt with manually).
Fix proper checking for duplicate blogs.

16 years agoAdd string output for log entries, so they show up nicely in
Magnus Hagander [Thu, 30 Jul 2009 14:48:46 +0000 (16:48 +0200)]
Add string output for log entries, so they show up nicely in
delete warnings in /admin/.

16 years agoSend approval/deapproval mail from with in the admin site
Magnus Hagander [Thu, 30 Jul 2009 14:44:36 +0000 (16:44 +0200)]
Send approval/deapproval mail from with in the admin site

16 years agoRemove most of the admin functionality in the site itself, instead
Magnus Hagander [Thu, 30 Jul 2009 14:20:47 +0000 (16:20 +0200)]
Remove most of the admin functionality in the site itself, instead
relying on the django admin interface to perform all admin operations.

This simplifies the code significantly.

16 years agoSome python code-style changes
Magnus Hagander [Mon, 22 Jun 2009 20:08:27 +0000 (22:08 +0200)]
Some python code-style changes

16 years agoMeh, add missing file from last commit.
Magnus Hagander [Mon, 22 Jun 2009 20:06:01 +0000 (22:06 +0200)]
Meh, add missing file from last commit.

16 years agoAdd a list of all subscribed blogs as a subpage, per request from
Magnus Hagander [Mon, 22 Jun 2009 20:05:06 +0000 (22:05 +0200)]
Add a list of all subscribed blogs as a subpage, per request from
Dave Page and Robert Treat.

16 years agoList which members are posting in a team, when a team is listed on
Magnus Hagander [Mon, 22 Jun 2009 15:02:06 +0000 (17:02 +0200)]
List which members are posting in a team, when a team is listed on
the toplist.

16 years agoDon't include hidden posts or nonapproved blogs in toplists. Oops.
Magnus Hagander [Wed, 17 Jun 2009 17:36:24 +0000 (19:36 +0200)]
Don't include hidden posts or nonapproved blogs in toplists. Oops.

16 years agoUse unicode instead of ascii in generating strings, so the admin
Magnus Hagander [Wed, 17 Jun 2009 17:31:14 +0000 (19:31 +0200)]
Use unicode instead of ascii in generating strings, so the admin
interface doesn't barf.

16 years agoAdd limits to the lists, per Robert Treat.
Magnus Hagander [Tue, 16 Jun 2009 19:10:44 +0000 (21:10 +0200)]
Add limits to the lists, per Robert Treat.

16 years agoFormat names of blogs and teams nicer in the admin interface.
Magnus Hagander [Tue, 16 Jun 2009 19:02:30 +0000 (21:02 +0200)]
Format names of blogs and teams nicer in the admin interface.

16 years agoDouble the embarassment - order in the right order.
Magnus Hagander [Tue, 16 Jun 2009 18:24:46 +0000 (20:24 +0200)]
Double the embarassment - order in the right order.

That should teach me for not testing things...

16 years agoEh, actually sort the top posters. That was rather embarassing...
Magnus Hagander [Tue, 16 Jun 2009 18:24:11 +0000 (20:24 +0200)]
Eh, actually sort the top posters. That was rather embarassing...

16 years agoRevert "Update for wordpress.com blogs"
Magnus Hagander [Tue, 16 Jun 2009 17:49:14 +0000 (19:49 +0200)]
Revert "Update for wordpress.com blogs"

Breaks on several of our blogs.

This reverts commit 94988c787f699212e583ef2affad04b029cabd0f.

16 years agoUpdate for wordpress.com blogs
Selena Deckelmann [Tue, 2 Jun 2009 20:42:29 +0000 (13:42 -0700)]
Update for wordpress.com blogs