2 new commits in StationPlaylist:
https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/3742503ebb6f/
Changeset: 3742503ebb6f
Branch: None
User: josephsl
Date: 2019-11-18 04:26:23+00:00
Summary: Studio track item/column navigator: columnHeader -> header.
Once again, an oversight: columnHeader variable has been renamed to 'head'.
Thus use the new variable name. This resolves error tones when tryingto use
column navigator to review track columns.
Affected #: 1 file
diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 99c2047..faa4f07 100644
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -289,9 +289,9 @@ class SPLStudioTrackItem(SPLTrackItem):
if columnContent: ui.message(str(_("{checkStatus}{header}:
{content}")).format(checkStatus = status, header = header, content =
columnContent))
else:
# Translators: Spoken when column content is blank.
- speech.speakMessage(_("{checkStatus}{header}:
blank").format(checkStatus = status, header = columnHeader))
+ speech.speakMessage(_("{checkStatus}{header}:
blank").format(checkStatus = status, header = header))
# Translators: Brailled to indicate empty column
content.
- braille.handler.message(_("{checkStatus}{header}:
()").format(checkStatus = status, header = columnHeader))
+ braille.handler.message(_("{checkStatus}{header}:
()").format(checkStatus = status, header = header))
# Now the scripts.
# Because Studio track item requires special handling for status
column, first and previous column scripts will be part of this and other
subclasses here.
https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/c429cd97920d/
Changeset: c429cd97920d
Branch: stable
User: josephsl
Date: 2019-11-18 04:28:19+00:00
Summary: Studio track item: no more str() function call for column content.
Call to str() function is unnecessary now - Unicode is used by default in
Python 3.
Affected #: 1 file
diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index faa4f07..05436a8 100644
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -115,7 +115,7 @@ class SPLTrackItem(sysListView32.ListItem):
# This will work properly if the list (parent) is (or
recognized as) SysListView32.List.
if not header: header =
self._getColumnHeaderRaw(self.parent._columnOrderArray[colNumber])
columnContent = self._getColumnContentRaw(self.indexOf(header))
- if columnContent: ui.message(str(_("{header}:
{content}")).format(header = header, content = columnContent))
+ if columnContent: ui.message(_("{header}:
{content}").format(header = header, content = columnContent))
else:
speech.speakMessage(_("{header}: blank").format(header
= header))
braille.handler.message(_("{header}: ()").format(header
= header))
@@ -286,7 +286,7 @@ class SPLStudioTrackItem(SPLTrackItem):
columnContent = self._getColumnContentRaw(self.indexOf(header))
status = self.name + " " if reportStatus else ""
# Translators: Standard message for announcing column content.
- if columnContent: ui.message(str(_("{checkStatus}{header}:
{content}")).format(checkStatus = status, header = header, content =
columnContent))
+ if columnContent: ui.message(_("{checkStatus}{header}:
{content}").format(checkStatus = status, header = header, content =
columnContent))
else:
# Translators: Spoken when column content is blank.
speech.speakMessage(_("{checkStatus}{header}:
blank").format(checkStatus = status, header = header))
Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.