Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DeForce committed Oct 30, 2016
1 parent 5c3488d commit 3234895
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -39,6 +39,7 @@
'ru_RU': 'ru'
}


def get_update():
github_url = "https://api.github.com/repos/DeForce/LalkaChat/releases"
try:
Expand Down
2 changes: 2 additions & 0 deletions modules/helper/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
6 changes: 5 additions & 1 deletion modules/messaging/webchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3234895

Please sign in to comment.