A Dilluns, 28 de setembre de 2009, forum-u...@tinyerp.org va escriure: > Hello, > > I went a little bit deeper in the problem I've with the 5.0.6. So, I've > seen than in 1 module, you have the following function : > > for c in xrange(len(src_chars)): > output = output.replace( src_chars[c], dst_chars[c] ) > > the problem is that the in my case, the value of c is 77. Then variable > src_chars contains only 76 chars which are : > > src_chars = > """à áÀâÃÃÃÃÚéëêÃÃÃÃìÃïîÃÃÃÃòóöÎÃÃÃÃùúÌà > »ÃÃÃÃçñºª·€ '"()/*-+?!&$[...@#`'^:;<>=~\%\\""" > > So, when the system arrives at the position 77, the system crashes with the > following message : IndexError: string index out of range > > So, for the while, I just changed the line for c in xrange(len(src_chars)): > by for c in xrange(len(src_chars)-1): > to allow me going on with my testing. I dont know if Albertca can confirm > my problem....
I don't see why should have anything to do with version 5.0.6, and it's strange it crashes for you. It seems to be working for most people and it's a pretty simple piece of code. Are you sure you're using latest version? > > thanks > > > > > -------------------- m2f -------------------- > > -- > http://www.openobject.com/forum/viewtopic.php?p=44440#44440 > > -------------------- m2f -------------------- > -- Albert Cervera i Areny http://www.NaN-tic.com Mòbil: +34 669 40 40 18 _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users