use field (col) instead of renderer name for getColumnRenderer() call
This commit is contained in:
		
							parent
							
								
									008d932184
								
							
						
					
					
						commit
						01a5396bd5
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -104,5 +104,6 @@ class ResultsView(NodeView): | ||||||
|     def displayedColumns(self): |     def displayedColumns(self): | ||||||
|         return self.reportInstance.getActiveOutputFields() |         return self.reportInstance.getActiveOutputFields() | ||||||
| 
 | 
 | ||||||
|     def getColumnRenderer(self, name): |     def getColumnRenderer(self, col): | ||||||
|         return self.result_macros[name] |         return self.result_macros[col.renderer] | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -24,13 +24,13 @@ | ||||||
|     </tr> |     </tr> | ||||||
|     <tr tal:repeat="row results"> |     <tr tal:repeat="row results"> | ||||||
|         <tal:column repeat="col results/displayedColumns"> |         <tal:column repeat="col results/displayedColumns"> | ||||||
|             <metal:column use-macro="python:view.getColumnRenderer(col.renderer)" /> |             <metal:column use-macro="python:view.getColumnRenderer(col)" /> | ||||||
|         </tal:column> |         </tal:column> | ||||||
|     </tr> |     </tr> | ||||||
|     <tr tal:define="row nocall:results/totals" |     <tr tal:define="row nocall:results/totals" | ||||||
|         tal:condition="nocall:row"> |         tal:condition="nocall:row"> | ||||||
|         <tal:column repeat="col results/displayedColumns"> |         <tal:column repeat="col results/displayedColumns"> | ||||||
|             <metal:column use-macro="python:view.getColumnRenderer(col.renderer)" /> |             <metal:column use-macro="python:view.getColumnRenderer(col)" /> | ||||||
|         </tal:column> |         </tal:column> | ||||||
|     </tr> |     </tr> | ||||||
|   </table> |   </table> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue