'Sets entry object\'s entry data'

@api.validate(model=base_entry_schema)
@api.response(201, model=entry_list_entry_base_schema)
@api.doc(description=u'Sent    entry    data    will    override    any    existing    entry    data    the    existed    before')
def put(self, list_id, entry_id, session=None):

    try:
        entry = el.get_entry_by_id(list_id=list_id, entry_id=entry_id, session=session)
    except NoResultFound:
        raise NotFoundError((u'could    not    find    entry    with    id    %d    in    list    %d' % (entry_id, list_id)))
    data = request.json
    entry.entry = data
    if data.get(u'title'):
        entry.title = data[u'title']
    if data.get(u'original_url'):
        entry.original_url = data[u'original_url']
    session.commit()
    resp = jsonify(entry.to_dict())
    resp.status_code = 201
    return resp
