chore: move function to correct file
This commit is contained in:
parent
8882679357
commit
ebfdfa283b
2 changed files with 6 additions and 7 deletions
|
|
@ -17,7 +17,6 @@ import inspect
|
|||
import json
|
||||
import os
|
||||
import re
|
||||
import unicodedata
|
||||
import warnings
|
||||
from collections.abc import Callable
|
||||
from typing import TYPE_CHECKING, Any, Literal, Optional, TypeAlias, overload
|
||||
|
|
@ -33,7 +32,6 @@ from frappe.query_builder import (
|
|||
)
|
||||
from frappe.utils.caching import request_cache
|
||||
from frappe.utils.data import cint, cstr, sbool
|
||||
from frappe.utils.deprecations import deprecated
|
||||
|
||||
# Local application imports
|
||||
from .exceptions import *
|
||||
|
|
@ -532,11 +530,6 @@ def msgprint(
|
|||
_raise_exception()
|
||||
|
||||
|
||||
@deprecated
|
||||
def get_site_url(site):
|
||||
return frappe.utils.get_url()
|
||||
|
||||
|
||||
def clear_messages():
|
||||
local.message_log = []
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import frappe
|
|||
|
||||
# utility functions like cint, int, flt, etc.
|
||||
from frappe.utils.data import *
|
||||
from frappe.utils.deprecations import deprecated
|
||||
from frappe.utils.html_utils import sanitize_html
|
||||
|
||||
EMAIL_NAME_PATTERN = re.compile(r"[^A-Za-z0-9\u00C0-\u024F\/\_\' ]+")
|
||||
|
|
@ -528,6 +529,11 @@ def get_request_site_address(full_address=False):
|
|||
return get_url(full_address=full_address)
|
||||
|
||||
|
||||
@deprecated
|
||||
def get_site_url(site):
|
||||
return frappe.utils.get_url()
|
||||
|
||||
|
||||
def encode_dict(d, encoding="utf-8"):
|
||||
for key in d:
|
||||
if isinstance(d[key], str) and isinstance(d[key], str):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue