예제 #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)
예제 #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)
예제 #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)
예제 #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)