193 lines
No EOL
5.1 KiB
HTML
193 lines
No EOL
5.1 KiB
HTML
<!-- title: frappe.modules.patch_handler --><div class="dev-header">
|
|
|
|
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
|
|
Version 6.11.0</a>
|
|
|
|
|
|
<a class="btn btn-default btn-sm" href="https://github.com/frappe/frappe/blob/develop/frappe/modules/patch_handler.py"
|
|
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 style="font-weight: normal;">Class <b>PatchError</b></h3>
|
|
|
|
<p style="padding-left: 30px;"><i>Inherits from exceptions.Exception</i></h4>
|
|
|
|
<div class="docs-attr-desc"><p></p>
|
|
</div>
|
|
<div style="padding-left: 30px;">
|
|
|
|
</div>
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.block_user" href="#frappe.modules.patch_handler.block_user" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>block_user</b>
|
|
<i class="text-muted">(block)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>stop/start execution till patch is run</p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.check_session_stopped" href="#frappe.modules.patch_handler.check_session_stopped" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>check_session_stopped</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.execute_patch" href="#frappe.modules.patch_handler.execute_patch" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>execute_patch</b>
|
|
<i class="text-muted">(patchmodule, method=None, methodargs=None)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>execute the patch</p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.executed" href="#frappe.modules.patch_handler.executed" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>executed</b>
|
|
<i class="text-muted">(patchmodule)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>return True if is executed</p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.get_all_patches" href="#frappe.modules.patch_handler.get_all_patches" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>get_all_patches</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.log" href="#frappe.modules.patch_handler.log" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>log</b>
|
|
<i class="text-muted">(msg)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.reload_doc" href="#frappe.modules.patch_handler.reload_doc" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>reload_doc</b>
|
|
<i class="text-muted">(args)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.run_all" href="#frappe.modules.patch_handler.run_all" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>run_all</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>run all pending patches</p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.run_single" href="#frappe.modules.patch_handler.run_single" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>run_single</b>
|
|
<i class="text-muted">(patchmodule=None, method=None, methodargs=None, force=False)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.modules.patch_handler.update_patch_log" href="#frappe.modules.patch_handler.update_patch_log" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.modules.patch_handler.<b>update_patch_log</b>
|
|
<i class="text-muted">(patchmodule)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>update patch_file in patch log</p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- autodoc --> |