IRC log of #zope3-dev for Monday, 2009-01-05

*** __mac__ has quit IRC00:04
*** hexsprite has joined #zope3-dev00:27
*** afd____ has joined #zope3-dev00:29
*** afd___ has quit IRC00:35
*** malthe is now known as malthe|Zzz00:50
*** harobed has quit IRC00:54
*** afd____ has quit IRC01:32
*** aaronv has quit IRC01:33
*** nyo1 has quit IRC01:42
*** natea has quit IRC02:11
*** hazmat has quit IRC03:07
*** andycat has joined #zope3-dev03:08
*** hazmat has joined #zope3-dev03:35
*** ChanServ sets mode: +o hazmat03:35
*** aaronv has joined #zope3-dev03:59
*** aaronv has quit IRC04:09
*** yota has quit IRC05:12
*** nyo1 has joined #zope3-dev05:34
*** nyo1 has quit IRC05:50
*** greenman has quit IRC06:06
*** davisagli has quit IRC06:57
*** davisagli has joined #zope3-dev06:58
*** tarek_ has quit IRC07:01
*** binseer has joined #zope3-dev07:03
*** davisagli has quit IRC07:04
*** davisagli has joined #zope3-dev07:05
*** jayaraj has joined #zope3-dev07:06
*** fairwinds has quit IRC07:13
*** davisagli has left #zope3-dev07:30
*** baijum has joined #zope3-dev07:49
*** stub has joined #zope3-dev08:11
*** greenman has joined #zope3-dev08:22
*** greenman has quit IRC08:23
*** harobed has joined #zope3-dev08:28
*** agroszer has joined #zope3-dev08:44
*** JaRoel|4D has quit IRC09:05
*** olavgg has joined #zope3-dev09:12
*** harobed has quit IRC09:12
*** stub1 has joined #zope3-dev09:15
*** stub has quit IRC09:15
*** stub1 is now known as stub09:15
*** afd____ has joined #zope3-dev09:25
*** agroszer has quit IRC09:56
*** pelle_ has joined #zope3-dev10:00
*** harobed has joined #zope3-dev10:01
*** JaRoel|4D has joined #zope3-dev10:02
*** hipertracker has joined #zope3-dev10:12
*** stub has quit IRC10:13
*** mkerrin has joined #zope3-dev10:16
*** jpcw has joined #zope3-dev10:27
*** Theuni has joined #zope3-dev10:29
*** Theuni1 has quit IRC10:29
*** Theuni1 has joined #zope3-dev10:32
*** Theuni has quit IRC10:32
*** bigkevmcd has joined #zope3-dev10:37
*** harobed has quit IRC10:38
*** stub has joined #zope3-dev10:39
*** regebro has joined #zope3-dev10:44
*** greenman has joined #zope3-dev10:45
*** JaRoel|4_ has joined #zope3-dev10:56
*** olavgg has quit IRC10:57
*** olavgg has joined #zope3-dev10:58
*** MJ has joined #zope3-dev11:03
*** afd____ has quit IRC11:04
*** junkafarian has joined #zope3-dev11:07
*** JaRoel|4D has quit IRC11:12
*** harobed has joined #zope3-dev11:13
*** goschtl has joined #zope3-dev11:24
*** Theuni1 has quit IRC11:26
*** Theuni has joined #zope3-dev11:26
*** thekryz has joined #zope3-dev11:31
*** thekryz has quit IRC11:36
*** ktwilight__ has joined #zope3-dev11:41
*** ktwilight__ has quit IRC11:44
*** ktwilight__ has joined #zope3-dev11:44
*** malthe|Zzz is now known as malthe11:44
*** junkafarian has quit IRC11:45
*** ktwilight__ is now known as ktwilight11:46
*** pyqwer has joined #zope3-dev11:48
*** afd__ has joined #zope3-dev11:49
*** yotaff has joined #zope3-dev11:50
*** reco has joined #zope3-dev11:50
*** ktwilight_ has quit IRC11:57
*** Rolando has joined #zope3-dev11:57
*** junkafarian has joined #zope3-dev11:57
*** JaRoel|4_ has quit IRC12:14
*** JaRoel|4D has joined #zope3-dev12:20
*** MJ has quit IRC12:29
*** MJ has joined #zope3-dev12:30
*** JaRoel|4D has quit IRC12:35
*** stub has quit IRC12:50
*** stub1 has joined #zope3-dev12:50
*** stub1 is now known as stub12:51
*** aaronv has joined #zope3-dev12:58
*** JaRoel|4D has joined #zope3-dev13:03
*** dunny has quit IRC13:10
*** dunny has joined #zope3-dev13:11
*** andycat has quit IRC13:16
*** greenman has quit IRC13:18
*** danfairs has joined #zope3-dev13:18
*** andycat has joined #zope3-dev13:19
*** MJ has quit IRC13:24
*** dunny has quit IRC13:25
*** MJ has joined #zope3-dev13:25
*** iham|away has quit IRC13:29
*** alga has joined #zope3-dev13:38
*** tarek has joined #zope3-dev13:42
*** JaRoel|4D has quit IRC13:43
*** afd__ has quit IRC13:49
*** danfairs has quit IRC13:49
*** danfairs has joined #zope3-dev13:49
*** tarek has quit IRC14:00
*** JaRoel|4D has joined #zope3-dev14:29
*** timte has joined #zope3-dev14:31
*** baijum has quit IRC14:36
*** tarek has joined #zope3-dev14:43
*** fairwinds has joined #zope3-dev14:44
*** stub has quit IRC14:45
*** rocky has quit IRC14:46
*** iham has joined #zope3-dev14:56
*** reco has quit IRC15:04
*** menesis has joined #zope3-dev15:08
*** benji has joined #zope3-dev15:19
*** reco has joined #zope3-dev15:19
*** J1m has joined #zope3-dev15:51
*** mgedmin has joined #zope3-dev15:56
*** ignas has joined #zope3-dev15:58
*** srichter has quit IRC16:00
*** mgedmin has quit IRC16:01
*** jamur2 has joined #zope3-dev16:02
*** mgedmin has joined #zope3-dev16:07
*** alga_ has joined #zope3-dev16:13
*** menesis has quit IRC16:13
*** alga has quit IRC16:13
pyqwerHi, does anyone know if it's allowed to store a normal list into a session object (persistent session data container)?16:14
pyqwerI do something like this: mysession['mylist'].append('xyz'); mysession['mylist'].append('abc')16:15
*** lurkymclurkleton has joined #zope3-dev16:16
pyqwerAn I have a page template that displays this list - what's weird is, that the second entry is not always displayed, if I hit the reload button.16:16
*** menesis_ has joined #zope3-dev16:16
*** menesis_ has quit IRC16:18
*** sp0cksbeard has joined #zope3-dev16:24
*** srichter has joined #zope3-dev16:24
*** LordOSipan has joined #zope3-dev16:24
*** andycat has quit IRC16:26
*** dunny has joined #zope3-dev16:26
*** mgedmin_ has joined #zope3-dev16:29
*** thekryz has joined #zope3-dev16:30
*** mgedmin has quit IRC16:30
thekryzwow16:33
*** thekryz has quit IRC16:35
*** lucielejard has joined #zope3-dev16:49
*** goschtl has quit IRC16:49
*** nyo1 has joined #zope3-dev16:56
*** iham is now known as iham|away17:00
*** Theuni has quit IRC17:00
*** rocky has joined #zope3-dev17:01
*** timte has quit IRC17:01
*** Aiste has joined #zope3-dev17:04
*** __mac__ has joined #zope3-dev17:06
*** projekt01 has joined #zope3-dev17:06
*** timte has joined #zope3-dev17:10
*** jayaraj has quit IRC17:14
*** binseer has quit IRC17:14
*** __mac__ has quit IRC17:17
*** srichter has quit IRC17:25
*** rocky has quit IRC17:26
*** rocky has joined #zope3-dev17:27
*** srichter has joined #zope3-dev17:28
*** nyo1 has quit IRC17:33
*** MJ has quit IRC17:39
*** nathany has joined #zope3-dev17:39
*** mgedmin_ is now known as mgedmin17:56
*** projekt01 has quit IRC18:00
*** davisagli has joined #zope3-dev18:05
*** Rolando has quit IRC18:23
*** sp0cksbeard has quit IRC18:23
*** hipertracker has quit IRC18:24
*** harobed has quit IRC18:29
*** rmarianski has joined #zope3-dev18:30
*** davisagli has quit IRC18:38
*** nyo1 has joined #zope3-dev18:49
*** sunew has joined #zope3-dev18:49
*** nyo1 has quit IRC18:59
*** malthe is now known as malthe|away19:01
mcdoncpyqwer: you want to do instead19:06
mcdoncL = mysession.get('mylist', []); L.append('xyz'); mysession['mylist'] = L19:07
mcdonce.g. make sure the session object's __setitem__ is called19:07
*** JaRoel|4D has quit IRC19:11
pyqwermcdonc: Hmmm, but where's the difference to mysession.setdefault ?19:11
mcdoncbecause with setdefault you mutate it after you set it19:12
mcdoncyou need to call __setitem__ after every mutation19:12
pyqwerAh, I see.19:12
mcdonc(for nonpersistent mutable objects)19:12
pyqwerAnd if I use PersistentList instead, I don't have this problem, right?19:12
mcdoncright19:14
pyqwerWhat I furthermore wonder is, that there's a difference between a normal page load and a page reload, any clue why that happens?19:14
mcdoncpage?19:14
pyqwer(So, if you just enter the URL in the browser and press <enter>, in comparison to pressing the reload button)19:14
mcdoncwhat about it?19:15
pyqwerIn my example, I did something like that: mysession['mylist'] = []; mysession['mylist'].append('A'), mysession['mylist'].append('B'), mysession['mylist'].append('C').19:16
pyqwer(Which is not allowed as __setitem__ is not called, I assume).19:16
pyqwerNevertheless, when I afterwards do a page load and display the list contents, it looks good.19:16
mcdoncoh19:16
pyqwerBut when I press "Reload", it displays something like ['A'] or ['A','B'], but not ['A','B','C']19:16
pyqwerSo I'm wondering where the difference between page load/reload is.19:17
mcdoncright... well, it's not connected to page loads vs. reloads in any hard-and-fast way, but when you mutate a nonpersistent object, the changes will stick around for some period of time, until the object is "ghosted" (removed from memory)... when it's loaded back from the zodb again ("unghosted"), the changes will be gone19:17
mcdonczodb has an object cache19:18
mcdoncand essentially what's happening is that your changes stick around while the object is still in the cache19:18
mcdoncbut disappear when it's evicted19:18
pyqwerAh, I see, so therefore I sometimes see these "ghost" data.19:18
mcdonchow that's related to page loads, i dunno, but that's what's happening under the covers19:18
mcdoncyeah19:18
*** sunew has quit IRC19:18
*** mgedmin has quit IRC19:19
pyqwerOk, that explains, why - when I restart the instance, only ['A'] is available.19:19
mcdoncright... yeah, the changes are just in memory for some period of time, but they didnt get persisted19:19
*** mgedmin has joined #zope3-dev19:19
pyqwerI assume, the same thing applies to dictionaries, hence, PersistentDict should be used instead?19:19
mcdoncpyqwer: i almost never use persistentlist or persistentdict personally (i just obey the rules of persistence "by hand") but that would be one thing to do19:20
*** tarek has quit IRC19:20
pyqwermcdonc: Ok, many thinks, I got it, I think!19:21
mcdoncpyqwer: good!19:21
*** davisagli has joined #zope3-dev19:21
*** alga_ has quit IRC19:23
*** tarek has joined #zope3-dev19:26
*** tarek has quit IRC19:31
*** sp0cksbeard has joined #zope3-dev19:39
*** __mac__ has joined #zope3-dev19:44
*** hazmat has quit IRC19:47
*** yotaff has quit IRC19:48
*** aaronv has quit IRC19:54
*** JaRoel|4D has joined #zope3-dev19:55
*** Theuni has joined #zope3-dev20:02
*** danfairs has quit IRC20:17
*** mkerrin has quit IRC20:22
*** romanofski has joined #zope3-dev20:30
*** afd__ has joined #zope3-dev20:40
*** aaronv has joined #zope3-dev20:40
*** yota has joined #zope3-dev20:50
*** tarek has joined #zope3-dev20:54
*** tarek has quit IRC21:17
*** __mac__ has quit IRC21:22
*** afd__ has quit IRC21:23
*** tarek has joined #zope3-dev21:24
*** __mac__ has joined #zope3-dev21:27
*** philiKON has joined #zope3-dev21:30
*** agroszer has joined #zope3-dev21:38
*** danfairs has joined #zope3-dev21:42
*** tarek has quit IRC21:43
*** greenman has joined #zope3-dev21:43
*** nyo1 has joined #zope3-dev21:43
*** agroszer_ has joined #zope3-dev21:45
*** junkafarian has quit IRC21:49
*** regebro has quit IRC21:58
*** greenman has quit IRC22:02
*** thekryz has joined #zope3-dev22:02
*** agroszer has quit IRC22:03
*** rocky has quit IRC22:06
*** rocky has joined #zope3-dev22:06
*** g_n_o_s_i_s has joined #zope3-dev22:07
*** LordOSipan has quit IRC22:16
*** __mac__ has quit IRC22:17
*** mgedmin has quit IRC22:21
*** dbfrombrc has joined #zope3-dev22:22
*** MrSipan has joined #zope3-dev22:28
*** nyo1 has quit IRC22:31
*** rocky has quit IRC22:33
*** rocky1 has joined #zope3-dev22:34
*** pelle__ has joined #zope3-dev22:34
*** rocky1 is now known as rocky22:34
*** ignas has quit IRC22:36
*** g_n_o_s_i_s has left #zope3-dev22:42
*** Theuni has quit IRC22:43
*** agroszer_ has quit IRC22:45
*** pelle_ has quit IRC22:51
*** danfairs has quit IRC22:55
*** junkafarian has joined #zope3-dev23:00
*** agroszer has joined #zope3-dev23:00
*** MJ has joined #zope3-dev23:00
*** nyo1 has joined #zope3-dev23:04
*** MJ has quit IRC23:08
*** greenman has joined #zope3-dev23:10
*** pyqwer has quit IRC23:12
*** junkafarian has quit IRC23:25
*** yota has quit IRC23:27
*** dbfrombrc has quit IRC23:28

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