handle non-string values correctly
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3607 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									47bb6fd666
								
							
						
					
					
						commit
						540fd2a79d
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -126,7 +126,10 @@ class RecordsFieldInstance(GridFieldInstance):
 | 
			
		|||
            item = {}
 | 
			
		||||
            empty = True
 | 
			
		||||
            for fi in self.columnFieldInstances:
 | 
			
		||||
                value = fi.unmarshall(row[fi.name].strip())
 | 
			
		||||
                value = row[fi.name]
 | 
			
		||||
                if isinstance(value, basestring):
 | 
			
		||||
                    value = value.strip()
 | 
			
		||||
                value = fi.unmarshall(value)
 | 
			
		||||
                item[fi.name] = value
 | 
			
		||||
                if fi.default is not None:
 | 
			
		||||
                    if value and value != fi.default:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue