'Inline edit handler.
Showing form or handling update by POST of the cell.'

def inline_edit_handle(self, request, table_name, action_name, obj_id, new_row):

    try:
        cell_name = request.GET['cell_name']
        datum = new_row.get_data(request, obj_id)
        if (request.GET.get('inline_edit_mod') == 'true'):
            new_row.table.columns[cell_name].auto = 'form_field'
            inline_edit_mod = True
        else:
            inline_edit_mod = False
        new_row.load_cells(datum)
        cell = new_row.cells[cell_name]
        cell.inline_edit_mod = inline_edit_mod
        if (not cell.update_allowed):
            datum_display = (self.get_object_display(datum) or 'N/A')
            LOG.info('Permission    denied    to    Update    Action:    "%s"', datum_display)
            return HttpResponse(status=401)
        if (request.method == 'POST'):
            return self.inline_update_action(request, datum, cell, obj_id, cell_name)
        error = False
    except Exception:
        datum = None
        error = exceptions.handle(request, ignore=True)
    if request.is_ajax():
        if (not error):
            return HttpResponse(cell.render())
        else:
            return HttpResponse(status=error.status_code)
