allow executing of reports on loops root object (no type options)
This commit is contained in:
		
							parent
							
								
									7c6145ca03
								
							
						
					
					
						commit
						598b2cc7b8
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -31,6 +31,7 @@ from loops.browser.concept import ConceptView | ||||||
| from loops.browser.node import NodeView | from loops.browser.node import NodeView | ||||||
| from loops.common import adapted, AdapterBase | from loops.common import adapted, AdapterBase | ||||||
| from loops.expert.report import IReportInstance | from loops.expert.report import IReportInstance | ||||||
|  | from loops.interfaces import IConcept | ||||||
| from loops.organize.personal.browser.filter import FilterView | from loops.organize.personal.browser.filter import FilterView | ||||||
| from loops.security.common import canWriteObject, checkPermission | from loops.security.common import canWriteObject, checkPermission | ||||||
| from loops import util | from loops import util | ||||||
|  | @ -171,6 +172,7 @@ class ResultsConceptView(ConceptView): | ||||||
| 
 | 
 | ||||||
|     @Lazy |     @Lazy | ||||||
|     def reportType(self): |     def reportType(self): | ||||||
|  |         if IConcept.providedBy(self.context): | ||||||
|             return (self.getOptions('report_type') or [None])[0] |             return (self.getOptions('report_type') or [None])[0] | ||||||
| 
 | 
 | ||||||
|     @Lazy |     @Lazy | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue