Beispiel #1
0
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)
}
Beispiel #2
0
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)
}
Beispiel #3
0
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)
}
Beispiel #4
0
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)
}
Beispiel #5
0
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)
}
Beispiel #6
0
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)
}
Beispiel #7
0
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)
}