def add(self, kudo=None, **kwargs): if not kudo: email_from = kwargs.get('email_from') email_to = kwargs.get('email_to') message = kwargs.get('message') kudo = Kudo( email_from=email_from, email_to=email_to, message=message) return kudo.put()
def get(self, identifier): return Kudo.get_by_id(identifier)
def all(self): return Kudo.query().order(-Kudo.created_at).fetch(limit=100)