hamn.git
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

16 years agoList top posters and top teams, instead of just listing all feeds.
Magnus Hagander [Fri, 22 May 2009 19:49:24 +0000 (15:49 -0400)]
List top posters and top teams, instead of just listing all feeds.
Also show how many posts each of them have.

16 years agoAdd .gitignore for a bunch of files that are generated
Magnus Hagander [Fri, 22 May 2009 19:20:21 +0000 (15:20 -0400)]
Add .gitignore for a bunch of files that are generated

16 years agoOops, add missing admin.py file
Magnus Hagander [Mon, 18 May 2009 21:06:47 +0000 (17:06 -0400)]
Oops, add missing admin.py file

16 years agoUpdate one more namespace for the admin conflict fix
Magnus Hagander [Mon, 18 May 2009 20:47:33 +0000 (16:47 -0400)]
Update one more namespace for the admin conflict fix

16 years agoMerge branch 'master' of ssh://git@git.postgresql.org/hamn
Magnus Hagander [Mon, 18 May 2009 20:43:13 +0000 (16:43 -0400)]
Merge branch 'master' of ssh://git@git.postgresql.org/hamn

16 years agoAdd support for team blogs
Magnus Hagander [Mon, 18 May 2009 20:42:57 +0000 (16:42 -0400)]
Add support for team blogs

16 years agoAdded default for timestamp and changed payload of feed to TEXT from
Selena Deckelmann [Mon, 18 May 2009 20:27:31 +0000 (16:27 -0400)]
Added default for timestamp and changed payload of feed to TEXT from
VARCHAR

16 years agoAdd Team model for grouping of blogs
Magnus Hagander [Mon, 18 May 2009 20:11:27 +0000 (16:11 -0400)]
Add Team model for grouping of blogs

16 years agoEnable django admin interface
Magnus Hagander [Mon, 18 May 2009 20:11:17 +0000 (16:11 -0400)]
Enable django admin interface

16 years agoRename admin to hamnadmin, so we don't conflict with django admin module
Magnus Hagander [Mon, 18 May 2009 20:03:16 +0000 (16:03 -0400)]
Rename admin to hamnadmin, so we don't conflict with django admin module

16 years agoUpdating installation notes and adding TODO.txt
Selena Deckelmann [Mon, 18 May 2009 17:17:00 +0000 (13:17 -0400)]
Updating installation notes and adding TODO.txt

16 years agolocal_settings.py should never be included in the repository
Magnus Hagander [Mon, 18 May 2009 16:57:12 +0000 (12:57 -0400)]
local_settings.py should never be included in the repository

16 years agoRename planetadmin schema and module to admin, to work with new
Magnus Hagander [Mon, 18 May 2009 16:48:17 +0000 (12:48 -0400)]
Rename planetadmin schema and module to admin, to work with new
project name (Selenas fault)

16 years agoAdd a page specifically outlining how you add a blog
Magnus Hagander [Sun, 1 Mar 2009 16:31:48 +0000 (16:31 +0000)]
Add a page specifically outlining how you add a blog

16 years agoRemove hardcoded connection string (incl password) and put it in the settings
Magnus Hagander [Fri, 20 Feb 2009 14:07:28 +0000 (14:07 +0000)]
Remove hardcoded connection string (incl password) and put it in the settings
file instead.
Also, inherit from Model implementation so we can use permissions should we want to.

16 years agoAggregate log reports and don't report on transient errors
Magnus Hagander [Sun, 15 Feb 2009 11:24:19 +0000 (11:24 +0000)]
Aggregate log reports and don't report on transient errors
(by default anything less than 4 error reports are ignored)

16 years agoBetter error checking - show actual exceptions when status field is
Magnus Hagander [Sun, 15 Feb 2009 11:09:28 +0000 (11:09 +0000)]
Better error checking - show actual exceptions when status field is
not present, instead of just reporting that status was missing.

16 years agoLine-break long PRE-formatted lines as well, so as not
Magnus Hagander [Mon, 2 Feb 2009 15:32:49 +0000 (15:32 +0000)]
Line-break long PRE-formatted lines as well, so as not
to break the layout.

Selena Deckelmann

16 years agoMake the aggregator write it's log to the database instead of just
Magnus Hagander [Sat, 31 Jan 2009 13:34:42 +0000 (13:34 +0000)]
Make the aggregator write it's log to the database instead of just
a flatfile.
Add ability to view this data on a per-blog basis in /register/.
Set up a cronjob to mail summary logs to planet@postgresql.org.

16 years agoMake it more clear that the delete actually deletes
Magnus Hagander [Wed, 21 Jan 2009 16:17:46 +0000 (16:17 +0000)]
Make it more clear that the delete actually deletes
the whole blog...

16 years agoCommit once for each feed. If an exception occurred while parsing it,
Magnus Hagander [Wed, 21 Jan 2009 15:11:57 +0000 (15:11 +0000)]
Commit once for each feed. If an exception occurred while parsing it,
roll it back instead (so that db level exceptions don't cause the
whole aggregator to fail)

16 years agoAdd email contact information
Magnus Hagander [Wed, 14 Jan 2009 15:21:42 +0000 (15:21 +0000)]
Add email contact information

16 years agoAdd schema changes per latest code changes
Magnus Hagander [Mon, 29 Dec 2008 20:26:30 +0000 (20:26 +0000)]
Add schema changes per latest code changes

16 years agoSupport filtering feeds by author names, to pull only parts of a shared blog
Magnus Hagander [Mon, 29 Dec 2008 15:45:11 +0000 (15:45 +0000)]
Support filtering feeds by author names, to pull only parts of a shared blog
without requiring use of specific tags/categories.

In passing, fix a number of error messages to throw the proper type of
exception.

Selena Deckelmann, with some polishing from me.

16 years agoUse yesno filter instead of custom methods to display boolean fields.
Magnus Hagander [Mon, 15 Dec 2008 15:57:38 +0000 (15:57 +0000)]
Use yesno filter instead of custom methods to display boolean fields.
It's the Django way....

16 years agoOnly list blogs that are approved in the blog-list on the right...
Magnus Hagander [Sun, 14 Dec 2008 19:12:09 +0000 (19:12 +0000)]
Only list blogs that are approved in the blog-list on the right...

16 years agoIncrease truncation limit to 4k, by popular demand.
Magnus Hagander [Mon, 1 Dec 2008 13:36:42 +0000 (13:36 +0000)]
Increase truncation limit to 4k, by popular demand.

16 years agoMake it possible for blog owners to delete their blogs
Magnus Hagander [Wed, 26 Nov 2008 17:50:33 +0000 (17:50 +0000)]
Make it possible for blog owners to delete their blogs

16 years agoStyling updates, from Selena.
Magnus Hagander [Tue, 25 Nov 2008 20:09:06 +0000 (20:09 +0000)]
Styling updates, from Selena.

16 years agoShow email for user so we can figure out how to mail them...
Magnus Hagander [Tue, 25 Nov 2008 18:42:26 +0000 (18:42 +0000)]
Show email for user so we can figure out how to mail them...

16 years agoImplement custom exception handling so we can get errors properly
Magnus Hagander [Mon, 24 Nov 2008 15:32:29 +0000 (15:32 +0000)]
Implement custom exception handling so we can get errors properly
and not just throw a generic 500 Internal Server Error message.

16 years agoDon't use print! Pah!
Magnus Hagander [Thu, 20 Nov 2008 14:27:08 +0000 (14:27 +0000)]
Don't use print! Pah!

Also, include some more info in the registration email

16 years agoPrettify list of blogs, and link the urls
Magnus Hagander [Wed, 19 Nov 2008 14:20:57 +0000 (14:20 +0000)]
Prettify list of blogs, and link the urls

16 years agoAdd error message templates
Magnus Hagander [Tue, 18 Nov 2008 22:28:43 +0000 (22:28 +0000)]
Add error message templates

16 years agoAdd link to manage your registration on the frontpage.
Magnus Hagander [Tue, 18 Nov 2008 13:57:23 +0000 (13:57 +0000)]
Add link to manage your registration on the frontpage.

16 years agoCommit the login command, so we properly update last login date
Magnus Hagander [Tue, 18 Nov 2008 13:06:52 +0000 (13:06 +0000)]
Commit the login command, so we properly update last login date

16 years agoShow blogs that don't have an attached user account in a differe color in the admin...
Magnus Hagander [Tue, 18 Nov 2008 12:41:43 +0000 (12:41 +0000)]
Show blogs that don't have an attached user account in a differe color in the admin interface

16 years agoNow that we have the admin schema up, only show feeds that are approved, and only...
Magnus Hagander [Tue, 18 Nov 2008 12:32:31 +0000 (12:32 +0000)]
Now that we have the admin schema up, only show feeds that are approved, and only show
posts that are not hidden.

16 years agoAdd WSGI script for running the admin interface
Magnus Hagander [Tue, 18 Nov 2008 10:47:57 +0000 (10:47 +0000)]
Add WSGI script for running the admin interface

16 years agoAdd code to be able to synchronize a majordomo mailinglist
Magnus Hagander [Mon, 17 Nov 2008 13:26:49 +0000 (13:26 +0000)]
Add code to be able to synchronize a majordomo mailinglist
with the owners of the blogs.

16 years agoMake the header link back to the frontpage
Magnus Hagander [Fri, 14 Nov 2008 10:32:35 +0000 (10:32 +0000)]
Make the header link back to the frontpage

16 years agoDo auditlogging as strings so we don't get conversion errors
Magnus Hagander [Tue, 11 Nov 2008 21:34:36 +0000 (21:34 +0000)]
Do auditlogging as strings so we don't get conversion errors

16 years agoAdd confirmation before deleting stuff.
Magnus Hagander [Tue, 11 Nov 2008 21:33:40 +0000 (21:33 +0000)]
Add confirmation before deleting stuff.

16 years agoAdd missing field headers (pending real layout work later)
Magnus Hagander [Tue, 11 Nov 2008 21:08:47 +0000 (21:08 +0000)]
Add missing field headers (pending real layout work later)

16 years agoEnable simple audit logging
Magnus Hagander [Tue, 11 Nov 2008 21:07:14 +0000 (21:07 +0000)]
Enable simple audit logging