Пример #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)