object creation: take type options from object to be created
This commit is contained in:
		
							parent
							
								
									5ffb1edfbc
								
							
						
					
					
						commit
						7b0fe5aaf2
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -688,6 +688,11 @@ class BaseView(GenericView, I18NView, SortableMixin): | ||||||
|     def typeOptions(self): |     def typeOptions(self): | ||||||
|         if self.typeProvider is None: |         if self.typeProvider is None: | ||||||
|             return DummyOptions() |             return DummyOptions() | ||||||
|  |         if getattr(self.adapted, '__is_dummy__', None): | ||||||
|  |             typeToken = getattr(self, 'typeToken', None) | ||||||
|  |             if typeToken is not None: | ||||||
|  |                 typeProvider = self.loopsRoot.loopsTraverse(typeToken) | ||||||
|  |                 return IOptions(adapted(typeProvider)) | ||||||
|         return IOptions(adapted(self.typeProvider)) |         return IOptions(adapted(self.typeProvider)) | ||||||
| 
 | 
 | ||||||
|     @Lazy |     @Lazy | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue