@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json | |||||
from .exceptions import * | from .exceptions import * | ||||
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template | from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template | ||||
__version__ = '9.0.2' | |||||
__version__ = '9.0.3' | |||||
__title__ = "Frappe Framework" | __title__ = "Frappe Framework" | ||||
local = Local() | local = Local() | ||||
@@ -1,6 +1,6 @@ | |||||
from __future__ import unicode_literals, absolute_import, print_function | from __future__ import unicode_literals, absolute_import, print_function | ||||
import click | import click | ||||
import hashlib, os, sys | |||||
import hashlib, os, sys, compileall | |||||
import frappe | import frappe | ||||
from frappe import _ | from frappe import _ | ||||
from _mysql_exceptions import ProgrammingError | from _mysql_exceptions import ProgrammingError | ||||
@@ -218,6 +218,8 @@ def migrate(context, rebuild_website=False): | |||||
finally: | finally: | ||||
frappe.destroy() | frappe.destroy() | ||||
compileall.compile_dir('../apps', quiet=1) | |||||
@click.command('run-patch') | @click.command('run-patch') | ||||
@click.argument('module') | @click.argument('module') | ||||
@pass_context | @pass_context | ||||
@@ -33,7 +33,10 @@ def get_meta(doctype, cached=True): | |||||
lambda: Meta(doctype)) | lambda: Meta(doctype)) | ||||
return frappe.local.meta_cache[doctype] | return frappe.local.meta_cache[doctype] | ||||
else: | else: | ||||
return Meta(doctype) | |||||
return load_meta(doctype) | |||||
def load_meta(doctype): | |||||
return Meta(doctype) | |||||
def get_table_columns(doctype): | def get_table_columns(doctype): | ||||
return frappe.cache().hget("table_columns", doctype, | return frappe.cache().hget("table_columns", doctype, | ||||
@@ -1141,9 +1141,6 @@ input[type="checkbox"]:checked:before { | |||||
.slides-wrapper .footer .btn:not(:last-child) { | .slides-wrapper .footer .btn:not(:last-child) { | ||||
margin-right: 3px; | margin-right: 3px; | ||||
} | } | ||||
.slides-wrapper .footer a.btn.make-btn { | |||||
margin-right: 7px; | |||||
} | |||||
.slides-wrapper .footer a.make-btn.disabled { | .slides-wrapper .footer a.make-btn.disabled { | ||||
background-color: #b1bdca; | background-color: #b1bdca; | ||||
color: #fff; | color: #fff; | ||||
@@ -114,7 +114,7 @@ frappe.setup.UserProgressDialog = class UserProgressDialog { | |||||
$footer.find('.text-right') | $footer.find('.text-right') | ||||
.prepend($(`<a class="done-btn btn btn-default btn-sm"> | .prepend($(`<a class="done-btn btn btn-default btn-sm"> | ||||
${__("Mark as Done")}</a>`)) | ${__("Mark as Done")}</a>`)) | ||||
.prepend($(`<a class="make-btn btn btn-primary btn-sm primary action"> | |||||
.append($(`<a class="make-btn btn btn-primary btn-sm primary action"> | |||||
${__("Create")}</a>`)); | ${__("Create")}</a>`)); | ||||
}, | }, | ||||
on_update: (completed, total) => { | on_update: (completed, total) => { | ||||
@@ -1092,10 +1092,6 @@ input[type="checkbox"] { | |||||
margin-right: 3px; | margin-right: 3px; | ||||
} | } | ||||
a.btn.make-btn { | |||||
margin-right: 7px; | |||||
} | |||||
a.make-btn.disabled { | a.make-btn.disabled { | ||||
background-color: #b1bdca; | background-color: #b1bdca; | ||||
color: #fff; | color: #fff; | ||||