bug fix: handle missing value (None) on list field
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3189 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									568db74667
								
							
						
					
					
						commit
						b773f21b54
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -306,6 +306,8 @@ class ListFieldInstance(FieldInstance): | ||||||
|         #return [self.valueFieldInstance.marshall(v) for v in value] |         #return [self.valueFieldInstance.marshall(v) for v in value] | ||||||
| 
 | 
 | ||||||
|     def display(self, value): |     def display(self, value): | ||||||
|  |         if not value: | ||||||
|  |             return u'' | ||||||
|         if isinstance(value, basestring): |         if isinstance(value, basestring): | ||||||
|             return value |             return value | ||||||
|         return u' | '.join(self.valueFieldInstance.display(v) for v in value) |         return u' | '.join(self.valueFieldInstance.display(v) for v in value) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm