Do not render links in checkbox columns

Review Request #7487 — Created July 3, 2015 and submitted

Information

Djblets
release-0.9.x
0078e83...

Reviewers

Cell rendering in DataGrid columns has been updated to allow the cell
to override the DataGrid's choice of cell template. This allows the
the CheckboxColumn to render without links, which would previously
activate when checked.

Tested the change with Review Board. There were no links in the
dashboard's checkboxes. Checking the checkbox did not redirect before
and after switching into mobile mode.

Description From Last Updated

local variable 'datagrid' is assigned to but never used

reviewbotreviewbot

This is pretty lengthy, in terms of line count. Can you format like: state.blah = \ self.renderblah(...)

chipx86chipx86

Careful. The render context should be shared amongst all cells, as an optimization (with a standard RequestContext, it'd rebuild bits …

chipx86chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/datagrid/grids.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/datagrid/grids.py
    
    
  2. djblets/datagrid/grids.py (Diff revision 1)
     
     
    Show all issues
     local variable 'datagrid' is assigned to but never used
    
  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/datagrid/grids.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/datagrid/grids.py
    
    
  2. 
      
chipx86
  1. 
      
  2. djblets/datagrid/grids.py (Diff revision 2)
     
     
     
     
    Show all issues

    This is pretty lengthy, in terms of line count. Can you format like:

    state.blah = \
        self.renderblah(...)
    
  3. djblets/datagrid/grids.py (Diff revision 2)
     
     
     
    Show all issues

    Careful. The render context should be shared amongst all cells, as an optimization (with a standard RequestContext, it'd rebuild bits for every cell, which was slow).

    Maybe instead of all this, we just change the template for those cells?

  4. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/datagrid/grids.py
    
    Ignored Files:
        djblets/datagrid/templates/datagrid/cell_no_link.html
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/datagrid/grids.py
    
    Ignored Files:
        djblets/datagrid/templates/datagrid/cell_no_link.html
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.9.x (3381f1d)