diff --git a/frappe/docs/current/api/core/frappe.core.notifications.html b/frappe/docs/current/api/core/frappe.core.notifications.html index c2e7eb0794653a4f3f53fa545fdd316646d7e9cb..a8fe2071e31bcbadf966a859fca4a795fbef601c 100644 --- a/frappe/docs/current/api/core/frappe.core.notifications.html +++ b/frappe/docs/current/api/core/frappe.core.notifications.html @@ -77,6 +77,22 @@ + + + + + <p class="docs-attr-name"> + <a name="frappe.core.notifications.get_unseen_likes" href="#frappe.core.notifications.get_unseen_likes" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.core.notifications.<b>get_unseen_likes</b> + <i class="text-muted">()</i> + </p> + <div class="docs-attr-desc"><p>Returns count of unseen likes</p> +</div> + <br> + + + <!-- autodoc --> \ No newline at end of file diff --git a/frappe/docs/current/api/desk/frappe.desk.like.html b/frappe/docs/current/api/desk/frappe.desk.like.html new file mode 100644 index 0000000000000000000000000000000000000000..d1b364d46a8b7d20437e45fa86f1acc0255efb6b --- /dev/null +++ b/frappe/docs/current/api/desk/frappe.desk.like.html @@ -0,0 +1,96 @@ +<!-- title: frappe.desk.like --><div class="dev-header"> + +<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;"> + Version 6.x.x</a> + + + <a class="btn btn-default btn-sm" href="https://github.com/frappe/frappe/blob/develop/frappe/desk/like.py" + target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a> + +</div> + + + + + + + + + + <p class="docs-attr-name"> + <a name="frappe.desk.like._toggle_like" href="#frappe.desk.like._toggle_like" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.desk.like.<b>_toggle_like</b> + <i class="text-muted">(doctype, name, add, user=None)</i> + </p> + <div class="docs-attr-desc"><p>Same as toggle_like but hides param <code>user</code> from API</p> +</div> + <br> + + + + + + + + <p class="docs-attr-name"> + <a name="frappe.desk.like.add_comment" href="#frappe.desk.like.add_comment" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.desk.like.<b>add_comment</b> + <i class="text-muted">(doctype, name)</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.desk.like.remove_like" href="#frappe.desk.like.remove_like" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.desk.like.<b>remove_like</b> + <i class="text-muted">(doctype, name)</i> + </p> + <div class="docs-attr-desc"><p>Remove previous Like</p> +</div> + <br> + + + + + + + <p><span class="label label-info">Public API</span> + <br><code>/api/method/frappe.desk.like.toggle_like</code> + </p> + <p class="docs-attr-name"> + <a name="frappe.desk.like.toggle_like" href="#frappe.desk.like.toggle_like" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.desk.like.<b>toggle_like</b> + <i class="text-muted">(doctype, name, add=False)</i> + </p> + <div class="docs-attr-desc"><p>Adds / removes the current user in the <code>__liked_by</code> property of the given document. +If column does not exist, will add it in the database.</p> + +<p>The <code>_liked_by</code> property is always set from this function and is ignored if set via +Document API</p> + +<p><strong>Parameters:</strong></p> + +<ul> +<li><strong><code>doctype</code></strong> - DocType of the document to like</li> +<li><strong><code>name</code></strong> - Name of the document to like</li> +<li><strong><code>add</code></strong> - <code>Yes</code> if like is to be added. If not <code>Yes</code> the like will be removed.</li> +</ul> +</div> + <br> + + + + + +<!-- autodoc --> \ No newline at end of file diff --git a/frappe/docs/current/api/desk/frappe.desk.notifications.html b/frappe/docs/current/api/desk/frappe.desk.notifications.html index 799d78174c709084fad7fa3557c54aa30036ccf7..81727789f31fab74b3183c0a6ee869fdb75adc20 100644 --- a/frappe/docs/current/api/desk/frappe.desk.notifications.html +++ b/frappe/docs/current/api/desk/frappe.desk.notifications.html @@ -131,6 +131,22 @@ + <p class="docs-attr-name"> + <a name="frappe.desk.notifications.get_notifications_for" href="#frappe.desk.notifications.get_notifications_for" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.desk.notifications.<b>get_notifications_for</b> + <i class="text-muted">(notification_type, config, notification_count)</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.desk.notifications.get_notifications_for_doctypes" href="#frappe.desk.notifications.get_notifications_for_doctypes" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> @@ -159,6 +175,22 @@ + + + + + <p class="docs-attr-name"> + <a name="frappe.desk.notifications.get_notifications_for_other" href="#frappe.desk.notifications.get_notifications_for_other" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.desk.notifications.<b>get_notifications_for_other</b> + <i class="text-muted">(config, notification_count)</i> + </p> + <div class="docs-attr-desc"><p>Notifications for other items</p> +</div> + <br> + + + <!-- autodoc --> \ No newline at end of file diff --git a/frappe/docs/current/api/desk/index.txt b/frappe/docs/current/api/desk/index.txt index 439207c279fbc901281913692a3aaa423a6ae54e..dba8734feb71f1355c437fe4989d5ea9bd67b3d3 100644 --- a/frappe/docs/current/api/desk/index.txt +++ b/frappe/docs/current/api/desk/index.txt @@ -1,6 +1,7 @@ frappe.desk.calendar frappe.desk.desk_page frappe.desk +frappe.desk.like frappe.desk.moduleview frappe.desk.notifications frappe.desk.query_builder @@ -8,5 +9,4 @@ frappe.desk.query_report frappe.desk.report_dump frappe.desk.reportview frappe.desk.search -frappe.desk.star frappe.desk.tags \ No newline at end of file diff --git a/frappe/docs/current/api/frappe.sessions.html b/frappe/docs/current/api/frappe.sessions.html index 84690315b5c2f5f45f9f934e9329fd2593cbc0a7..21f51c17c9d288cf666d041eb8ddf59c24d95291 100644 --- a/frappe/docs/current/api/frappe.sessions.html +++ b/frappe/docs/current/api/frappe.sessions.html @@ -284,7 +284,7 @@ <a name="frappe.sessions.clear_sessions" href="#frappe.sessions.clear_sessions" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> frappe.sessions.<b>clear_sessions</b> - <i class="text-muted">(user=None, keep_current=False)</i> + <i class="text-muted">(user=None, keep_current=False, device=None)</i> </p> <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> </div> diff --git a/frappe/docs/current/api/model/frappe.model.db_query.html b/frappe/docs/current/api/model/frappe.model.db_query.html index 25bc99f50ff094ac3acfa651db19e3cc1b4040f9..f71e6a54c978e3b6c3e40fd1f7aff15620a319fe 100644 --- a/frappe/docs/current/api/model/frappe.model.db_query.html +++ b/frappe/docs/current/api/model/frappe.model.db_query.html @@ -40,6 +40,20 @@ + <p class="docs-attr-name"> + <a name="add_comment_count" href="#add_comment_count" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + <b>add_comment_count</b> + <i class="text-muted">(self, result)</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="add_limit" href="#add_limit" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> @@ -156,7 +170,7 @@ <a name="execute" href="#execute" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> <b>execute</b> - <i class="text-muted">(self, query=None, fields=None, filters=None, or_filters=None, docstatus=None, group_by=None, order_by=None, limit_start=False, limit_page_length=None, as_list=False, with_childnames=False, debug=False, ignore_permissions=False, user=None)</i> + <i class="text-muted">(self, query=None, fields=None, filters=None, or_filters=None, docstatus=None, group_by=None, order_by=None, limit_start=False, limit_page_length=None, as_list=False, with_childnames=False, debug=False, ignore_permissions=False, user=None, with_comment_count=False)</i> </p> <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> </div> diff --git a/frappe/docs/current/api/model/frappe.model.document.html b/frappe/docs/current/api/model/frappe.model.document.html index 970a493bd69eebaef3701af9783fb458a76f725c..73bcd32ea0bd4280ac4f8ee97b04d2ce808c290e 100644 --- a/frappe/docs/current/api/model/frappe.model.document.html +++ b/frappe/docs/current/api/model/frappe.model.document.html @@ -110,7 +110,7 @@ all values (including child documents) from the database.</p> <a name="add_comment" href="#add_comment" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> <b>add_comment</b> - <i class="text-muted">(self, comment_type, text=None, comment_by=None)</i> + <i class="text-muted">(self, comment_type, text=None, comment_by=None, reference_doctype=None, reference_name=None)</i> </p> <div class="docs-attr-desc"><p>Add a comment to this document.</p> @@ -281,9 +281,9 @@ timestamps don't match.</p> <p class="docs-attr-name"> - <a name="get_permlevel_access" href="#get_permlevel_access" class="text-muted small"> + <a name="get_liked_by" href="#get_liked_by" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> - <b>get_permlevel_access</b> + <b>get_liked_by</b> <i class="text-muted">(self)</i> </p> <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> @@ -295,12 +295,12 @@ timestamps don't match.</p> <p class="docs-attr-name"> - <a name="get_signature" href="#get_signature" class="text-muted small"> + <a name="get_permlevel_access" href="#get_permlevel_access" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> - <b>get_signature</b> + <b>get_permlevel_access</b> <i class="text-muted">(self)</i> </p> - <div class="docs-attr-desc"><p>Returns signature (hash) for private URL.</p> + <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> </div> <br> @@ -309,12 +309,12 @@ timestamps don't match.</p> <p class="docs-attr-name"> - <a name="get_starred_by" href="#get_starred_by" class="text-muted small"> + <a name="get_signature" href="#get_signature" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> - <b>get_starred_by</b> + <b>get_signature</b> <i class="text-muted">(self)</i> </p> - <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> + <div class="docs-attr-desc"><p>Returns signature (hash) for private URL.</p> </div> <br> diff --git a/frappe/docs/current/api/utils/frappe.utils.bench_helper.html b/frappe/docs/current/api/utils/frappe.utils.bench_helper.html index c5a73083dff9a9f13312a9d880edd1f5a1740842..28066aa7bac07ba5aef5284847242d74f7d8753b 100644 --- a/frappe/docs/current/api/utils/frappe.utils.bench_helper.html +++ b/frappe/docs/current/api/utils/frappe.utils.bench_helper.html @@ -21,7 +21,7 @@ <a name="frappe.utils.bench_helper.app_group" href="#frappe.utils.bench_helper.app_group" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> frappe.utils.bench_helper.<b>app_group</b> - <i class="text-muted">(ctx, site=False, force=False, verbose=False, profile=False)</i> + <i class="text-muted">()</i> </p> <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> </div> diff --git a/frappe/docs/current/api/utils/frappe.utils.data.html b/frappe/docs/current/api/utils/frappe.utils.data.html index 0198f26d61ab86a64d902b7d7ea8ea8666d12f02..d0b5eabc2e6215fbc81f0f9a88a656e59ccf0b28 100644 --- a/frappe/docs/current/api/utils/frappe.utils.data.html +++ b/frappe/docs/current/api/utils/frappe.utils.data.html @@ -926,6 +926,22 @@ Ported from PrettyDate by John Resig</p> + <p class="docs-attr-name"> + <a name="frappe.utils.data.to_markdown" href="#frappe.utils.data.to_markdown" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + frappe.utils.data.<b>to_markdown</b> + <i class="text-muted">(html)</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.utils.data.to_timedelta" href="#frappe.utils.data.to_timedelta" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> diff --git a/frappe/docs/current/api/website/frappe.website.template.html b/frappe/docs/current/api/website/frappe.website.template.html deleted file mode 100644 index b154b8fc0336f1f5d6188da1f28f463b49059f8f..0000000000000000000000000000000000000000 --- a/frappe/docs/current/api/website/frappe.website.template.html +++ /dev/null @@ -1,131 +0,0 @@ -<!-- title: frappe.website.template --><div class="dev-header"> - -<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;"> - Version 6.x.x</a> - - - <a class="btn btn-default btn-sm" href="https://github.com/frappe/frappe/blob/develop/frappe/website/template.py" - target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a> - -</div> - - - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.add_hero" href="#frappe.website.template.add_hero" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>add_hero</b> - <i class="text-muted">(out, context)</i> - </p> - <div class="docs-attr-desc"><p>Add a hero element if specified in content or hooks. -Hero elements get full page width.</p> -</div> - <br> - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.add_index" href="#frappe.website.template.add_index" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>add_index</b> - <i class="text-muted">(out, context)</i> - </p> - <div class="docs-attr-desc"><p>Add index, next button if <code>{index}</code>, <code>{next}</code> is present.</p> -</div> - <br> - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.build_template" href="#frappe.website.template.build_template" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>build_template</b> - <i class="text-muted">(context)</i> - </p> - <div class="docs-attr-desc"><p>Returns a dict of block name and its rendered content</p> -</div> - <br> - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.render_blocks" href="#frappe.website.template.render_blocks" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>render_blocks</b> - <i class="text-muted">(template_path, out, context)</i> - </p> - <div class="docs-attr-desc"><p>Build the template block by block from the main template.</p> -</div> - <br> - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.separate_style_and_script" href="#frappe.website.template.separate_style_and_script" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>separate_style_and_script</b> - <i class="text-muted">(out, context)</i> - </p> - <div class="docs-attr-desc"><p>Extract <code>style</code> and <code>script</code> tags into separate blocks</p> -</div> - <br> - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.set_breadcrumbs" href="#frappe.website.template.set_breadcrumbs" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>set_breadcrumbs</b> - <i class="text-muted">(out, context)</i> - </p> - <div class="docs-attr-desc"><p>Build breadcrumbs template (deprecated)</p> -</div> - <br> - - - - - - - - <p class="docs-attr-name"> - <a name="frappe.website.template.set_title_and_header" href="#frappe.website.template.set_title_and_header" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - frappe.website.template.<b>set_title_and_header</b> - <i class="text-muted">(out, context)</i> - </p> - <div class="docs-attr-desc"><p>Extract and set title and header from content or context.</p> -</div> - <br> - - - - - -<!-- autodoc --> \ No newline at end of file diff --git a/frappe/docs/current/api/website/index.txt b/frappe/docs/current/api/website/index.txt index 45ac65863878a405585b4c9a828c4904756b4d59..991920d20a2fcfb5f23713f376e8a37ba892346a 100644 --- a/frappe/docs/current/api/website/index.txt +++ b/frappe/docs/current/api/website/index.txt @@ -3,6 +3,5 @@ frappe.website frappe.website.render frappe.website.router frappe.website.statics -frappe.website.template frappe.website.utils frappe.website.website_generator \ No newline at end of file diff --git a/frappe/docs/current/index.html b/frappe/docs/current/index.html index 0ac6840f4f47ebd45645b596648a37f65d434ffd..887376f6b19c4fb8e5bc0842407582f06a2b6772 100644 --- a/frappe/docs/current/index.html +++ b/frappe/docs/current/index.html @@ -35,7 +35,7 @@ Version </td> <td> - <code>6.16.3</code> + <code>6.17.2</code> </td> </tr> </table> diff --git a/frappe/docs/current/models/core/comment.html b/frappe/docs/current/models/core/comment.html index 96eec2e5788776297944e908531f9623f4b8fd8a..182e0ed6ab7a4d4904f7a333db35763a200d520e 100644 --- a/frappe/docs/current/models/core/comment.html +++ b/frappe/docs/current/models/core/comment.html @@ -73,7 +73,8 @@ Comment Workflow Label Attachment -Attachment Removed</pre> +Attachment Removed +Like</pre> </td> </tr> diff --git a/frappe/docs/current/models/core/communication.html b/frappe/docs/current/models/core/communication.html index a754c28889cea24d587a5dcb840e4fb9dfd27706..b89c1b07dcc445555a2d835276d97e5fe1ea0bf1 100644 --- a/frappe/docs/current/models/core/communication.html +++ b/frappe/docs/current/models/core/communication.html @@ -571,20 +571,6 @@ Recipient Unsubscribed</pre> - <p class="docs-attr-name"> - <a name="get_starrers" href="#get_starrers" class="text-muted small"> - <i class="icon-link small" style="color: #ccc;"></i></a> - <b>get_starrers</b> - <i class="text-muted">(self)</i> - </p> - <div class="docs-attr-desc"><p>Return list of users who have starred this document.</p> -</div> - <br> - - - - - <p class="docs-attr-name"> <a name="notify" href="#notify" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> diff --git a/frappe/docs/current/models/core/user.html b/frappe/docs/current/models/core/user.html index 52f57c0ca4308ecd498f32220ad27e242c9f166d..a74b4363990758a4d745e063c60dd723c709a622 100644 --- a/frappe/docs/current/models/core/user.html +++ b/frappe/docs/current/models/core/user.html @@ -1068,9 +1068,9 @@ Website User</pre> <p class="docs-attr-name"> - <a name="send_password_notifcation" href="#send_password_notifcation" class="text-muted small"> + <a name="send_password_notification" href="#send_password_notification" class="text-muted small"> <i class="icon-link small" style="color: #ccc;"></i></a> - <b>send_password_notifcation</b> + <b>send_password_notification</b> <i class="text-muted">(self, new_password)</i> </p> <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> @@ -1595,8 +1595,6 @@ The mentions will be separated by non-word characters or may appear at the start - - diff --git a/frappe/docs/current/models/desk/feed.html b/frappe/docs/current/models/desk/feed.html index 827a680734745dd487f9d8f2bf5f180e2083130b..1c834c4268bd3f1be1411e83a3d177aa43cdc51d 100644 --- a/frappe/docs/current/models/desk/feed.html +++ b/frappe/docs/current/models/desk/feed.html @@ -52,7 +52,8 @@ Comment Login Label -Info</pre> +Info +Like</pre> </td> </tr> @@ -116,6 +117,55 @@ Info</pre> <td></td> </tr> + <tr > + <td>7</td> + <td ><code>doc_owner</code></td> + <td > + Data</td> + <td > + Doc Owner + + </td> + <td></td> + </tr> + + <tr > + <td>8</td> + <td ><code>seen</code></td> + <td > + Check</td> + <td > + Seen + + </td> + <td></td> + </tr> + + <tr > + <td>9</td> + <td ><code>reference_doctype</code></td> + <td > + Data</td> + <td > + Reference DocType + <p class="text-muted small"> + Use this to provide alternative link to a feed record</p> + </td> + <td></td> + </tr> + + <tr > + <td>10</td> + <td ><code>reference_name</code></td> + <td > + Data</td> + <td > + Reference Name + + </td> + <td></td> + </tr> + </tbody> </table> @@ -138,6 +188,20 @@ Info</pre> </div> <div style="padding-left: 30px;"> + + + + <p class="docs-attr-name"> + <a name="validate" href="#validate" class="text-muted small"> + <i class="icon-link small" style="color: #ccc;"></i></a> + <b>validate</b> + <i class="text-muted">(self)</i> + </p> + <div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p> +</div> + <br> + + </div> <hr>