Fixed bug accessing ListField (BaseList) with negative indices
If you __setitem__ in BaseList with a negative index and then try to save this, you will get an error like: OperationError: Could not save document (cannot use the part (shape of signal.shape.-1) to traverse the element ({shape: [ 0 ]})). To fix this I rectify negative list indices in BaseList _mark_as_changed as the appropriate positive index. This fixes the above error.
			
			
This commit is contained in:
		
				
					committed by
					
						 Joshua Nedrud
						Joshua Nedrud
					
				
			
			
				
	
			
			
			
						parent
						
							3b1509f307
						
					
				
				
					commit
					00430491ca
				
			| @@ -11,6 +11,7 @@ Changes in 0.10.7 - DEV | ||||
| - count on ListField of EmbeddedDocumentField fails. #1187 | ||||
| - Fixed long fields stored as int32 in Python 3. #1253 | ||||
| - MapField now handles unicodes keys correctly. #1267 | ||||
| - ListField now handles negative indicies correctly. #1270 | ||||
|  | ||||
| Changes in 0.10.6 | ||||
| ================= | ||||
|   | ||||
		Reference in New Issue
	
	Block a user