escape linefeeds in grid fields
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3011 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									720dda3627
								
							
						
					
					
						commit
						f47bad94bb
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -62,8 +62,9 @@ class GridFieldInstance(ListFieldInstance): | |||
|         # TODO: marshall values! | ||||
|         v = value or [] | ||||
|         for row in v: | ||||
|             for k in row: | ||||
|                 row[k] = row[k].replace('\n', '\\n') | ||||
|             for k, v in row.items(): | ||||
|                 if isinstance(v, basestring): | ||||
|                     row[k] = v.replace('\n', '\\n') | ||||
|         empty = {} | ||||
|         for fi in self.columnFieldInstances: | ||||
|             default = fi.default | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm