Version 6.x.x Source

frappe.utils.call_hook_method (hook)

No docs


frappe.utils.decode_dict (d, encoding=utf-8)

No docs


frappe.utils.dict_to_str (args, sep=&)

Converts a dictionary to URL


frappe.utils.encode_dict (d, encoding=utf-8)

No docs


frappe.utils.esc (s, esc_chars)

Escape special characters


frappe.utils.execute_in_shell (cmd, verbose=0)

No docs


frappe.utils.extract_email_id (email)

fetch only the email part of the email id


frappe.utils.getCSVelement (v)

Returns the CSV value of v, For example:


frappe.utils.get_backups_path ()

No docs


frappe.utils.get_bench_path ()

No docs


frappe.utils.get_common (d1, d2)

returns (list of keys) the common part of two dicts


frappe.utils.get_common_dict (d1, d2)

return common dictionary of d1 and d2


frappe.utils.get_defaults (key=None)

Get dictionary of default values from the defaults, or a value if key is passed


frappe.utils.get_diff_dict (d1, d2)

return common dictionary of d1 and d2


frappe.utils.get_disk_usage ()

get disk usage of files folder


frappe.utils.get_file_timestamp (fn)

Returns timestamp of the given file


frappe.utils.get_files_path ()

No docs


frappe.utils.get_formatted_email (user)

get email id of user formatted as: John Doe <johndoe@example.com>


frappe.utils.get_fullname (user=None)

get the full name (first name + last name) of the user from User


frappe.utils.get_gravatar (email)

No docs


frappe.utils.get_hook_method (hook_name, fallback=None)

No docs


frappe.utils.get_html_format (print_path)

No docs


frappe.utils.get_path ()

No docs


frappe.utils.get_request_session (max_retries=3)

No docs


frappe.utils.get_request_site_address (full_address=False)

No docs


frappe.utils.get_site_base_path (sites_dir=None, hostname=None)

No docs


frappe.utils.get_site_name (hostname)

No docs


frappe.utils.get_site_path ()

No docs


frappe.utils.get_sites (sites_path=None)

No docs


frappe.utils.get_test_client ()

No docs


frappe.utils.get_traceback ()

Returns the traceback of the Exception


frappe.utils.is_markdown (text)

No docs


frappe.utils.log (event, details)

No docs


frappe.utils.make_esc (esc_chars)

Function generator for Escaping special characters


frappe.utils.pprint_dict (d, level=1, no_blanks=True)

Pretty print a dictionary with indents


frappe.utils.random_string (length)

generate a random string


frappe.utils.remove_blanks (d)

Returns d with empty ('' or None) values stripped


frappe.utils.set_default (key, val)

Set / add a default value to defaults`


frappe.utils.split_emails (txt)

No docs


frappe.utils.strip_html_tags (text)

Remove html tags from text


frappe.utils.touch_file (path)

No docs


frappe.utils.unesc (s, esc_chars)

UnEscape special characters


frappe.utils.update_progress_bar (txt, i, l)

No docs


frappe.utils.validate_email_add (email_str, throw=False)

Validates the email string


frappe.utils.watch (path, handler=None, debug=True)

No docs