changeset 19:af61cef614f5

replacing updated_parsed with published_parsed
author Walter Cruz <walter@waltercruz.com>
date Thu, 07 Aug 2008 15:36:23 -0300
parents 26bb4296392a
children d27c3ad0f4d0
files feed2twitter/VERSION feed2twitter/feed2twitter/__init__.py feed2twitter/feed2twitter/readrss.py feed2twitter/setup.py
diffstat 4 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/feed2twitter/VERSION	Wed Aug 06 18:30:03 2008 -0300
+++ b/feed2twitter/VERSION	Thu Aug 07 15:36:23 2008 -0300
@@ -1,1 +1,1 @@
-0.3
\ No newline at end of file
+0.3.1
\ No newline at end of file
--- a/feed2twitter/feed2twitter/__init__.py	Wed Aug 06 18:30:03 2008 -0300
+++ b/feed2twitter/feed2twitter/__init__.py	Thu Aug 07 15:36:23 2008 -0300
@@ -72,7 +72,7 @@
         if not lastread:
             self.twitIt(reversed(self.rss.feed['items'][:5]))
         else:
-            lista = [item for item in self.rss.feed['items'] if item['updated_parsed'] > lastread]
+            lista = [item for item in self.rss.feed['items'] if item['published_parsed'] > lastread]
             self.twitIt(reversed(lista[:5]))
 
 def update():
--- a/feed2twitter/feed2twitter/readrss.py	Wed Aug 06 18:30:03 2008 -0300
+++ b/feed2twitter/feed2twitter/readrss.py	Thu Aug 07 15:36:23 2008 -0300
@@ -36,9 +36,9 @@
             mkdir(self.directory)
         output = open(self.filename, 'wb')
         if not item:
-            pickle.dump(self.feed['items'][0]['updated_parsed'], output)
+            pickle.dump(self.feed['items'][0]['published_parsed'], output)
         else:
-            pickle.dump(item['updated_parsed'], output)
+            pickle.dump(item['published_parsed'], output)
         output.close()
 
     def getlastRead(self):
--- a/feed2twitter/setup.py	Wed Aug 06 18:30:03 2008 -0300
+++ b/feed2twitter/setup.py	Thu Aug 07 15:36:23 2008 -0300
@@ -1,5 +1,6 @@
 from setuptools import setup, find_packages
 import sys, os
+from os import path
 v = open(path.join(path.dirname(__file__), 'VERSION'))
 VERSION = v.readline().strip()