浏览代码

Merge branch 'hotfix'

version-14
mbauskar 7 年前
父节点
当前提交
3cfbae5645
共有 4 个文件被更改,包括 9 次插入3 次删除
  1. +1
    -1
      frappe/__init__.py
  2. +1
    -1
      frappe/patches/v7_1/disabled_print_settings_for_custom_print_format.py
  3. +1
    -1
      frappe/printing/doctype/print_format/print_format.js
  4. +6
    -0
      frappe/utils/scheduler.py

+ 1
- 1
frappe/__init__.py 查看文件

@@ -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__ = '8.10.5'
__version__ = '8.10.6'
__title__ = "Frappe Framework" __title__ = "Frappe Framework"


local = Local() local = Local()


+ 1
- 1
frappe/patches/v7_1/disabled_print_settings_for_custom_print_format.py 查看文件

@@ -11,7 +11,7 @@ def execute():
update update
`tabPrint Format` `tabPrint Format`
set set
align_labels_left = 0, line_breaks = 0, show_section_headings = 0
align_labels_right = 0, line_breaks = 0, show_section_headings = 0
where where
custom_format = 1 custom_format = 1
""") """)

+ 1
- 1
frappe/printing/doctype/print_format/print_format.js 查看文件

@@ -43,7 +43,7 @@ frappe.ui.form.on("Print Format", {
}, },
custom_format: function(frm) { custom_format: function(frm) {
var value = frm.doc.custom_format ? 0:1; var value = frm.doc.custom_format ? 0:1;
frm.set_value('align_labels_left', value);
frm.set_value('align_labels_right', value);
frm.set_value('show_section_headings', value); frm.set_value('show_section_headings', value);
frm.set_value('line_breaks', value); frm.set_value('line_breaks', value);
frm.trigger('render_buttons'); frm.trigger('render_buttons');


+ 6
- 0
frappe/utils/scheduler.py 查看文件

@@ -16,6 +16,7 @@ import schedule
import time import time
import MySQLdb import MySQLdb
import frappe.utils import frappe.utils
import os
from frappe.utils import get_sites from frappe.utils import get_sites
from datetime import datetime from datetime import datetime
from frappe.utils.background_jobs import enqueue, get_jobs, queue_timeout from frappe.utils.background_jobs import enqueue, get_jobs, queue_timeout
@@ -40,6 +41,11 @@ def start_scheduler():


def enqueue_events_for_all_sites(): def enqueue_events_for_all_sites():
'''Loop through sites and enqueue events that are not already queued''' '''Loop through sites and enqueue events that are not already queued'''

if os.path.exists(os.path.join('.', '.restarting')):
# Don't add task to queue if webserver is in restart mode
return

with frappe.init_site(): with frappe.init_site():
jobs_per_site = get_jobs() jobs_per_site = get_jobs()
sites = get_sites() sites = get_sites()


正在加载...
取消
保存