Version 6.x.x Source

Class DocTags

Tags for a particular doctype

__init__ (self, dt)

No docs


add (self, dn, tag)

add a new user tag


get_tag_fields (self)

returns tag_fields property


get_tags (self, dn)

returns tag for a particular item


remove (self, dn, tag)

remove a user tag


remove_all (self, dn)

remove all user tags (call before delete)


setup (self)

adds the usertags column if not exists


update (self, dn, tl)

updates the usertag column in the table



Public API
/api/method/frappe.desk.tags.add_tag

frappe.desk.tags.add_tag ()

adds a new tag to a record, and creates the Tag master


frappe.desk.tags.check_user_tags (dt)

if the user does not have a tags column, then it creates one


Public API
/api/method/frappe.desk.tags.get_tags

frappe.desk.tags.get_tags (doctype, txt)

No docs


Public API
/api/method/frappe.desk.tags.remove_tag

frappe.desk.tags.remove_tag ()

removes tag from the record