Offload all downloading logic to updatefeed.py.
authorNeal H. Walfield <neal@walfield.org>
Tue, 23 Aug 2011 15:57:16 +0000 (17:57 +0200)
committerNeal H. Walfield <neal@walfield.org>
Tue, 23 Aug 2011 16:10:55 +0000 (18:10 +0200)
commita4aaeb5bb6c7ea4a85b47e55964546d798258a1a
tree34865ca5cd037621373ed0dcad006dce12762387
parent7e377bcff562d2adecf923e4871101e6f46a3a64
Offload all downloading logic to updatefeed.py.

 - Change Woodchuck initialization to only process upcalls if started
   from updatefeed.

 - Add org.marcoz.feedingit.UpdateProgress.

 - In rss_sqlite.py, detect if we are running as updatefeed.py:
  - If so:
   - Perform downloads directly, and
   - Make the appropriate progress calls.
  - Otherwise:
   - Don't update feeds directly, instead, make the appropriate dbus
     calls to updatefeed.py (starting it as necessary).

 - updatedbus.py:
  - Remove get_lock and release_lock, which is no longer needed as
    updating is now centralized.
  - Add dbus methods Update and UpdateProgress.
  - Make methods UpdateAll and StopUpdate abstract.
  - Add function update_server_object to retrieve any UpdateServerObject
  - Ensure that there is only a single instance of UpdateServerObject.

 - update_feeds.py:
  - Move system idle detection from FeedingIt.py to here.
  - Add a '--daemon' option, which does not update all feeds on start.
  - Implement Update, UpdateAll and StopUpdate
  - Make update notifications as appropriate.
  - Update locking mechanism: grab the bus name without queueing.

 - FeedingIt.py:
  - Adapt progress logic appropriately.
  - Don't detect when the program is started only for an update (it
    isn't anymore)

 - FeedingIt:
  - Start updatefeeds.py with the --daemon option.
src/FeedingIt
src/FeedingIt-Web.py
src/FeedingIt.py
src/rss_sqlite.py
src/update_feeds.py
src/updatedbus.py
src/wc.py