From 3234895736e7f72de002f8f4222f492e44251734 Mon Sep 17 00:00:00 2001 From: Vladislav Ivanov Date: Sun, 30 Oct 2016 22:50:29 +0200 Subject: [PATCH] Release 0.3.0 --- gui.py | 4 ++-- main.py | 3 ++- modules/helper/parser.py | 2 ++ modules/messaging/webchat.py | 6 +++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gui.py b/gui.py index 58477af..661c407 100644 --- a/gui.py +++ b/gui.py @@ -168,7 +168,7 @@ def on_exit(self, event): self.Destroy() def on_close(self, event): - dialog = wx.MessageDialog(self, message=translate_key(MODULE_KEY.join(['config', 'quit'])), + dialog = wx.MessageDialog(self, message=translate_key(MODULE_KEY.join(['main', 'quit'])), caption="Caption", style=wx.YES_NO | wx.CANCEL, pos=wx.DefaultPosition) @@ -181,7 +181,7 @@ def on_close(self, event): def on_close_save(self, event): if not self.settings_saved: - dialog = wx.MessageDialog(self, message=translate_key(MODULE_KEY.join(['config', 'quit', 'nosave'])), + dialog = wx.MessageDialog(self, message=translate_key(MODULE_KEY.join(['main', 'quit', 'nosave'])), caption="Caption", style=wx.YES_NO, pos=wx.DefaultPosition) diff --git a/main.py b/main.py index 06d5325..36bcccb 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,7 @@ from modules.helper.parser import self_heal from modules.helper.system import load_translations_keys -VERSION = '0.2.0' +VERSION = '0.3.0' SEM_VERSION = semantic_version.Version(VERSION) if hasattr(sys, 'frozen'): PYTHON_FOLDER = os.path.dirname(sys.executable) @@ -39,6 +39,7 @@ 'ru_RU': 'ru' } + def get_update(): github_url = "https://api.github.com/repos/DeForce/LalkaChat/releases" try: diff --git a/modules/helper/parser.py b/modules/helper/parser.py index 9fc26c6..c1e2187 100644 --- a/modules/helper/parser.py +++ b/modules/helper/parser.py @@ -34,6 +34,8 @@ def self_heal(conf_file, heal_dict): def return_type(item): if item: try: + if isinstance(item, bool): + return item return int(item) except: if item.lower() == 'true': diff --git a/modules/messaging/webchat.py b/modules/messaging/webchat.py index de3bf15..66f91b8 100644 --- a/modules/messaging/webchat.py +++ b/modules/messaging/webchat.py @@ -169,8 +169,12 @@ def run(self): '/img': {'tools.staticdir.on': True, 'tools.staticdir.dir': os.path.join(http_folder, 'img')}} + css_config = { + '/': {} + } + cherrypy.tree.mount(HttpRoot(http_folder), '', config) - cherrypy.tree.mount(CssRoot(http_folder, self.settings), '/css') + cherrypy.tree.mount(CssRoot(http_folder, self.settings), '/css', css_config) cherrypy.engine.start() cherrypy.engine.block()