Commits

Anonymous committed f88c125

Move Pylons import into method so that unittests pass.

  • Participants
  • Parent commits 23799ba

Comments (0)

Files changed (1)

File webhelpers/pylonslib/grid.py

-from pylons import request, url
 from webhelpers.html.builder import HTML, literal
 import webhelpers.html.grid as grid
 
 class GridPylons(grid.Grid):
     
     def generate_header_link(self, column_number, column, label_text):
+        from pylons import request, url
+
         # this will handle possible URL generation
         if not hasattr(self, "request"):
             raise NoRequestException(