Skip to content

Commit

Permalink
Versi├│n 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hxebolax committed Feb 14, 2023
1 parent 6a9bfc6 commit 64f3188
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
19 changes: 10 additions & 9 deletions addon/globalPlugins/TiendaNVDA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,9 +943,9 @@ def menuListBox(self, event):
self.menuFiltro = wx.Menu()
item1 = self.menuFiltro.Append(6, _("Mostrar todos los complementos"))
self.Bind(wx.EVT_MENU, self.onCargaFiltro, item1)
item2 = self.menuFiltro.Append(7, _("Mostrar los complementos con compatibilidad de API 2022"))
item2 = self.menuFiltro.Append(7, _("Mostrar los complementos con compatibilidad de API 2023"))
self.Bind(wx.EVT_MENU, self.onCargaFiltro, item2)
item3 = self.menuFiltro.Append(8, _("Mostrar los complementos con compatibilidad de API 2021"))
item3 = self.menuFiltro.Append(8, _("Mostrar los complementos con compatibilidad de API 2022"))
self.Bind(wx.EVT_MENU, self.onCargaFiltro, item3)
item4 = self.menuFiltro.Append(9, _("Mostrar los complementos ordenados por autor"))
self.Bind(wx.EVT_MENU, self.onCargaFiltro, item4)
Expand Down Expand Up @@ -1036,8 +1036,8 @@ def onCargaFiltro (self, event):
else:
self.listboxComplementos.Append(sorted(self.temporal, key=str.lower))
if self.indiceFiltro == 7:
self.SetTitle(ajustes.titulo + _(" - Complementos compatibles con API 2022"))
dataserver = [x for x in self.datos.dataServidor if x['links'][0]['lasttested'].split('.')[0] == "2022"]
self.SetTitle(ajustes.titulo + _(" - Complementos compatibles con API 2023"))
dataserver = [x for x in self.datos.dataServidor if x['links'][0]['lasttested'].split('.')[0] == "2023"]
for x in range(0, len(dataserver)):
self.temporal.append(dataserver[x]['summary'])
if ajustes.tempOrden == False:
Expand All @@ -1046,8 +1046,8 @@ def onCargaFiltro (self, event):
self.listboxComplementos.Append(sorted(self.temporal, key=str.lower))

if self.indiceFiltro == 8:
self.SetTitle(ajustes.titulo + _(" - Complementos compatibles con API 2021"))
dataserver = [x for x in self.datos.dataServidor if x['links'][0]['lasttested'].split('.')[0] == "2021"]
self.SetTitle(ajustes.titulo + _(" - Complementos compatibles con API 2022"))
dataserver = [x for x in self.datos.dataServidor if x['links'][0]['lasttested'].split('.')[0] == "2022"]
for x in range(0, len(dataserver)):
self.temporal.append(dataserver[x]['summary'])
if ajustes.tempOrden == False:
Expand Down Expand Up @@ -1763,15 +1763,16 @@ def __call__(self, block_num, block_size, total_size):
def run(self):
try:
socket.setdefaulttimeout(self.tiempo) # Dara error si pasan 30 seg sin internet
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.774.68 Safari/537.36 Edg/89.0.774.68'}
try:
req = urllib.request.Request(self.url, headers={'User-Agent': 'Mozilla/5.0'})
req = urllib.request.Request(self.url, headers=headers)
obj = urllib.request.urlopen(req).geturl()
urllib.request.urlretrieve(obj, self.ruta, reporthook=self.__call__)
except:
urllib.request.urlretrieve(self.url, self.ruta, reporthook=self.__call__)
wx.CallAfter(self.frame.done, _("La descarga se completó.\n") + _("Ya puede cerrar esta ventana."))
except:
wx.CallAfter(self.frame.error, _("Algo salió mal.\n") + _("Compruebe que tiene conexión a internet y vuelva a intentarlo.\n") + _("Ya puede cerrar esta ventana."))
except Exception as e:
wx.CallAfter(self.frame.error, _("Algo salió mal.\n") + _("Compruebe que tiene conexión a internet y vuelva a intentarlo.\n") + _("Error:\n\n{}\n").format(e) + _("Ya puede cerrar esta ventana."))
try:
os.remove(self.ruta)
except:
Expand Down
4 changes: 2 additions & 2 deletions buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("Tienda de complementos no oficial de https://www.nvda.es"),
# version
"addon_version": "0.8.5",
"addon_version": "0.9",
# Author(s)
"addon_author": u"Héctor J. Benítez Corredera <[email protected]>",
# URL for the add-on documentation support
Expand All @@ -35,7 +35,7 @@ def _(arg):
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)
"addon_minimumNVDAVersion": "2019.3.0",
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
"addon_lastTestedNVDAVersion": "2022.4.0",
"addon_lastTestedNVDAVersion": "2023.1.0",
# Add-on update channel (default is None, denoting stable releases,
# and for development releases, use "dev".)
# Do not change unless you know what you are doing!
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* Solución de errores con la mala praxis de los desarrolladores que no siguen los estándares de los manifiestos.
* Compatibilidad API 2023
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ Le agradecemos se ponga en contacto para reportarlos y poder solucionarlos a la

¡Disfruta de la Tienda para NVDA.ES!
# Registro de cambios.
## Versión 0.9

* Compatibilidad API 2023

## Versión 0.8.5

* Solución de errores con la mala praxis de los desarrolladores que no siguen los estándares de los manifiestos.
Expand Down
2 changes: 1 addition & 1 deletion run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ echo Creando complemento...
scons --clean
scons
scons pot
TiendaNVDA-0.8.5.nvda-addon
TiendaNVDA-0.9.nvda-addon
4 changes: 2 additions & 2 deletions run_git.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
scons --clean
git init
git add --all
git commit -m "Versión 0.8.5"
git commit -m "Versión 0.9"
git push -u origin master
git tag 0.8.5
git tag 0.9
git push --tags
pause

0 comments on commit 64f3188

Please sign in to comment.