IRC log of #zodb for Tuesday, 2013-11-12

*** fdrake has quit IRC00:57
*** LeoRochael has quit IRC01:08
*** JaRoel|4D has joined #zodb01:14
*** LeoRochael has joined #zodb01:22
*** LeoRochael has quit IRC01:38
*** nueces has joined #zodb05:21
*** nueces has quit IRC07:18
*** agroszer has joined #zodb08:47
*** srichter has quit IRC10:55
*** srichter has joined #zodb10:55
*** JaRoel|4D has quit IRC12:18
*** JaRoel|4D has joined #zodb12:47
*** LeoRochael has joined #zodb14:22
*** agroszer has quit IRC15:00
*** fdrake has joined #zodb16:04
*** goschtl has joined #zodb17:16
goschtlhi 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 happens17:19
goschtlhere is the script17:19
goschtlhttp://pastie.org/847488117:19
fdrakeYou're moving input out from under the iterator, so you're skipping every other entry in the input.17:28
fdrakeChange "for mnr, folder in members.items()" to "for mnr, folder in list(members.items())".17:29
goschtlfdrake: thanks i try it out17:34
goschtlit runs...17:35
goschtlfdrake: thanks you are right this was the issue i owe you  a beer….17:45
* fdrake likes beer... thanks!17:51
*** goschtl has quit IRC18:36
*** LeoRochael has quit IRC19:55
*** LeoRochael has joined #zodb20:06
*** srichter has quit IRC20:35
*** srichter has joined #zodb21:10
*** LeoRochael has quit IRC22:28
*** JaRoel|4D has quit IRC23:38
*** JaRoel|4D has joined #zodb23:39
*** JaRoel|4D has quit IRC23:44
*** JaRoel|4D has joined #zodb23:57

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!