view Config.py.sample @ 1:d5bc8acafca3

Added a readme and sample configuration files.
author Atul Varma <varmaa@toolness.com>
date Sat, 09 Feb 2008 14:24:37 -0600
parents
children df9d4e704257
line wrap: on
line source

from os.path import abspath
from urllib import pathname2url

FILENAME = "feeds.dat"

# Importance is from 1 to 10; 1 is really important, 10 is not very
# important.
DEFAULT_IMPORTANCE = 10

MAX_SUMMARY_LENGTH = 140

VIEWS = [
    dict( name = "Play",
          tags = ["friends", "entertainment", "news"] ),
    dict( name = "Work",
          tags = ["work", "mozilla"] )
]

IMAP_FEEDS = [
    dict( name = "Mozilla Email",
          tags = ["work"],
          filename = abspath("MozillaEmail.rss"),
          server = "mail.mozilla.com",
          port = 993,
          mailbox = "INBOX",
          isSsl = True,
          url = "https://mail.mozilla.com" ),
    dict( name = "Humanized Email",
          tags = ["work"],
          filename = abspath("HumanizedEmail.rss"),
          server = "imap.gmail.com",
          port = 993,
          # In Gmail's IMAP interface, labels are treated as
          # IMAP mailboxes.
          mailbox = "humanized",
          isSsl = True,
          url = "https://www.gmail.com" )
]

FEEDS = [
    dict( name = "Mozilla Intranet Forum",
          tags = ["mozilla"],
          url = "https://intranet.mozilla.org/forum/?Feed=Atom" ),
    dict( name = "Frostedelves",
          tags = ["friends"],
          url = "http://frostedelves.livejournal.com/data/rss?auth=digest" ),
    dict( name = "Planet Mozilla",
          tags = ["mozilla"],
          url = "http://planet.mozilla.org/rss20.xml" ),
    dict( name = "Lonely Lion",
          tags = ["work", "friends"],
          url = "http://feeds.feedburner.com/LonelyLion",
          importance = 2 ),
    dict( name = "Subtraction (Khoi Vinh)",
          tags = ["work"],
          url = "http://feeds.feedburner.com/subtraction" ),
    dict( name = "Humanized",
          tags = ["work"],
          url = "http://feeds.feedburner.com/humanized/weblog" ),
    dict( name = "Humanized Comments",
          tags = ["work"],
          url = "http://www.humanized.com/weblog/comments/feed" ),
    dict( name = "Evil Brain Jono",
          tags = ["friends"],
          url = "http://evilbrainjono.net/~Jono/rss/jono.rss" ),
    dict( name = "Penny Arcade",
          tags = ["entertainment"],
          url = "http://feeds.penny-arcade.com/pa-mainsite" ),
    dict( name = "Metaplace",
          tags = ["entertainment", "work"],
          url = "http://feeds.feedburner.com/metaplace" ),
    dict( name = "The Economist - The internet",
          tags = ["work"],
          url = "http://www.economist.com/rss/the_internet_rss.xml" ),
    dict( name = "The Escapist - Featured Articles",
          tags = ["entertainment"],
          url = "http://www.escapistmagazine.com/rss/articles/issues" ),
    dict( name = "Productive Firefox",
          tags = ["work"],
          url = "http://feeds.feedburner.com/ProductiveFirefox" ),
]

for feed in IMAP_FEEDS:
    info = dict( name = feed["name"],
                 tags = feed["tags"],
                 url = "file://" + pathname2url( feed["filename"] ),
                 # Email feeds are really important!
                 importance = 1 )
    FEEDS.insert( 0, info )