| *** fdrake has quit IRC | 00:57 | |
| *** LeoRochael has quit IRC | 01:08 | |
| *** JaRoel|4D has joined #zodb | 01:14 | |
| *** LeoRochael has joined #zodb | 01:22 | |
| *** LeoRochael has quit IRC | 01:38 | |
| *** nueces has joined #zodb | 05:21 | |
| *** nueces has quit IRC | 07:18 | |
| *** agroszer has joined #zodb | 08:47 | |
| *** srichter has quit IRC | 10:55 | |
| *** srichter has joined #zodb | 10:55 | |
| *** JaRoel|4D has quit IRC | 12:18 | |
| *** JaRoel|4D has joined #zodb | 12:47 | |
| *** LeoRochael has joined #zodb | 14:22 | |
| *** agroszer has quit IRC | 15:00 | |
| *** fdrake has joined #zodb | 16:04 | |
| *** goschtl has joined #zodb | 17:16 | |
| goschtl | hi i have a script running against the zodb. i iterarte through a folder structure and rename a subset of the folders, the strange thing is that the script does not take all folders of the subset. it seems that it takes alwas more or less 50 %. for example subset = 100 folders, first run 50 folders are renamed, sendond run 25 folders are renamed etc… maybe someone has an idea why this happens | 17:19 |
|---|---|---|
| goschtl | here is the script | 17:19 |
| goschtl | http://pastie.org/8474881 | 17:19 |
| fdrake | You're moving input out from under the iterator, so you're skipping every other entry in the input. | 17:28 |
| fdrake | Change "for mnr, folder in members.items()" to "for mnr, folder in list(members.items())". | 17:29 |
| goschtl | fdrake: thanks i try it out | 17:34 |
| goschtl | it runs... | 17:35 |
| goschtl | fdrake: thanks you are right this was the issue i owe you a beer…. | 17:45 |
| * fdrake likes beer... thanks! | 17:51 | |
| *** goschtl has quit IRC | 18:36 | |
| *** LeoRochael has quit IRC | 19:55 | |
| *** LeoRochael has joined #zodb | 20:06 | |
| *** srichter has quit IRC | 20:35 | |
| *** srichter has joined #zodb | 21:10 | |
| *** LeoRochael has quit IRC | 22:28 | |
| *** JaRoel|4D has quit IRC | 23:38 | |
| *** JaRoel|4D has joined #zodb | 23:39 | |
| *** JaRoel|4D has quit IRC | 23:44 | |
| *** JaRoel|4D has joined #zodb | 23:57 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!