From cbd3126a4f45a72984daa7434c089740d4ef0c0b Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 9 Nov 2017 08:36:25 -0600 Subject: [PATCH 01/10] Fixed a typo. Closes #176 --- src/wxUI/dialogs/message.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wxUI/dialogs/message.py b/src/wxUI/dialogs/message.py index 998add9d..f668975e 100644 --- a/src/wxUI/dialogs/message.py +++ b/src/wxUI/dialogs/message.py @@ -252,7 +252,6 @@ class reply(textLimited): self.usersbox.Add(self.checkboxes[-1], 0, wx.ALL, 5) self.mainBox.Add(self.usersbox, 0, wx.ALL, 10) self.long_tweet = wx.CheckBox(self.panel, -1, _(u"&Long tweet")) - self.long_tweet.SetValue(True) self.upload_image = wx.Button(self.panel, -1, _(u"&Upload image..."), size=wx.DefaultSize) self.spellcheck = wx.Button(self.panel, -1, _("Check &spelling..."), size=wx.DefaultSize) self.attach = wx.Button(self.panel, -1, _(u"&Attach audio..."), size=wx.DefaultSize) From 9e17abf5177d0e4a7813b121c6273ef6dfde3c05 Mon Sep 17 00:00:00 2001 From: Jose Manuel Delicado Date: Thu, 9 Nov 2017 20:07:20 +0100 Subject: [PATCH 02/10] Added mapping for serbian (latin) language in languageHandler.py. Fixes #175 --- mysc/pa.c format/App/AppInfo/appinfo.ini | 2 +- src/languageHandler.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mysc/pa.c format/App/AppInfo/appinfo.ini b/mysc/pa.c format/App/AppInfo/appinfo.ini index 351b5faa..24e25623 100644 --- a/mysc/pa.c format/App/AppInfo/appinfo.ini +++ b/mysc/pa.c format/App/AppInfo/appinfo.ini @@ -1,6 +1,6 @@ [Format] Type=PortableApps.comFormat -Version=3.4 +Version=3.5 [Details] Name=tw blue portable diff --git a/src/languageHandler.py b/src/languageHandler.py index 7dcbc830..27fd3f4e 100644 --- a/src/languageHandler.py +++ b/src/languageHandler.py @@ -3,6 +3,8 @@ import os import sys import ctypes import locale +# add mapping for Serbian (latin) language +locale.windows_locale[9242]='sr_RS' import gettext import paths import platform From cd128b8e691b6723825099fda335f272aab67e3c Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 9 Nov 2017 17:25:17 -0600 Subject: [PATCH 03/10] Added extended tweets mode in search buffers during creation --- doc/changelog.md | 1 + src/controller/mainController.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/changelog.md b/doc/changelog.md index 66af84dd..af2ef5b6 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -7,6 +7,7 @@ * Trending topics, searches and conversation buffers will use mute settings set for the session in wich they were opened. ([#157](https://github.com/manuelcortez/TWBlue/issues/157)) * The Tweet limit is now 280 characters lenght instead 140. It means you can tweet longer tweets. ([#172](https://github.com/manuelcortez/TWBlue/issues/172)) * Per popular request, Status for mention to all and long tweet checkboxes will not be saved in settings. ([#170](https://github.com/manuelcortez/TWBlue/issues/170)) +* Fixed a problem that was making TWBlue unable to start if it was being ran in Windows with Serbian language. ([#175](https://github.com/manuelcortez/TWBlue/issues/175)) * And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://github.com/manuelcortez/TWBlue/issues/159) [#173,](https://github.com/manuelcortez/TWBlue/issues/173) [#174,](https://github.com/manuelcortez/TWBlue/issues/174)) ## changes in version 0.91 and 0.92 diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 6d565d3a..47ade9f4 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -442,7 +442,7 @@ class Controller(object): buffer.session.settings["other_buffers"]["tweet_searches"].append(term) buffer.session.settings.write() args = {"lang": dlg.get_language(), "result_type": dlg.get_result_type()} - search = buffersController.searchBufferController(self.view.nb, "search", "%s-searchterm" % (term,), buffer.session, buffer.session.db["user_name"], bufferType="searchPanel", q=term, **args) + search = buffersController.searchBufferController(self.view.nb, "search", "%s-searchterm" % (term,), buffer.session, buffer.session.db["user_name"], bufferType="searchPanel", q=term, tweet_mode="extended", **args) else: log.error("A buffer for the %s search term is already created. You can't create a duplicate buffer." % (term,)) return From 066de25f95490b1fceab329b080335230d94a31d Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 9 Nov 2017 17:34:56 -0600 Subject: [PATCH 04/10] Mention to all will be checked by default #176 --- src/controller/messages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/messages.py b/src/controller/messages.py index ff0fb7de..09abad2f 100644 --- a/src/controller/messages.py +++ b/src/controller/messages.py @@ -148,6 +148,8 @@ class reply(tweet): if len(users) > 0: widgetUtils.connect_event(self.message.mentionAll, widgetUtils.CHECKBOX, self.mention_all) self.message.enable_button("mentionAll") + self.message.set("mentionAll", True) + self.mention_all() self.message.set_cursor_at_end() self.text_processor() From e23ef1ded2fd399646742ae4d4c134a9e35c6b22 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 9 Nov 2017 17:37:36 -0600 Subject: [PATCH 05/10] Updated changelog --- doc/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.md b/doc/changelog.md index af2ef5b6..f42b6572 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -8,7 +8,7 @@ * The Tweet limit is now 280 characters lenght instead 140. It means you can tweet longer tweets. ([#172](https://github.com/manuelcortez/TWBlue/issues/172)) * Per popular request, Status for mention to all and long tweet checkboxes will not be saved in settings. ([#170](https://github.com/manuelcortez/TWBlue/issues/170)) * Fixed a problem that was making TWBlue unable to start if it was being ran in Windows with Serbian language. ([#175](https://github.com/manuelcortez/TWBlue/issues/175)) -* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://github.com/manuelcortez/TWBlue/issues/159) [#173,](https://github.com/manuelcortez/TWBlue/issues/173) [#174,](https://github.com/manuelcortez/TWBlue/issues/174)) +* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://github.com/manuelcortez/TWBlue/issues/159) [#173,](https://github.com/manuelcortez/TWBlue/issues/173) [#174,](https://github.com/manuelcortez/TWBlue/issues/174) [#176,](https://github.com/manuelcortez/TWBlue/issues/176)) ## changes in version 0.91 and 0.92 From 1b62eece1384154479b2350fc6a03f559184738e Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 10 Nov 2017 11:51:20 -0600 Subject: [PATCH 06/10] Changed update system in server side --- src/application.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/application.py b/src/application.py index 1e384b9c..ec809646 100644 --- a/src/application.py +++ b/src/application.py @@ -3,16 +3,16 @@ name = 'TWBlue' snapshot = False if snapshot == False: version = "0.92" - update_url = 'http://twblue.es/updates/twblue_ngen.json' + update_url = 'https://twblue.es/updates/stable.php' mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/stable.json' else: - version = "10.99" - update_url = 'http://twblue.es/updates/snapshots_ngen.json' + version = "1" + update_url = 'https://twblue.es/updates/snapshot.php' mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/snapshots.json' authors = [u"Manuel Cortéz", u"José Manuel Delicado"] authorEmail = "manuel@manuelcortez.net" copyright = u"Copyright (C) 2013-2017, Manuel cortéz." description = unicode(name+" is an app designed to use Twitter simply and efficiently while using minimal system resources. This app provides access to most Twitter features.") translators = [u"Manuel Cortéz (English)", u"Mohammed Al Shara, Hatoun Felemban (Arabic)", u"Francisco Torres (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Juan Buño (Galician)", u"Steffen Schultz (German)", u"Zvonimir Stanečić (Croatian)", u"Robert Osztolykan (Hungarian)", u"Christian Leo Mameli (Italian)", u"Riku (Japanese)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Florian Ionașcu, Nicușor Untilă (Romanian)", u"Natalia Hedlund, Valeria Kuznetsova (Russian)", u"Aleksandar Đurić (Serbian)", u"Burak Yüksek (Turkish)"] -url = u"http://twblue.es" -report_bugs_url = "http://twblue.es/bugs/api/soap/mantisconnect.php?wsdl" \ No newline at end of file +url = u"https://twblue.es" +report_bugs_url = "https://github.com/manuelcortez/twblue/issues" \ No newline at end of file From a13dd756b1ac9764949fcc91239641389e6ddb31 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 10 Nov 2017 11:53:25 -0600 Subject: [PATCH 07/10] Prepare update file for snapshots --- updates/snapshots.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/updates/snapshots.json b/updates/snapshots.json index 74a72c02..c6bd052e 100644 --- a/updates/snapshots.json +++ b/updates/snapshots.json @@ -1,5 +1,5 @@ -{"current_version": "10.99", -"description": "Changes: Read the changelog from the help menu in the menu bar.", -"date": "day_name_abr month day_numb, 2016", +{"current_version": "1", +"description": "Snapshot version.", +"date": "unknown", "downloads": -{"Windows32": "http://twblue.es/pubs/twblue_snapshot.zip"}} \ No newline at end of file +{"Windows32": "https://twblue.es/pubs/snapshot.zip"}} \ No newline at end of file From efc6843ee2e74108797c1a7266f57c508b11667e Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 10 Nov 2017 12:01:43 -0600 Subject: [PATCH 08/10] Redirects snapshot users to changelog hosted in the repository --- src/controller/mainController.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 47ade9f4..8ee340f6 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -1521,10 +1521,13 @@ class Controller(object): os.chdir("../../") def view_changelog(self, *args, **kwargs): - lang = localization.get("documentation") - os.chdir("documentation/%s" % (lang,)) - webbrowser.open("changelog.html") - os.chdir("../../") + if application.snapshot == True: + webbrowser.open("https://github.com/manuelcortez/twblue/blob/next-gen/doc/changelog.md") + else: + lang = localization.get("documentation") + os.chdir("documentation/%s" % (lang,)) + webbrowser.open("changelog.html") + os.chdir("../../") def insert_buffer(self, buffer, position): self.buffers.insert(position, buffer) From 0f31a776ffc607d30deb01813c0750c677d7e9a5 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 11 Nov 2017 15:43:44 -0600 Subject: [PATCH 09/10] Use current arrow version instead 0.6 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 591e4485..df6d0c39 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ setuptools installs a script, called easy_install. You can find it in the python * requests-toolbelt * future * pygeocoder -* arrow==0.6 +* arrow * markdown * winpaths * PySocks @@ -72,7 +72,7 @@ setuptools installs a script, called easy_install. You can find it in the python easy_install will automatically get the additional libraries that these packages need to work properly. Run the following command to quickly install and upgrade all packages and their dependencies: -easy_install -Z --upgrade six configobj markdown future requests oauthlib requests-oauthlib requests-toolbelt pypubsub==3.3.0 pygeocoder arrow==0.6 python-dateutil futures winpaths PySocks win_inet_pton yandex.translate idna chardet urllib3 +easy_install -Z --upgrade six configobj markdown future requests oauthlib requests-oauthlib requests-toolbelt pypubsub==3.3.0 pygeocoder arrow python-dateutil futures winpaths PySocks win_inet_pton yandex.translate idna chardet urllib3 #### Other dependencies From e06ccacda19451aa1a2d0c357d8af55bbf37d4ff Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 11 Nov 2017 15:53:24 -0600 Subject: [PATCH 10/10] Removed translations for arrow. Fixed get_locale --- src/fixes/fix_arrow.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/fixes/fix_arrow.py b/src/fixes/fix_arrow.py index 162b1ed9..839a87fe 100644 --- a/src/fixes/fix_arrow.py +++ b/src/fixes/fix_arrow.py @@ -3,23 +3,16 @@ from arrow import locales from arrow.locales import Locale def fix(): - ''' This function adds the Catala, Basque and galician locales to the list of locales supported in Arrow. - it also fixes capitalizations in names from turkish and arabian locales. - see https://github.com/crsmithdev/arrow/pull/207 for following the pull request.''' - locales.CatalaLocale = CatalaLocale - locales.GalicianLocale = GalicianLocale - locales.BasqueLocale = BasqueLocale - locales.TurkishLocale.names[-1] = "tr_tr" - locales.ArabicLocale.names[-1] = "ar_eg" # insert a modified function so if there is no language available in arrow, returns English locale. locales.get_locale = get_locale - # We need to reassign the locales list for updating the list with our new contents. - locales._locales = locales._map_locales() def get_locale(name): locale_cls = locales._locales.get(name.lower()) if locale_cls is None: - return locales.EnglishLocale() + name = name[:2] + locale_cls = locales._locales.get(name.lower()) + if locale_cls == None: + return locales.EnglishLocale() return locale_cls() class CatalaLocale(Locale):