Server side methods for the follower pattern (Follow button used in forms)
Send an email to all followers of this object
Add as follower to a particular record. If no parameteres, then take from the http request (form)
returns a list of all profile link fields from the doctype
Check to see if the user has permission to follow
returns list of followers (Full Names) for a particular object
Server side handler for “Form” events
Loads a doclist for a given document. This method is called directly from the client. Requries “doctype”, “docname” as form variables. If “from_archive” is set, it will get from archive. Will also call the “onload” method on the document.
returns the full rendered index.cgi Gets keywords and site_description from the Control Panel
Gets the HTML content of a document record by using the overridden or standard :method: doclist.to_html
Gets the HTML content from static_content or content property of a Page
HTML Template of index.cgi
Server side functions for tagging.
Discussion:
Tags are shown in the docbrowser and ideally where-ever items are searched. There should also be statistics available for tags (like top tags etc)
Design:
Tags for a particular doctype
add a new user tag
returns tag_fields property
returns tag for a particular item
remove a user tag
adds the _user_tags column if not exists
creates the tabTag table if not exists
updates the _user_tag column in the table
Tag Counter stores tag count per doctype in table _tag_cnt
Builds / rebuilds the counting
Creates a new row for the tag and doctype
creates the tag cnt table from the DocType
updates tag cnt for a doctype and tag
adds a new tag to a record, and creates the Tag master
if the user does not have a tags column, then it creates one
returns the top 10 tags for the doctype from fields (7) and users (3)
removes tag from the record