Example #1
0
def update(pk, title=_sentinel, description=_sentinel, is_public=_sentinel):
    fields = filter_default_arguments(**locals())
    obj = todo_repo.update(**fields)

    if obj:
        return create_entity(obj=obj)
    return None
Example #2
0
def update(pk, title=_sentinel, is_archived=_sentinel, is_completed=_sentinel,
           due_date=_sentinel, reminder=_sentinel):
    fields = filter_default_arguments(**locals())
    obj = task_repo.update(**fields)

    if obj:
        return _create_entity(obj=obj)
    return None
Example #3
0
def update(pk,
           title=_sentinel,
           is_archived=_sentinel,
           is_completed=_sentinel,
           due_date=_sentinel,
           reminder=_sentinel):
    fields = filter_default_arguments(**locals())
    obj = task_repo.update(**fields)

    if obj:
        return _create_entity(obj=obj)
    return None