update feeds is now in cube datafeed
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 06 Aug 2010 12:14:44 +0200
changeset 225 2b2b36ff7027
parent 224 baff8d80bfe7
child 226 411f1f56c998
update feeds is now in cube datafeed
update-feeds.py
--- a/update-feeds.py	Fri Aug 06 10:12:00 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-# -*- coding: utf-8 -*-
-import sys
-
-feeds = rql('Any A WHERE A is DataFeed').entities()
-for feed in feeds:
-    if 'reset' in sys.argv:
-        feed.set_attributes(latest_retrieval=None)
-    else:
-        print '----- processing %r with %s' % (feed.title, feed.parser)
-        feed.pull_data()
-        print
-commit()
-