IRC log of #zope for Saturday, 2010-03-13

*** JaRoel|4D has quit IRC00:04
*** sashav has joined #zope00:04
*** allisterb has joined #zope00:06
*** Kabz|4D has quit IRC00:08
*** allisterb_ has quit IRC00:09
*** kevinkal has joined #zope00:13
TresEquishannosch: PAS was written for 2.7.0 originally00:14
*** tarek has quit IRC00:15
*** RaFromBRC is now known as RaFromBRC|afk00:15
*** fredvd|dinner is now known as fredvd00:16
hannoschTresEquis: aha :) I've started at Zope 2.5 or so... been there but I don't remember the details anymore00:16
*** kevinkal has quit IRC00:17
*** kevinkal has joined #zope00:22
TresEquisvezult: you might have to go back in time a bit to find a version of PAS compatible with Zope 2.7.000:24
*** kevinkal has quit IRC00:29
*** JaRoel|4D has joined #zope00:30
*** Kabz|4D has joined #zope00:32
*** mr_jolly has left #zope00:36
*** JaRoel|4D has quit IRC00:37
*** daMaestro has joined #zope00:39
*** jim_SFU has quit IRC00:49
*** aaronv has quit IRC00:53
*** TresEquis has quit IRC00:53
*** redir has quit IRC01:03
*** mcdonc has quit IRC01:06
*** jfroche has quit IRC01:08
*** jfroche has joined #zope01:09
*** r0ver has quit IRC01:11
*** MatthewWilkes has joined #zope01:17
*** JaRoel|4D has joined #zope01:17
*** hannosch has quit IRC01:19
*** r0ver has joined #zope01:20
*** vezult has quit IRC01:25
*** alecm has quit IRC01:32
*** ccomb has quit IRC01:33
*** spamsch has quit IRC01:34
*** davisagli has joined #zope01:36
*** davisagli has quit IRC01:37
*** moldy has left #zope01:38
*** aaronv has joined #zope01:45
*** Kabz|4D has quit IRC01:45
*** aaronv has quit IRC01:50
*** smita1 has quit IRC01:58
*** febb has quit IRC02:18
*** kevinkal has joined #zope02:36
*** febb has joined #zope02:39
*** kevinkal has quit IRC02:42
*** RichardBarrell has joined #zope02:43
*** mcdonc has joined #zope03:05
*** fredvd is now known as fredvd|away03:06
*** daMaestro has quit IRC03:09
*** RaFromBRC|afk is now known as RaFromBRC03:12
*** tiwula has quit IRC03:19
*** KageSenshi has quit IRC03:23
*** mcdonc has quit IRC03:31
*** redir has joined #zope03:44
*** RichardBarrell has quit IRC03:50
*** aaronv has joined #zope03:54
*** davisagli has joined #zope04:09
*** davisagli has quit IRC04:11
*** davisagli has joined #zope04:18
*** davisagli has quit IRC04:18
*** davisagli has joined #zope04:18
*** davisagli has quit IRC04:20
*** davisagli_ has joined #zope04:20
*** davisagli_ is now known as davisagli04:20
*** davisagli has quit IRC04:21
*** davisagli_ has joined #zope04:21
*** davisagli_ is now known as davisagli04:21
*** davisagli has quit IRC04:21
*** KageSenshi has joined #zope04:33
*** hever has quit IRC04:39
*** r0ver has quit IRC04:42
*** r0ver has joined #zope04:50
*** BGaddie has quit IRC05:06
*** aaronv has quit IRC05:11
*** mcdonc has joined #zope05:15
*** opsec has quit IRC05:27
*** opsec has joined #zope05:41
*** redir has quit IRC05:41
*** redir has joined #zope05:41
*** BGaddie has joined #zope05:52
*** ignas has quit IRC06:31
*** MrTango has joined #zope07:45
*** r0ver has quit IRC07:55
*** dunny has quit IRC08:06
*** febb has quit IRC08:31
*** shastry has quit IRC09:32
*** smita has joined #zope09:44
*** smita has quit IRC09:58
*** davisagli has joined #zope10:07
*** planetzopebot has quit IRC10:33
*** planetzopebot has joined #zope10:34
*** davisagli has quit IRC10:42
*** sunew has joined #zope11:21
*** newbery has joined #zope11:23
newberydoes anyone know why OFS.Image.Image starts a stream download directly with response.write instead of just using a bodyproducer like blobs and FSImage?11:26
*** mr_jolly has joined #zope11:27
*** mr_jolly has left #zope11:30
*** huajie has joined #zope11:31
TheJesterIt predates FSImage by 20 years...11:33
newberyright... just wondering if this was retained for a reason?  Otherwise, I would like to fix it as it messes with the Publisher events11:34
*** huajie has quit IRC11:37
*** fredvd|away is now known as fredvd11:49
*** Kabz|4D has joined #zope11:52
*** kaeru has quit IRC11:53
*** kaeru has joined #zope11:55
moo---newbery: Can you give me any pointers how to stream fles out of Zope instead of buffering them memory? I need that functionality also.12:03
*** Kabz|4D has quit IRC12:12
*** avn has quit IRC12:17
*** avn has joined #zope12:19
*** fredvd is now known as fredvd|sport12:21
*** ccomb has joined #zope12:37
newberymoo---:  sorry, was afk12:55
newberymoo---: just getting a handle on it myself...12:55
newberymoo---: there looks like two ways... old way and new way... but maybe the old way is retained for some reason.  I'm not sure12:56
newberythe new way... is where your response contains an outputBody method by the time it reaches line 252 in Publish.py12:57
moo---ok13:00
moo---newbery: and outputbody() is supposed to call response.write?13:01
*** hever has joined #zope13:04
newberymoo---: no, response.write seems to be the "old" way.  response.write writes to stdout and so does outputBody, but the second does it later in the process after the new Publish events.13:05
moo---newbery: outputBody() itself does not do anything... it needs still some way to "generate" the response13:05
moo---darn I hope there would a good doc about this13:05
newberyright... hence the bodyproducer bit... which I'm still working through13:06
moo---newbery: drop me a word when you figure it out13:06
newberyno prob... I think I'm drafting this into a question for the zope email list13:07
newberymoo---: basically you can see the key methods in ZServer.HTTPResponse.outputBody() and ...setBody().  The setBody will attach a stream iterator if the body provides IStreamIterator13:15
*** mcdonc has quit IRC13:20
*** goschtl has joined #zope13:20
*** sakura_ is now known as x-ip13:32
*** x-ip has joined #zope13:32
*** ccomb has quit IRC13:45
*** Kabz|4D has joined #zope14:09
*** goschtl has quit IRC14:12
*** fredvd|sport has quit IRC14:25
*** evilbungle has joined #zope14:25
*** fredvd has joined #zope14:27
*** evilbungle has quit IRC14:33
*** digitalmortician has joined #zope14:39
*** avn has quit IRC14:50
*** avn has joined #zope14:51
*** huajie has joined #zope14:55
*** aaronv has joined #zope14:55
*** Arfrever has joined #zope14:57
*** huajie has quit IRC15:34
*** Kabz|4D has quit IRC15:43
*** huajie has joined #zope15:44
*** evilbungle has joined #zope15:46
*** evilbungle has quit IRC15:50
*** ignas has joined #zope16:02
*** KageSenshi has quit IRC16:06
*** spamsch has joined #zope16:30
*** fredvd is now known as fredvd|away16:44
*** kaeru has quit IRC16:48
*** kaeru has joined #zope17:04
*** avn has quit IRC17:07
*** avn has joined #zope17:09
*** kevinkal has joined #zope17:31
*** lisppaste6 has quit IRC17:47
*** mr_jolly has joined #zope17:47
*** mr_jolly has quit IRC17:48
*** kaeru has quit IRC18:03
*** kaeru has joined #zope18:04
*** hever has quit IRC18:05
*** tarek has joined #zope18:06
*** tiwula has joined #zope18:08
*** mcdonc has joined #zope18:14
*** hever has joined #zope18:33
*** kaeru has quit IRC18:34
*** huajie has quit IRC18:35
*** kaeru has joined #zope18:36
*** sunew has quit IRC18:38
*** sunew has joined #zope18:43
*** emrojo has joined #zope18:48
*** digitalmortician has quit IRC19:09
*** digitalmortician has joined #zope19:17
*** goschtl has joined #zope19:26
*** Kabz|4D has joined #zope19:26
*** KageSenshi has joined #zope19:27
*** digitalmortici-1 has joined #zope19:27
*** digitalmortician has quit IRC19:30
*** digitalmortician has joined #zope19:32
*** digitalmortici-1 has quit IRC19:36
*** digitalmortici-1 has joined #zope19:38
*** digitalmortician has quit IRC19:42
*** kaeru has quit IRC19:45
*** kaeru has joined #zope19:47
*** hever has quit IRC19:56
*** digitalmortician has joined #zope19:57
*** digitalmortici-1 has quit IRC20:01
*** digitalmortician has quit IRC20:03
*** emrojo has quit IRC20:08
*** avn has quit IRC20:25
*** avn has joined #zope20:27
*** digitalmortician has joined #zope20:29
*** kevinkal has quit IRC20:30
*** kevinkal has joined #zope20:32
*** hever has joined #zope20:34
*** tiwula has quit IRC20:36
*** digitalmortician has quit IRC20:47
*** kevinkal has quit IRC20:48
*** benji has quit IRC20:50
*** benji has joined #zope20:52
*** Kabz|4D has quit IRC21:10
*** tarek has quit IRC21:16
*** davisagli_ has joined #zope21:17
*** kaeru has quit IRC21:19
*** kaeru has joined #zope21:20
*** goschtl has quit IRC21:32
*** Arfrever has quit IRC21:40
*** davisagli_ has left #zope21:45
*** MatthewWilkes has quit IRC21:50
*** avn has quit IRC21:51
*** avn has joined #zope21:53
*** River-Rat is now known as RiverRat22:09
*** tarek has joined #zope22:44
newberynow that a different timezone is up, I'm reposting a question from last night...23:11
newberydoes anyone know why OFS.Image.Image starts a stream download directly with response.write instead of just using a bodyproducer stream iterator like blobs and FSImage?23:12
newberyat least the Plone 4 FSImage.... the older one still uses OFS.Image23:12
newberyprobably because the new one is also a blob23:13
*** tiwula has joined #zope23:16
*** dayne has joined #zope23:26
mcdoncnewbery: ooh i know the answer!23:27
newberyi figured you might  :-)23:27
mcdoncwhen blobs are used, the system doesn't rely on zodb for the data23:27
mcdoncits on the filesystem23:27
mcdoncwhen you return a stream iterator to zserver, the publisher believes its job is done, and it closes the zodb connection23:28
newberyahh23:28
mcdoncthat cant work for objects in the zodb of course23:28
newberydamn... the early response.write doesn't trigger a publisher event so it doesn't look like I can hook in something right before delivery like I can do everything else  :(23:30
newberydoes this call for another event inside the write function?23:30
mcdonci rewrote this for a reason ;-)23:30
mcdoncnewbery: it calls for.. something.. that something might be a redesign23:31
newberya redesign of publisher?  or ofs.image?23:31
mcdonceither?  both?  ... what are you actually trying to have it do before every response?23:32
newberyplone.app.caching hooks into PubBeforeCommit in order to write it's headers... doesn't work with these.... also screws up with large CSS/JS from the resource registry as they become Pdata objects, which gets the same treatment23:34
mcdoncin the post-wsgi world, this would likely be done via middleware23:34
mcdonci realize that doesn't help without a lot of pain23:35
newberywhat do you think of adding a new Publish event.... say something like PubBeforeStream?23:36
mcdonci'm not really a user of that code anymore.. but in general... adding code there is the traditional way things have been done... as horrifying as the result is ;-)23:36
newberyi'm not horrified... but my threshold for horror is pretty high  ;-)23:38
mcdonci dunno about PubBeforeStream... i mean23:38
mcdoncreally23:38
mcdonci think maybe p.a.caching should use a different event23:38
mcdoncto hook23:38
newberysuggestions?23:38
mcdoncbecause the commit event is not really quite right23:38
mcdoncno..23:39
mcdonci have no suggestions23:39
mcdoncits not writtten right23:39
mcdonccant fix design crap through software i fear23:39
mcdoncso.. yup, another event shall be added and everyone will be happy ;-)23:40
newberyalright... making people happy is all that matters23:40
mcdonchere's how i think it should work23:41
mcdoncrather than p.a.caching setting headers23:41
mcdonccontent types should *ask* a cache policy about which kinds of headers to set23:41
mcdoncand the content type should set it itself23:41
mcdoncwhile being served23:41
newberysounds like a cool design but... would also need something similar for simple template views, browser views/pages, zope 3 resources, etc... that's sound suspiciously like a nasty rat hole23:43
mcdoncyup... might as well start all over...23:44
newberyhmm... if only there was a framework to start all over with... ;-)23:44
mcdoncyeah... ah well. ;-)23:47
*** kaeru has quit IRC23:47
newberyokay... well, we plays with whom we brought.  The p.a.caching way may be non-optimal design-wise but it's much better than Cachefu and it works pretty well... except for this last bit23:47
*** kaeru has joined #zope23:48
mcdoncyeah.. unfortunately once you start streaming you cant set headers any longer23:49
mcdoncso hooking header setting needs to happen slightly earlier i guess23:50
mcdoncand if no suitable event exists, i guess adding one isnt the worst thing in the world23:50
newberydamn... and I really thought I could finish this without monkeypatching23:50
mcdoncimpossible ;-)23:52
*** digitalmortician has joined #zope23:52
*** tiwula has quit IRC23:55
*** kevinkal has joined #zope23:57

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