--- /dev/null
+Preferences:
+------------
+Font Size for Article Listing: The size, in points, in which the article headings in the feed article list appear
+Font Size for Articles: The size, in points, in which the article text appears
+Expiry for Articles: The time, in hours, from the article published time, after which it will be removed if it has been read. If it is unread, it will be removed after double this amount of time. This does not apply to articles being received for the first time
+Display Orientation: The orientation, portrait or landscape, that the application windows will be oriented to. If automatic, it will be determined by the Maemo operating system
+Auto-update Interval: The interval time, in hours, from the last update after which all feeds will attempt to update if Auto-update Enabled is checked
+Auto-update Enabled: Enables/disables the auto-update of all feeds
+Image Caching Enabled: If checked, will store images to /home/user/.feedingit
+Proxy Support Enabled: If checked, will use the proxy server settings entered for the Maemo device or connection
+View Known Issues and Tips: Will open a browser window to the feedingit website with version-specific information
\ No newline at end of file
for id in self.feed.getIds():
title = self.feed.getTitle(id)
- esc_title = unescape(title).replace("<em>","").replace("</em>","")
+ esc_title = unescape(title).replace("<em>","").replace("</em>","").replace("<nobr>","").replace("</nobr>","").replace("<wbr>","")
#title.replace("<em>","").replace("</em>","").replace("&","&").replace("—", "-").replace("’", "'")
button = gtk.Button(esc_title)
button.set_alignment(0,0)
# Need to check for internet connection
# If no internet connection, try again in 10 minutes:
# gobject.timeout_add(int(5*3600000), self.automaticUpdate)
- file = open("/home/user/.feedingit/feedingit_widget.log", "a")
- from time import localtime, strftime
- file.write("App: %s\n" % strftime("%a, %d %b %Y %H:%M:%S +0000", localtime()))
- file.close()
+ #file = open("/home/user/.feedingit/feedingit_widget.log", "a")
+ #from time import localtime, strftime
+ #file.write("App: %s\n" % strftime("%a, %d %b %Y %H:%M:%S +0000", localtime()))
+ #file.close()
self.button_update_clicked(None, None)
return True
file.close()
def do_destroy(self):
- file = open("/home/user/.feedingit/feedingit_widget.log", "a")
- file.write("Do_destroy: ")
+ #file = open("/home/user/.feedingit/feedingit_widget.log", "a")
+ #file.write("Do_destroy: ")
if (not self.autoupdateId==False):
gobject.source_remove(self.autoupdateId)
self.autoupdateId=False
- file.write("Destroyed %s\n" %self.autoupdateId)
+ #file.write("Destroyed %s\n" %self.autoupdateId)
remove(SOURCE)
hildondesktop.HomePluginItem.do_destroy(self)
- file.write("End destroy\n")
- file.close()
+ #file.write("End destroy\n")
+ #file.close()
def button_clicked(self, *widget):
self.button.set_sensitive(False)
def start_update(self):
try:
if self.autoupdate >0:
- file = open("/home/user/.feedingit/feedingit_widget.log", "a")
- from time import localtime, strftime
- import os
- file.write("Widget: pid:%s ppid:%s time:%s\n" % (os.getpid(), os.getppid(), strftime("%a, %d %b %Y %H:%M:%S +0000", localtime())))
- file.close()
+ #file = open("/home/user/.feedingit/feedingit_widget.log", "a")
+ #from time import localtime, strftime
+ #import os
+ #file.write("Widget: pid:%s ppid:%s time:%s\n" % (os.getpid(), os.getppid(), strftime("%a, %d %b %Y %H:%M:%S +0000", localtime())))
+ #file.close()
remote_object = bus.get_object("org.marcoz.feedingit", # Connection name
"/org/marcoz/feedingit/update" # Object's path
)
def setup_autoupdate(self):
if (float(self.autoupdate) > 0):
if (not self.autoupdateId==False):
- file = open("/home/user/.feedingit/feedingit_widget.log", "a")
- file.write("Disabling %s\n" % self.autoupdateId)
- file.close()
+ #file = open("/home/user/.feedingit/feedingit_widget.log", "a")
+ #file.write("Disabling %s\n" % self.autoupdateId)
+ #file.close()
gobject.source_remove(self.autoupdateId)
remove(SOURCE)
self.autoupdateId = gobject.timeout_add_seconds(int(float(self.autoupdate)*3600), self.start_update)
file = open(SOURCE, "w")
file.write(str(self.autoupdateId))
file.close()
- file = open("/home/user/.feedingit/feedingit_widget.log", "a")
- file.write("Started %s\n" % self.autoupdateId)
- file.close()
+ #file = open("/home/user/.feedingit/feedingit_widget.log", "a")
+ #file.write("Started %s\n" % self.autoupdateId)
+ #file.close()
else:
if (not self.autoupdateId==False):
gobject.source_remove(self.autoupdateId)
CONFIGDIR="/home/user/.feedingit/"
#DESKTOP_FILE = "/usr/share/applications/hildon-status-menu/feedingit_status.desktop"
-dbug = True
+dbug = False
from socket import setdefaulttimeout
timeout = 5
traceback.print_exc(file=file)
file.close()
if not self.running:
- self.dbug.write("received stopUpdate after %s\n" %key)
- self.dbug.flush()
+ if dbug:
+ self.dbug.write("received stopUpdate after %s\n" %key)
break
self.dbusHandler.UpdateFinished()
self.dbusHandler.ArticleCountUpdated()
del app_lock
except:
import traceback
- file = open("/home/user/.feedingit/feedingit_update.log", "a")
+ file = open("/home/user/.feedingit/feedingit_update.log", "w")
traceback.print_exc(file=file)
file.close()
else: