commit/readFeeds: 3 new changesets

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Sun, 10 Mar 2019 10:49:25 +0000 (UTC)

3 new commits in readFeeds:

https://bitbucket.org/nvdaaddonteam/readfeeds/commits/c00489fcd2c3/
Changeset:   c00489fcd2c3
Branch:      None
User:        norrumar
Date:        2019-03-10 10:08:52+00:00
Summary:     Handle exceptions and add button to open backup folder

Affected #:  2 files

diff --git a/addon/globalPlugins/readFeeds/__init__.py 
b/addon/globalPlugins/readFeeds/__init__.py
index 10840d1..2a550b1 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -154,6 +154,10 @@ class FeedsDialog(wx.Dialog):
                self.defaultButton = buttonHelper.addButton(self, label=_("S&et 
default"))
                self.defaultButton.Bind(wx.EVT_BUTTON, self.onDefault)
 
+               # Translators: The label of a button to open a folder 
containing a backup of feeds.
+               self.openFolderButton = buttonHelper.addButton(self, 
label=_("&Open folder containing a backup of feeds"))
+               self.openFolderButton.Bind(wx.EVT_BUTTON, self.onOpenFolder)
+               
                feedsListGroupContents.Add(buttonHelper.sizer)
                feedsListGroupSizer.Add(feedsListGroupContents, 
border=guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL)
                sHelper.addItem(feedsListGroupSizer)
@@ -195,8 +199,11 @@ class FeedsDialog(wx.Dialog):
                        if filter and not filterReg.match(choice):
                                continue
                        self.feedsList.Append(choice)
-               self.feedsList.Selection = 0
-               self.onFeedsListChoice(None)
+               try:
+                       self.feedsList.Selection = 0
+                       self.onFeedsListChoice(None)
+               except:
+                       [control.Disable() for control in self.feedsList, 
self.articlesButton, self.openButton, self.renameButton, self.deleteButton, 
self.defaultButton]
 
        def onFeedsListChoice(self, evt):
                self.sel = self.feedsList.Selection
@@ -218,7 +225,10 @@ class FeedsDialog(wx.Dialog):
                        f.close()
                self.feed = Feed(address)
                self.Disable()
-               ArticlesDialog(self).Show()
+               try:
+                       ArticlesDialog(self).Show()
+               except Exception as e:
+                       raise e
 
        def onOpen(self, evt):
                with open(os.path.join(FEEDS_PATH, "%s.txt" % self.stringSel), 
"r") as f:
@@ -272,6 +282,12 @@ class FeedsDialog(wx.Dialog):
                self.Destroy()
                FeedsDialog._instance = None
 
+       def onOpenFolder(self, evt):
+               path = os.path.join(CONFIG_PATH, "personalFeeds")
+               if not os.path.isdir(path):
+                       os.makedirs(path)
+               os.startfile(path)
+
 class ArticlesDialog(wx.Dialog):
 
        def __init__(self, parent):

diff --git a/buildVars.py b/buildVars.py
index 8a2e48b..5af19a7 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("""Add-on for using NVDA as a feed reader."""),
        # version
-       "addon_version" : "6.3",
+       "addon_version" : "6.4",
        # Author(s)
        "addon_author" : u"Noelia Ruiz Martínez <nrm1977@xxxxxxxxx>, Mesar 
Hameed <mhameed@xxxxxxxxxxxxx>",
        # URL for the add-on documentation support


https://bitbucket.org/nvdaaddonteam/readfeeds/commits/5551d2ddaece/
Changeset:   5551d2ddaece
Branch:      None
User:        norrumar
Date:        2019-03-10 10:29:27+00:00
Summary:     Update readme

Affected #:  1 file

diff --git a/readme.md b/readme.md
index 87f03e6..d013c3a 100644
--- a/readme.md
+++ b/readme.md
@@ -33,6 +33,7 @@ Opens a dialog with the following controls:
 * Rename: Opens a dialog with an edit box to rename the selected feed.
 * Delete: Opens a dialog to delete the selected feed after confirmation.
 * Set default: Sets the selected feed as the default, so that its articles can 
be accessed with NVDA's gestures.
+* Open folder containing a backup of feeds: Opens a folder which may contain a 
backup of feeds. This can be useful to explore and delete feeds which shouldn't 
be imported when the add-on is updated.
 * Close: Closes the Feeds dialog.
 
 ##### Notes #####
@@ -63,6 +64,11 @@ Opens a dialog to select a folder which replaces your feeds 
in the personalFeeds
 * NVDA will display an error message if it was not possible to backup or 
restore the personalFeeds folder.
 * The title of the articles list dialog displays the selected feed name and 
number of items available.
 
+## Changes for 7.0 ##
+
+* The Feeds dialog contains a button to open a folder which may contain a 
backup of feeds.
+* When using the edit box to filter feeds, if no results are found, the list 
of feeds and other controls are disabled, so that NVDA doesn't report "unknown" 
in the empty list.
+* If the list of articles dialog can't be shown, for example due to errors in 
the feed, NVDA will raise an error, so that the feeds dialog can be used 
without restarting NVDA.
 
 ## Changes for 6.0 ##
 


https://bitbucket.org/nvdaaddonteam/readfeeds/commits/d2b357c3b73d/
Changeset:   d2b357c3b73d
Branch:      7.0Features
User:        norrumar
Date:        2019-03-10 10:48:42+00:00
Summary:     Enable feeds list when changing selected value, including when 
using the search edit box

Affected #:  2 files

diff --git a/addon/globalPlugins/readFeeds/__init__.py 
b/addon/globalPlugins/readFeeds/__init__.py
index 2a550b1..8576719 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -206,6 +206,7 @@ class FeedsDialog(wx.Dialog):
                        [control.Disable() for control in self.feedsList, 
self.articlesButton, self.openButton, self.renameButton, self.deleteButton, 
self.defaultButton]
 
        def onFeedsListChoice(self, evt):
+               self.feedsList.Enable()
                self.sel = self.feedsList.Selection
                self.stringSel = self.feedsList.StringSelection
                self.articlesButton.Enabled = self.sel>= 0

diff --git a/buildVars.py b/buildVars.py
index 5af19a7..870ff27 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("""Add-on for using NVDA as a feed reader."""),
        # version
-       "addon_version" : "6.4",
+       "addon_version" : "7.0-dev",
        # Author(s)
        "addon_author" : u"Noelia Ruiz Martínez <nrm1977@xxxxxxxxx>, Mesar 
Hameed <mhameed@xxxxxxxxxxxxx>",
        # URL for the add-on documentation support

Repository URL: https://bitbucket.org/nvdaaddonteam/readfeeds/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts: