Ejemplo n.º 1
0
def delete_user(key=None, user_id=None):
    if key:
        return service.User.get_by_key_name(key).delete()
    if user_id:
        return service.delete_from(service.User, user_id=user_id)
Ejemplo n.º 2
0
def delete_user(key=None, user_id=None):
    if key:
        return service.User.get_by_key_name(key).delete()
    if user_id:
        return service.delete_from(service.User, user_id=user_id)
Ejemplo n.º 3
0
def delete_tag(key=None, name=None):
    if key:
        return service.Tag.get_by_key_name(key).delete()
    if name:
        return service.delete_from(service.Tag, name=name)
Ejemplo n.º 4
0
def delete_tag(key=None, name=None):
    if key:
        return service.Tag.get_by_key_name(key).delete()
    if name:
        return service.delete_from(service.Tag, name=name)