func (e *Entries) Uninstall(o iface.Document, resource string) error { upd := map[string]interface{}{ "$pull": map[string]interface{}{ "Hooks." + resource + "TopModFilter": []interface{}{"meeting.entries", "TopModFilter"}, }, } return o.Update(upd) }
func (c *C) Uninstall(o iface.Document, resource string) error { upd := map[string]interface{}{ "$pull": map[string]interface{}{ "Hooks.fkidTypeHandler": "fkid", }, } return o.Update(upd) }
func (C *C) Uninstall(o iface.Document, resource string) error { upd := map[string]interface{}{ "$set": map[string]interface{}{ "nouns." + resource + ".verbs.Execute.input": 1, }, } return o.Update(upd) }
func (tt *TimeTable) Uninstall(o iface.Document, resource string) error { upd := map[string]interface{}{ "$pull": map[string]interface{}{ "Hooks." + resource + "TopModFilter": []interface{}{"meeting.timeTable", "TopModFilter"}, "Hooks.AddTemplateBuiltin": []interface{}{"meeting.timeTable"}, }, } return o.Update(upd) }
func (c *C) Uninstall(o iface.Document, s string) error { upd := map[string]interface{}{ "$pull": map[string]interface{}{ fmt.Sprintf("Hooks.%vInserted", s): []interface{}{"fulltext", "SaveFulltext"}, fmt.Sprintf("Hooks.%vUpdated", s): []interface{}{"fulltext", "SaveFulltext"}, "Hooks.ProcessQuery": "fulltext", }, } return o.Update(upd) }
func (c *C) Uninstall(o iface.Document, resource string) error { upd := map[string]interface{}{ "$pull": map[string]interface{}{ "Hooks.SanitizerMangler": "file", "Hooks.fileTypeHandler": []interface{}{ "file", "FileTypeHandler", }, }, } return o.Update(upd) }
func (tt *TimeTable) Install(o iface.Document, resource string) error { upd := map[string]interface{}{ "$addToSet": map[string]interface{}{ "Hooks." + resource + "TopModFilter": []interface{}{"meeting.timeTable", "TopModFilter"}, "Hooks.AddTemplateBuiltin": []interface{}{"meeting.timeTable"}, }, "$set": map[string]interface{}{ "nouns." + resource + ".verbs.Save.input": map[string]interface{}{ "timeTable": map[string]interface{}{ "type": "any", "slice": true, "must": true, }, }, }, } return o.Update(upd) }