commit/readFeeds: 3 new changesets

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Mar 2019 21:36:36 +0000 (UTC)

3 new commits in readFeeds:

https://bitbucket.org/nvdaaddonteam/readfeeds/commits/aab3790e17fe/
Changeset:   aab3790e17fe
Branch:      None
User:        norrumar
Date:        2019-03-25 21:33:49+00:00
Summary:     Update copyright year

Affected #:  1 file

diff --git a/addon/globalPlugins/readFeeds/__init__.py 
b/addon/globalPlugins/readFeeds/__init__.py
index ab110cb..0a74bce 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -1,7 +1,7 @@
 # -*- coding: UTF-8 -*-
 
 # Read feeds: A simple plugin for reading feeds with NVDA
-#Copyright (C) 2012-2018 Noelia Ruiz Martínez, Mesar Hameed
+#Copyright (C) 2012-2019 Noelia Ruiz Martínez, Mesar Hameed
 # Released under GPL 2
 
 import os


https://bitbucket.org/nvdaaddonteam/readfeeds/commits/7803d31da2be/
Changeset:   7803d31da2be
Branch:      None
User:        norrumar
Date:        2019-03-25 21:34:53+00:00
Summary:     Bump version: 7.0

Affected #:  1 file

diff --git a/buildVars.py b/buildVars.py
index 6b295cc..8344f7f 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" : "7.1-dev",
+       "addon_version" : "7.0",
        # 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/5a6e206dae59/
Changeset:   5a6e206dae59
Branch:      stable
User:        norrumar
Date:        2019-03-25 21:35:56+00:00
Summary:     Merge branch '7.0Features' into stable

Affected #:  3 files

diff --git a/addon/globalPlugins/readFeeds/__init__.py 
b/addon/globalPlugins/readFeeds/__init__.py
index 10840d1..0a74bce 100644
--- a/addon/globalPlugins/readFeeds/__init__.py
+++ b/addon/globalPlugins/readFeeds/__init__.py
@@ -1,7 +1,7 @@
 # -*- coding: UTF-8 -*-
 
 # Read feeds: A simple plugin for reading feeds with NVDA
-#Copyright (C) 2012-2018 Noelia Ruiz Martínez, Mesar Hameed
+#Copyright (C) 2012-2019 Noelia Ruiz Martínez, Mesar Hameed
 # Released under GPL 2
 
 import os
@@ -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,10 +199,14 @@ 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.feedsList.Enable()
                self.sel = self.feedsList.Selection
                self.stringSel = self.feedsList.StringSelection
                self.articlesButton.Enabled = self.sel>= 0
@@ -218,7 +226,11 @@ class FeedsDialog(wx.Dialog):
                        f.close()
                self.feed = Feed(address)
                self.Disable()
-               ArticlesDialog(self).Show()
+               try:
+                       ArticlesDialog(self).Show()
+               except Exception as e:
+                       self.Enable()
+                       raise e
 
        def onOpen(self, evt):
                with open(os.path.join(FEEDS_PATH, "%s.txt" % self.stringSel), 
"r") as f:
@@ -272,6 +284,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..8344f7f 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" : "7.0",
        # Author(s)
        "addon_author" : u"Noelia Ruiz Martínez <nrm1977@xxxxxxxxx>, Mesar 
Hameed <mhameed@xxxxxxxxxxxxx>",
        # URL for the add-on documentation support

diff --git a/readme.md b/readme.md
index 87f03e6..210bd2d 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 includes 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 ##

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: