diff Mapping.py @ 47:a8442c3487b5

add an option to Feed that allows loading an entry's link right away instead of displaying a feed's summary
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 16 May 2010 08:13:07 +0200
parents 12ed8b5fa08c
children b535bce50626
line wrap: on
line diff
--- a/Mapping.py	Sun May 16 07:54:24 2010 +0200
+++ b/Mapping.py	Sun May 16 08:13:07 2010 +0200
@@ -2,6 +2,7 @@
 from Feed import Feed
 from FeedEntry import FeedEntry
 from Preference import Preference
+from sqlalchemy import Boolean
 from sqlalchemy import Column
 from sqlalchemy import DateTime
 from sqlalchemy import ForeignKey
@@ -31,7 +32,10 @@
         Column("title", String(255), nullable=False),
         Column("rss_url", String(255), nullable=False),
         Column("update_interval", Integer, nullable=False),
-        Column("next_update", DateTime, nullable=False)
+        Column("next_update", DateTime, nullable=False),
+        # when displaying an entry of this feed, do not display the summary but rather load 
+        # the link directly
+        Column("auto_load_entry_link", Boolean, nullable=False)
     )
     
     feedEntryTable = Table("feed_entry", metadata,