Esempio n. 1
0
func GetForPresentation(p *datastore.Key, c appengine.Context) (as []*Activation, err error) {
	is, err := gaemodel.GetByAncestor(c, typ, "Activation", p)
	if err != nil {
		return
	}
	as = is.([]*Activation)
	return
}
Esempio n. 2
0
//GetFor returns a slice containing all the Actions for a given Model.
func GetFor(m gaemodel.Model, c appengine.Context) (as []*Action, err error) {
	is, err := gaemodel.GetByAncestor(c, typ, "Action", m.Key())
	if err != nil {
		return
	}
	as = is.([]*Action)
	return
}