Fixed user language and boilerplate desktop.py

This commit is contained in:
Anand Doshi 2014-05-22 19:50:24 +05:30
parent 9fe4e17bb0
commit 0871e4104d
2 changed files with 10 additions and 7 deletions

View file

@ -28,6 +28,8 @@ class User(Document):
self.check_enable_disable()
self.update_gravatar()
self.remove_all_roles_for_guest()
if self.language == "Loading...":
self.language = None
def check_enable_disable(self):
# do not allow disabling administrator/guest

View file

@ -192,14 +192,15 @@ app_version = "0.0.1"
desktop_template = """from frappe import _
data = {{
"{app_title}": {{
"color": "{app_color}",
"icon": "{app_icon}",
"type": "module",
"label": _("{app_title}")
def get_data():
return {{
"{app_title}": {{
"color": "{app_color}",
"icon": "{app_icon}",
"type": "module",
"label": _("{app_title}")
}}
}}
}}
"""
setup_template = """from setuptools import setup, find_packages