nodebox-web (1.9.4.6-1) remove-hardwired-newsfeed.diff

Summary

 newsfeed.py |   11 -----------
 1 file changed, 11 deletions(-)

    
download this patch

Patch contents

# Description: remove hardwired newsfeed
# Author: Serafeim Zanikolas <serzan@hellug.gr>
# Last-Update: 2009-02-20
Index: nodebox-web/newsfeed.py
===================================================================
--- nodebox-web.orig/newsfeed.py	2009-02-20 23:57:36.000000000 +0000
+++ nodebox-web/newsfeed.py	2009-02-20 23:58:01.000000000 +0000
@@ -19,15 +19,6 @@
 
 ### FAVORITE NEWSFEED ################################################################################
 
-favorites = {}
-try:
-    path = os.path.join(os.path.dirname(__file__), "newsfeed.txt")
-    for f in open(path).readlines():
-        f = f.split(",")
-        favorites[f[0].strip()] = f[1].strip()
-except:
-    pass
-
 def favorite_url(name):
 
     if favorites.has_key(name):
@@ -39,8 +30,6 @@
 
     return None
 
-favorite = favorite_url
-
 ### NEWSFEED #########################################################################################
 
 class Newsfeed: