Exemplo n.º 1
0
//Delete deletes a TimeConfig from Datastore, emptying its Key field.
func (tc *TimeConfig) Delete(c appengine.Context) (err error) {
	err = gaemodel.Delete(c, tc)
	if err != nil {
		return
	}

	err = config.UpdateTimestamp(c)
	return
}
Exemplo n.º 2
0
func (a *Activation) Delete(c appengine.Context) (err error) {
	gaemodel.Delete(c, a)
	if err != nil {
		return
	}

	a.SetKey(nil)

	return
}
Exemplo n.º 3
0
//Delete deletes the presentation record from Datastore and
//its data file from Blobstore.
func (p *Presentation) Delete(c appengine.Context) (err error) {
	err = action.DeleteFor(p, c)
	if err != nil {
		return
	}

	err = gaemodel.Delete(c, p)
	if err != nil {
		return
	}

	err = blobstore.Delete(c, p.BlobKey)
	return
}