| *** JaRoel|4D has quit IRC | 00:04 | |
| *** sashav has joined #zope | 00:04 | |
| *** allisterb has joined #zope | 00:06 | |
| *** Kabz|4D has quit IRC | 00:08 | |
| *** allisterb_ has quit IRC | 00:09 | |
| *** kevinkal has joined #zope | 00:13 | |
| TresEquis | hannosch: PAS was written for 2.7.0 originally | 00:14 | 
|---|---|---|
| *** tarek has quit IRC | 00:15 | |
| *** RaFromBRC is now known as RaFromBRC|afk | 00:15 | |
| *** fredvd|dinner is now known as fredvd | 00:16 | |
| hannosch | TresEquis: aha :) I've started at Zope 2.5 or so... been there but I don't remember the details anymore | 00:16 | 
| *** kevinkal has quit IRC | 00:17 | |
| *** kevinkal has joined #zope | 00:22 | |
| TresEquis | vezult: you might have to go back in time a bit to find a version of PAS compatible with Zope 2.7.0 | 00:24 | 
| *** kevinkal has quit IRC | 00:29 | |
| *** JaRoel|4D has joined #zope | 00:30 | |
| *** Kabz|4D has joined #zope | 00:32 | |
| *** mr_jolly has left #zope | 00:36 | |
| *** JaRoel|4D has quit IRC | 00:37 | |
| *** daMaestro has joined #zope | 00:39 | |
| *** jim_SFU has quit IRC | 00:49 | |
| *** aaronv has quit IRC | 00:53 | |
| *** TresEquis has quit IRC | 00:53 | |
| *** redir has quit IRC | 01:03 | |
| *** mcdonc has quit IRC | 01:06 | |
| *** jfroche has quit IRC | 01:08 | |
| *** jfroche has joined #zope | 01:09 | |
| *** r0ver has quit IRC | 01:11 | |
| *** MatthewWilkes has joined #zope | 01:17 | |
| *** JaRoel|4D has joined #zope | 01:17 | |
| *** hannosch has quit IRC | 01:19 | |
| *** r0ver has joined #zope | 01:20 | |
| *** vezult has quit IRC | 01:25 | |
| *** alecm has quit IRC | 01:32 | |
| *** ccomb has quit IRC | 01:33 | |
| *** spamsch has quit IRC | 01:34 | |
| *** davisagli has joined #zope | 01:36 | |
| *** davisagli has quit IRC | 01:37 | |
| *** moldy has left #zope | 01:38 | |
| *** aaronv has joined #zope | 01:45 | |
| *** Kabz|4D has quit IRC | 01:45 | |
| *** aaronv has quit IRC | 01:50 | |
| *** smita1 has quit IRC | 01:58 | |
| *** febb has quit IRC | 02:18 | |
| *** kevinkal has joined #zope | 02:36 | |
| *** febb has joined #zope | 02:39 | |
| *** kevinkal has quit IRC | 02:42 | |
| *** RichardBarrell has joined #zope | 02:43 | |
| *** mcdonc has joined #zope | 03:05 | |
| *** fredvd is now known as fredvd|away | 03:06 | |
| *** daMaestro has quit IRC | 03:09 | |
| *** RaFromBRC|afk is now known as RaFromBRC | 03:12 | |
| *** tiwula has quit IRC | 03:19 | |
| *** KageSenshi has quit IRC | 03:23 | |
| *** mcdonc has quit IRC | 03:31 | |
| *** redir has joined #zope | 03:44 | |
| *** RichardBarrell has quit IRC | 03:50 | |
| *** aaronv has joined #zope | 03:54 | |
| *** davisagli has joined #zope | 04:09 | |
| *** davisagli has quit IRC | 04:11 | |
| *** davisagli has joined #zope | 04:18 | |
| *** davisagli has quit IRC | 04:18 | |
| *** davisagli has joined #zope | 04:18 | |
| *** davisagli has quit IRC | 04:20 | |
| *** davisagli_ has joined #zope | 04:20 | |
| *** davisagli_ is now known as davisagli | 04:20 | |
| *** davisagli has quit IRC | 04:21 | |
| *** davisagli_ has joined #zope | 04:21 | |
| *** davisagli_ is now known as davisagli | 04:21 | |
| *** davisagli has quit IRC | 04:21 | |
| *** KageSenshi has joined #zope | 04:33 | |
| *** hever has quit IRC | 04:39 | |
| *** r0ver has quit IRC | 04:42 | |
| *** r0ver has joined #zope | 04:50 | |
| *** BGaddie has quit IRC | 05:06 | |
| *** aaronv has quit IRC | 05:11 | |
| *** mcdonc has joined #zope | 05:15 | |
| *** opsec has quit IRC | 05:27 | |
| *** opsec has joined #zope | 05:41 | |
| *** redir has quit IRC | 05:41 | |
| *** redir has joined #zope | 05:41 | |
| *** BGaddie has joined #zope | 05:52 | |
| *** ignas has quit IRC | 06:31 | |
| *** MrTango has joined #zope | 07:45 | |
| *** r0ver has quit IRC | 07:55 | |
| *** dunny has quit IRC | 08:06 | |
| *** febb has quit IRC | 08:31 | |
| *** shastry has quit IRC | 09:32 | |
| *** smita has joined #zope | 09:44 | |
| *** smita has quit IRC | 09:58 | |
| *** davisagli has joined #zope | 10:07 | |
| *** planetzopebot has quit IRC | 10:33 | |
| *** planetzopebot has joined #zope | 10:34 | |
| *** davisagli has quit IRC | 10:42 | |
| *** sunew has joined #zope | 11:21 | |
| *** newbery has joined #zope | 11:23 | |
| newbery | does 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 #zope | 11:27 | |
| *** mr_jolly has left #zope | 11:30 | |
| *** huajie has joined #zope | 11:31 | |
| TheJester | It predates FSImage by 20 years... | 11:33 | 
| newbery | right... just wondering if this was retained for a reason? Otherwise, I would like to fix it as it messes with the Publisher events | 11:34 | 
| *** huajie has quit IRC | 11:37 | |
| *** fredvd|away is now known as fredvd | 11:49 | |
| *** Kabz|4D has joined #zope | 11:52 | |
| *** kaeru has quit IRC | 11:53 | |
| *** kaeru has joined #zope | 11: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 IRC | 12:12 | |
| *** avn has quit IRC | 12:17 | |
| *** avn has joined #zope | 12:19 | |
| *** fredvd is now known as fredvd|sport | 12:21 | |
| *** ccomb has joined #zope | 12:37 | |
| newbery | moo---: sorry, was afk | 12:55 | 
| newbery | moo---: just getting a handle on it myself... | 12:55 | 
| newbery | moo---: there looks like two ways... old way and new way... but maybe the old way is retained for some reason. I'm not sure | 12:56 | 
| newbery | the new way... is where your response contains an outputBody method by the time it reaches line 252 in Publish.py | 12:57 | 
| moo--- | ok | 13:00 | 
| moo--- | newbery: and outputbody() is supposed to call response.write? | 13:01 | 
| *** hever has joined #zope | 13:04 | |
| newbery | moo---: 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 response | 13:05 | 
| moo--- | darn I hope there would a good doc about this | 13:05 | 
| newbery | right... hence the bodyproducer bit... which I'm still working through | 13:06 | 
| moo--- | newbery: drop me a word when you figure it out | 13:06 | 
| newbery | no prob... I think I'm drafting this into a question for the zope email list | 13:07 | 
| newbery | moo---: basically you can see the key methods in ZServer.HTTPResponse.outputBody() and ...setBody(). The setBody will attach a stream iterator if the body provides IStreamIterator | 13:15 | 
| *** mcdonc has quit IRC | 13:20 | |
| *** goschtl has joined #zope | 13:20 | |
| *** sakura_ is now known as x-ip | 13:32 | |
| *** x-ip has joined #zope | 13:32 | |
| *** ccomb has quit IRC | 13:45 | |
| *** Kabz|4D has joined #zope | 14:09 | |
| *** goschtl has quit IRC | 14:12 | |
| *** fredvd|sport has quit IRC | 14:25 | |
| *** evilbungle has joined #zope | 14:25 | |
| *** fredvd has joined #zope | 14:27 | |
| *** evilbungle has quit IRC | 14:33 | |
| *** digitalmortician has joined #zope | 14:39 | |
| *** avn has quit IRC | 14:50 | |
| *** avn has joined #zope | 14:51 | |
| *** huajie has joined #zope | 14:55 | |
| *** aaronv has joined #zope | 14:55 | |
| *** Arfrever has joined #zope | 14:57 | |
| *** huajie has quit IRC | 15:34 | |
| *** Kabz|4D has quit IRC | 15:43 | |
| *** huajie has joined #zope | 15:44 | |
| *** evilbungle has joined #zope | 15:46 | |
| *** evilbungle has quit IRC | 15:50 | |
| *** ignas has joined #zope | 16:02 | |
| *** KageSenshi has quit IRC | 16:06 | |
| *** spamsch has joined #zope | 16:30 | |
| *** fredvd is now known as fredvd|away | 16:44 | |
| *** kaeru has quit IRC | 16:48 | |
| *** kaeru has joined #zope | 17:04 | |
| *** avn has quit IRC | 17:07 | |
| *** avn has joined #zope | 17:09 | |
| *** kevinkal has joined #zope | 17:31 | |
| *** lisppaste6 has quit IRC | 17:47 | |
| *** mr_jolly has joined #zope | 17:47 | |
| *** mr_jolly has quit IRC | 17:48 | |
| *** kaeru has quit IRC | 18:03 | |
| *** kaeru has joined #zope | 18:04 | |
| *** hever has quit IRC | 18:05 | |
| *** tarek has joined #zope | 18:06 | |
| *** tiwula has joined #zope | 18:08 | |
| *** mcdonc has joined #zope | 18:14 | |
| *** hever has joined #zope | 18:33 | |
| *** kaeru has quit IRC | 18:34 | |
| *** huajie has quit IRC | 18:35 | |
| *** kaeru has joined #zope | 18:36 | |
| *** sunew has quit IRC | 18:38 | |
| *** sunew has joined #zope | 18:43 | |
| *** emrojo has joined #zope | 18:48 | |
| *** digitalmortician has quit IRC | 19:09 | |
| *** digitalmortician has joined #zope | 19:17 | |
| *** goschtl has joined #zope | 19:26 | |
| *** Kabz|4D has joined #zope | 19:26 | |
| *** KageSenshi has joined #zope | 19:27 | |
| *** digitalmortici-1 has joined #zope | 19:27 | |
| *** digitalmortician has quit IRC | 19:30 | |
| *** digitalmortician has joined #zope | 19:32 | |
| *** digitalmortici-1 has quit IRC | 19:36 | |
| *** digitalmortici-1 has joined #zope | 19:38 | |
| *** digitalmortician has quit IRC | 19:42 | |
| *** kaeru has quit IRC | 19:45 | |
| *** kaeru has joined #zope | 19:47 | |
| *** hever has quit IRC | 19:56 | |
| *** digitalmortician has joined #zope | 19:57 | |
| *** digitalmortici-1 has quit IRC | 20:01 | |
| *** digitalmortician has quit IRC | 20:03 | |
| *** emrojo has quit IRC | 20:08 | |
| *** avn has quit IRC | 20:25 | |
| *** avn has joined #zope | 20:27 | |
| *** digitalmortician has joined #zope | 20:29 | |
| *** kevinkal has quit IRC | 20:30 | |
| *** kevinkal has joined #zope | 20:32 | |
| *** hever has joined #zope | 20:34 | |
| *** tiwula has quit IRC | 20:36 | |
| *** digitalmortician has quit IRC | 20:47 | |
| *** kevinkal has quit IRC | 20:48 | |
| *** benji has quit IRC | 20:50 | |
| *** benji has joined #zope | 20:52 | |
| *** Kabz|4D has quit IRC | 21:10 | |
| *** tarek has quit IRC | 21:16 | |
| *** davisagli_ has joined #zope | 21:17 | |
| *** kaeru has quit IRC | 21:19 | |
| *** kaeru has joined #zope | 21:20 | |
| *** goschtl has quit IRC | 21:32 | |
| *** Arfrever has quit IRC | 21:40 | |
| *** davisagli_ has left #zope | 21:45 | |
| *** MatthewWilkes has quit IRC | 21:50 | |
| *** avn has quit IRC | 21:51 | |
| *** avn has joined #zope | 21:53 | |
| *** River-Rat is now known as RiverRat | 22:09 | |
| *** tarek has joined #zope | 22:44 | |
| newbery | now that a different timezone is up, I'm reposting a question from last night... | 23:11 | 
| newbery | does 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 | 
| newbery | at least the Plone 4 FSImage.... the older one still uses OFS.Image | 23:12 | 
| newbery | probably because the new one is also a blob | 23:13 | 
| *** tiwula has joined #zope | 23:16 | |
| *** dayne has joined #zope | 23:26 | |
| mcdonc | newbery: ooh i know the answer! | 23:27 | 
| newbery | i figured you might :-) | 23:27 | 
| mcdonc | when blobs are used, the system doesn't rely on zodb for the data | 23:27 | 
| mcdonc | its on the filesystem | 23:27 | 
| mcdonc | when you return a stream iterator to zserver, the publisher believes its job is done, and it closes the zodb connection | 23:28 | 
| newbery | ahh | 23:28 | 
| mcdonc | that cant work for objects in the zodb of course | 23:28 | 
| newbery | damn... 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 | 
| newbery | does this call for another event inside the write function? | 23:30 | 
| mcdonc | i rewrote this for a reason ;-) | 23:30 | 
| mcdonc | newbery: it calls for.. something.. that something might be a redesign | 23:31 | 
| newbery | a redesign of publisher? or ofs.image? | 23:31 | 
| mcdonc | either? both? ... what are you actually trying to have it do before every response? | 23:32 | 
| newbery | plone.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 treatment | 23:34 | 
| mcdonc | in the post-wsgi world, this would likely be done via middleware | 23:34 | 
| mcdonc | i realize that doesn't help without a lot of pain | 23:35 | 
| newbery | what do you think of adding a new Publish event.... say something like PubBeforeStream? | 23:36 | 
| mcdonc | i'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 | 
| newbery | i'm not horrified... but my threshold for horror is pretty high ;-) | 23:38 | 
| mcdonc | i dunno about PubBeforeStream... i mean | 23:38 | 
| mcdonc | really | 23:38 | 
| mcdonc | i think maybe p.a.caching should use a different event | 23:38 | 
| mcdonc | to hook | 23:38 | 
| newbery | suggestions? | 23:38 | 
| mcdonc | because the commit event is not really quite right | 23:38 | 
| mcdonc | no.. | 23:39 | 
| mcdonc | i have no suggestions | 23:39 | 
| mcdonc | its not writtten right | 23:39 | 
| mcdonc | cant fix design crap through software i fear | 23:39 | 
| mcdonc | so.. yup, another event shall be added and everyone will be happy ;-) | 23:40 | 
| newbery | alright... making people happy is all that matters | 23:40 | 
| mcdonc | here's how i think it should work | 23:41 | 
| mcdonc | rather than p.a.caching setting headers | 23:41 | 
| mcdonc | content types should *ask* a cache policy about which kinds of headers to set | 23:41 | 
| mcdonc | and the content type should set it itself | 23:41 | 
| mcdonc | while being served | 23:41 | 
| newbery | sounds 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 hole | 23:43 | 
| mcdonc | yup... might as well start all over... | 23:44 | 
| newbery | hmm... if only there was a framework to start all over with... ;-) | 23:44 | 
| mcdonc | yeah... ah well. ;-) | 23:47 | 
| *** kaeru has quit IRC | 23:47 | |
| newbery | okay... 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 bit | 23:47 | 
| *** kaeru has joined #zope | 23:48 | |
| mcdonc | yeah.. unfortunately once you start streaming you cant set headers any longer | 23:49 | 
| mcdonc | so hooking header setting needs to happen slightly earlier i guess | 23:50 | 
| mcdonc | and if no suitable event exists, i guess adding one isnt the worst thing in the world | 23:50 | 
| newbery | damn... and I really thought I could finish this without monkeypatching | 23:50 | 
| mcdonc | impossible ;-) | 23:52 | 
| *** digitalmortician has joined #zope | 23:52 | |
| *** tiwula has quit IRC | 23:55 | |
| *** kevinkal has joined #zope | 23:57 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!