*** hazmat has joined #zope3-dev | 00:01 | |
*** mkerrin has quit IRC | 00:06 | |
*** d2m has quit IRC | 00:10 | |
jenner | hm, ok, it's working for a container that inherits zope.app.folder.Folder but it fails for an IContainer implementation which inherits BTreeContainer | 00:10 |
---|---|---|
jenner | argh, the IContainer inherited INameChooser as well | 00:20 |
* jenner slaps himself a bit with a large trout | 00:20 | |
*** hazmat has quit IRC | 00:42 | |
*** jinty has joined #zope3-dev | 00:52 | |
*** SteveA has joined #zope3-dev | 00:53 | |
*** philiKON has quit IRC | 01:08 | |
*** jack-e has quit IRC | 02:12 | |
*** tav has joined #zope3-dev | 02:15 | |
*** natea is now known as natea|dinner | 02:23 | |
*** jenner has quit IRC | 02:30 | |
*** jinty has quit IRC | 02:41 | |
*** stub has joined #zope3-dev | 02:46 | |
*** romanofski has quit IRC | 02:59 | |
*** natea|dinner is now known as natea | 03:04 | |
*** yota has quit IRC | 03:10 | |
*** natea is now known as natea|away | 04:03 | |
*** mihamina has left #zope3-dev | 04:21 | |
*** ruda_porto has quit IRC | 04:26 | |
*** zbir has quit IRC | 05:55 | |
*** Aiste has quit IRC | 05:55 | |
*** jbb666 has quit IRC | 05:55 | |
*** Aiste has joined #zope3-dev | 06:11 | |
*** jbb666 has joined #zope3-dev | 06:11 | |
*** Aiste_ has joined #zope3-dev | 06:17 | |
*** Aiste has quit IRC | 06:31 | |
*** philiKON has joined #zope3-dev | 06:41 | |
*** myroslav has quit IRC | 07:10 | |
*** newpers has quit IRC | 07:35 | |
*** newpers has joined #zope3-dev | 07:50 | |
*** eins has joined #zope3-dev | 08:13 | |
eins | hi all | 08:13 |
*** myroslav has joined #zope3-dev | 08:14 | |
*** myroslav has joined #zope3-dev | 08:20 | |
*** myroslav has quit IRC | 08:23 | |
*** yota has joined #zope3-dev | 08:24 | |
*** myroslav has joined #zope3-dev | 08:29 | |
*** myroslav has quit IRC | 08:33 | |
*** myroslav has joined #zope3-dev | 08:39 | |
*** myroslav has quit IRC | 08:42 | |
*** myroslav has joined #zope3-dev | 08:49 | |
*** myroslav has quit IRC | 08:51 | |
*** myroslav has joined #zope3-dev | 08:58 | |
*** myroslav has quit IRC | 09:01 | |
*** d2m has joined #zope3-dev | 09:04 | |
*** myroslav has joined #zope3-dev | 09:07 | |
*** myroslav has quit IRC | 09:10 | |
*** myroslav has joined #zope3-dev | 09:18 | |
*** myroslav has joined #zope3-dev | 09:25 | |
*** myroslav has quit IRC | 09:28 | |
*** stub has quit IRC | 09:33 | |
*** myroslav has joined #zope3-dev | 09:35 | |
*** myroslav has quit IRC | 09:38 | |
*** myroslav has joined #zope3-dev | 09:44 | |
*** myroslav has quit IRC | 09:46 | |
*** zagy has joined #zope3-dev | 10:53 | |
*** ignas has joined #zope3-dev | 11:06 | |
*** jenner has joined #zope3-dev | 11:23 | |
*** mgedmin has joined #zope3-dev | 12:49 | |
*** eins has quit IRC | 13:18 | |
*** romanofski has joined #zope3-dev | 13:21 | |
romanofski | moin | 13:21 |
philiKON | moin romanofski | 13:22 |
*** BjornT has quit IRC | 13:44 | |
jenner | I'd like to perform some actions on an IContained after it has been added to an IContainer, using events seems to be the right way to do it, but I can't figure out what steps are required... can anyone point me to an example? | 13:44 |
philiKON | jenner, got my book? | 13:46 |
jenner | philiKON: no | 13:46 |
philiKON | then buy it :) | 13:46 |
philiKON | seriously | 13:46 |
philiKON | you want events | 13:46 |
philiKON | make subscriber that listens to IObjectAdded event | 13:47 |
*** romanofski is now known as rom|aw | 13:47 | |
*** eins has joined #zope3-dev | 13:59 | |
*** BjornT has joined #zope3-dev | 14:06 | |
*** Jim7J1AJH has joined #zope3-dev | 14:07 | |
*** Jim7J1AJH has left #zope3-dev | 14:09 | |
*** mkerrin has joined #zope3-dev | 14:13 | |
*** jenner has quit IRC | 14:26 | |
*** stub has joined #zope3-dev | 14:51 | |
*** ruda_porto has joined #zope3-dev | 15:06 | |
*** rom|aw is now known as romanofski | 15:06 | |
*** jinty has joined #zope3-dev | 16:02 | |
*** J1m has joined #zope3-dev | 16:10 | |
*** eins has quit IRC | 16:21 | |
srichter | J1m: we have a show-stopper | 16:21 |
J1m | Oh? | 16:21 |
srichter | J1m: I had a small sprint yesterday and in the app we developed, we could not upload large files using the twisted server | 16:22 |
srichter | it would not even receive a request | 16:22 |
srichter | when we switched to ZServer it worked fine | 16:22 |
J1m | Hm | 16:22 |
J1m | Any idea why? | 16:23 |
srichter | no, we did not have time to investigate | 16:23 |
srichter | but it must be something about the large file support in twisted.web2 | 16:23 |
srichter | J1m: you only messed with the output handling, right? | 16:23 |
J1m | No, I applied James' input-buffering patch. | 16:24 |
srichter | and after this happens, you cannot shut down the server using CTRL+C anymore either | 16:24 |
J1m | This is easy to disable though. | 16:24 |
srichter | Joel (the guy I was sprinting with, usually here as jfmoxley) said it still worked in 3.2b1 | 16:25 |
J1m | Look at zope/app/twisted/http.py | 16:26 |
J1m | Try commenting out the line: | 16:27 |
J1m | resource = Prebuffer(resource) | 16:27 |
srichter | ok, will do | 16:27 |
srichter | J1m: yep, that's the problem; now it works | 16:31 |
J1m | That's what I get for integrating code I don't understand. :( | 16:31 |
J1m | OK, try this please: ... | 16:31 |
srichter | ok... | 16:32 |
*** mgedmin has quit IRC | 16:32 | |
J1m | Uncomment that line and arrange for the first if condition in Prebuffer.hook to always be true. | 16:33 |
srichter | ok | 16:33 |
J1m | if 1 or (content_length is not None and int(content_length) > max_stringio): | 16:33 |
J1m | or just: | 16:33 |
J1m | if 1: | 16:33 |
J1m | iow, get rid of the attempt to use a stringio | 16:33 |
srichter | then it should always fail, right? | 16:34 |
J1m | what should always fail? | 16:34 |
J1m | I want to make the code more like James Knights origibal code and always use a temporary file. | 16:34 |
srichter | that fails | 16:35 |
srichter | so the StringIO version seems to work | 16:35 |
srichter | I try "if False" now | 16:35 |
J1m | I want to see if the problem is somehow due to my change to his code to avoid using a temporary file when not necessary. | 16:35 |
J1m | Typing is too hard. | 16:36 |
J1m | :) | 16:36 |
*** andrew_m has joined #zope3-dev | 16:43 | |
*** jinty has quit IRC | 16:48 | |
*** alga has joined #zope3-dev | 16:50 | |
*** philiKON has quit IRC | 16:59 | |
*** jhauser_ has quit IRC | 17:07 | |
*** MrTopf has joined #zope3-dev | 17:23 | |
*** refried has joined #zope3-dev | 17:25 | |
refried | is there a good location to find Zope3 products? | 17:30 |
srichter | no | 17:31 |
srichter | there are really not that many Zope 3 packages out there | 17:31 |
srichter | searching the archives and announcements might help | 17:31 |
srichter | also look at svn.zope.org for some others | 17:31 |
J1m | This prebuffering code is a Rube Goldberg machine. :( | 17:39 |
srichter | huh? | 17:40 |
J1m | I creates an incredibly convoluted and inefficient set of data structures. | 17:40 |
J1m | We collect the input in a file and we end up with something that threads through the reactor to read the damn thing. | 17:41 |
srichter | oh, I see, sigh | 17:41 |
J1m | Do you know what a Rube Goldberg machine is? :) | 17:42 |
srichter | I am just reading his Wikipedia entry :-) | 17:43 |
mkerrin | J1m: I don't know if this helps but I used a OverflowableBuffer class for the ftp code. It is located in zope.app.twisted.ftp.buffers, and it seems to work for FTP anyways, and is originally copied from the ZServer code base | 17:45 |
J1m | mkerrin, the problem isn't the logic to switch to a temporary file. | 17:46 |
J1m | The problem is that using a temporary file doesn't work. | 17:46 |
J1m | And it's use is hideously convoluted. | 17:46 |
J1m | mkerrin, did you look at the patch that James Knight sent on the 16th? | 17:49 |
J1m | mkerrin, di you consider yourself to be a twisted programmer? :) | 17:50 |
J1m | mkerrin, do you consider yourself to be a twisted programmer? :) | 17:50 |
mkerrin | I am not a core developer - I just use it now and again to get stuff done | 17:51 |
J1m | Do you understand Knight's patch? | 17:52 |
*** natea|away has quit IRC | 18:10 | |
*** efrerich has joined #zope3-dev | 18:19 | |
J1m | OK, fixed it. | 18:23 |
J1m | The MMap support is broken. | 18:23 |
J1m | Now I have to write (or update) a test. | 18:24 |
*** BjornT has quit IRC | 18:26 | |
*** zagy has quit IRC | 18:31 | |
*** natea has joined #zope3-dev | 18:41 | |
*** SteveA has joined #zope3-dev | 18:56 | |
mkerrin | J1m: cool - sorry I got dragged away there | 18:59 |
J1m | np | 19:00 |
*** ignas has quit IRC | 19:03 | |
*** mgedmin has joined #zope3-dev | 19:32 | |
srichter | J1m: did you make a checkin of your fix? (I did not get a message yet, maybe it is not working after the switch) | 19:41 |
*** alga has quit IRC | 19:42 | |
J1m | srichter, I am soo fing frustrated | 19:49 |
J1m | I'm trying to update the tests. | 19:49 |
J1m | But I can't get the tests to fail properly | 19:49 |
J1m | because the threads zope.conf option doesn't seem to work anymore. | 19:49 |
J1m | aaaaaaaargh | 19:49 |
J1m | so I probably won't check in the fix anytime soon. | 19:50 |
J1m | Because I have other things I have to do. :( | 19:50 |
srichter | ok | 19:50 |
srichter | so I am surprised that the threads option does not work anymore | 19:51 |
J1m | Yeah, me too. | 19:52 |
J1m | Or maybe I'm just missing something else. | 19:53 |
J1m | But I was modifying a test to test the new fix. | 19:53 |
J1m | The test is testing input buffering. | 19:53 |
J1m | Disabling input buffering should make the test fail, but it doesn't. | 19:53 |
J1m | So I have no idea what is going on. | 19:54 |
srichter | its twisted magic :-) | 19:54 |
J1m | But I don't have any more time atm. | 19:54 |
srichter | that's okay, I am about to head out as well | 19:54 |
*** J1m has quit IRC | 19:55 | |
*** romanofski has quit IRC | 20:00 | |
*** stub has quit IRC | 20:00 | |
*** mgedmin has quit IRC | 20:04 | |
*** efrerich has quit IRC | 20:23 | |
*** mexiKON has joined #zope3-dev | 20:26 | |
*** mexiKON is now known as philiKON | 20:29 | |
*** mkerrin has quit IRC | 20:37 | |
*** jenner has joined #zope3-dev | 21:58 | |
*** jinty has joined #zope3-dev | 22:00 | |
*** MrTopf has quit IRC | 23:01 | |
*** jinty has quit IRC | 23:10 | |
jenner | unbelievable, my event subscription works | 23:24 |
*** Aiste_ has quit IRC | 23:32 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!