IRC log of #zope3-dev for Friday, 2005-12-30

*** hazmat has joined #zope3-dev00:01
*** mkerrin has quit IRC00:06
*** d2m has quit IRC00:10
jennerhm, ok, it's working for a container that inherits zope.app.folder.Folder but it fails for an IContainer implementation which inherits BTreeContainer00:10
jennerargh, the IContainer inherited INameChooser as well00:20
* jenner slaps himself a bit with a large trout00:20
*** hazmat has quit IRC00:42
*** jinty has joined #zope3-dev00:52
*** SteveA has joined #zope3-dev00:53
*** philiKON has quit IRC01:08
*** jack-e has quit IRC02:12
*** tav has joined #zope3-dev02:15
*** natea is now known as natea|dinner02:23
*** jenner has quit IRC02:30
*** jinty has quit IRC02:41
*** stub has joined #zope3-dev02:46
*** romanofski has quit IRC02:59
*** natea|dinner is now known as natea03:04
*** yota has quit IRC03:10
*** natea is now known as natea|away04:03
*** mihamina has left #zope3-dev04:21
*** ruda_porto has quit IRC04:26
*** zbir has quit IRC05:55
*** Aiste has quit IRC05:55
*** jbb666 has quit IRC05:55
*** Aiste has joined #zope3-dev06:11
*** jbb666 has joined #zope3-dev06:11
*** Aiste_ has joined #zope3-dev06:17
*** Aiste has quit IRC06:31
*** philiKON has joined #zope3-dev06:41
*** myroslav has quit IRC07:10
*** newpers has quit IRC07:35
*** newpers has joined #zope3-dev07:50
*** eins has joined #zope3-dev08:13
einshi all08:13
*** myroslav has joined #zope3-dev08:14
*** myroslav has joined #zope3-dev08:20
*** myroslav has quit IRC08:23
*** yota has joined #zope3-dev08:24
*** myroslav has joined #zope3-dev08:29
*** myroslav has quit IRC08:33
*** myroslav has joined #zope3-dev08:39
*** myroslav has quit IRC08:42
*** myroslav has joined #zope3-dev08:49
*** myroslav has quit IRC08:51
*** myroslav has joined #zope3-dev08:58
*** myroslav has quit IRC09:01
*** d2m has joined #zope3-dev09:04
*** myroslav has joined #zope3-dev09:07
*** myroslav has quit IRC09:10
*** myroslav has joined #zope3-dev09:18
*** myroslav has joined #zope3-dev09:25
*** myroslav has quit IRC09:28
*** stub has quit IRC09:33
*** myroslav has joined #zope3-dev09:35
*** myroslav has quit IRC09:38
*** myroslav has joined #zope3-dev09:44
*** myroslav has quit IRC09:46
*** zagy has joined #zope3-dev10:53
*** ignas has joined #zope3-dev11:06
*** jenner has joined #zope3-dev11:23
*** mgedmin has joined #zope3-dev12:49
*** eins has quit IRC13:18
*** romanofski has joined #zope3-dev13:21
romanofskimoin13:21
philiKONmoin romanofski13:22
*** BjornT has quit IRC13:44
jennerI'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
philiKONjenner, got my book?13:46
jennerphiliKON: no13:46
philiKONthen buy it :)13:46
philiKONseriously13:46
philiKONyou want events13:46
philiKONmake subscriber that listens to IObjectAdded event13:47
*** romanofski is now known as rom|aw13:47
*** eins has joined #zope3-dev13:59
*** BjornT has joined #zope3-dev14:06
*** Jim7J1AJH has joined #zope3-dev14:07
*** Jim7J1AJH has left #zope3-dev14:09
*** mkerrin has joined #zope3-dev14:13
*** jenner has quit IRC14:26
*** stub has joined #zope3-dev14:51
*** ruda_porto has joined #zope3-dev15:06
*** rom|aw is now known as romanofski15:06
*** jinty has joined #zope3-dev16:02
*** J1m has joined #zope3-dev16:10
*** eins has quit IRC16:21
srichterJ1m: we have a show-stopper16:21
J1mOh?16:21
srichterJ1m: I had a small sprint yesterday and in the app we developed, we could not upload large files using the twisted server16:22
srichterit would not even receive a request16:22
srichterwhen we switched to ZServer it worked fine16:22
J1mHm16:22
J1mAny idea why?16:23
srichterno, we did not have time to investigate16:23
srichterbut it must be something about the large file support in twisted.web216:23
srichterJ1m: you only messed with the output handling, right?16:23
J1mNo, I applied James' input-buffering patch.16:24
srichterand after this happens, you cannot shut down the server using CTRL+C anymore either16:24
J1mThis is easy to disable though.16:24
srichterJoel (the guy I was sprinting with, usually here as jfmoxley) said it still worked in 3.2b116:25
J1mLook at zope/app/twisted/http.py16:26
J1mTry commenting out the line:16:27
J1m    resource = Prebuffer(resource)16:27
srichterok, will do16:27
srichterJ1m: yep, that's the problem; now it works16:31
J1mThat's what I get for integrating code I don't understand. :(16:31
J1mOK, try this please: ...16:31
srichterok...16:32
*** mgedmin has quit IRC16:32
J1mUncomment that line and arrange for the first if condition in Prebuffer.hook to always be true.16:33
srichterok16:33
J1mif 1 or (content_length is not None and int(content_length) > max_stringio):16:33
J1mor just:16:33
J1mif 1:16:33
J1miow, get rid of the attempt to use a stringio16:33
srichterthen it should always fail, right?16:34
J1mwhat should always fail?16:34
J1mI want to make the code more like James Knights origibal code and always use a temporary file.16:34
srichterthat fails16:35
srichterso the StringIO version seems to work16:35
srichterI try "if False" now16:35
J1mI 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
J1mTyping is too hard.16:36
J1m:)16:36
*** andrew_m has joined #zope3-dev16:43
*** jinty has quit IRC16:48
*** alga has joined #zope3-dev16:50
*** philiKON has quit IRC16:59
*** jhauser_ has quit IRC17:07
*** MrTopf has joined #zope3-dev17:23
*** refried has joined #zope3-dev17:25
refriedis there a good location to find Zope3 products?17:30
srichterno17:31
srichterthere are really not that many Zope 3 packages out there17:31
srichtersearching the archives and announcements might help17:31
srichteralso look at svn.zope.org for some others17:31
J1mThis prebuffering code is a Rube Goldberg machine. :(17:39
srichterhuh?17:40
J1mI creates an incredibly convoluted and inefficient set of data structures.17:40
J1mWe collect the input in a file and we end up with something that threads through the reactor to read the damn thing.17:41
srichteroh, I see, sigh17:41
J1mDo you know what a Rube Goldberg machine is? :)17:42
srichterI am just reading his Wikipedia entry :-)17:43
mkerrinJ1m: 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 base17:45
J1mmkerrin, the problem isn't the logic to switch to a temporary file.17:46
J1mThe problem is that using a temporary file doesn't work.17:46
J1mAnd it's use is hideously convoluted.17:46
J1mmkerrin, did you look at the patch that James Knight sent on the 16th?17:49
J1mmkerrin, di you consider yourself to be a twisted programmer? :)17:50
J1mmkerrin, do you consider yourself to be a twisted programmer? :)17:50
mkerrinI am not a core developer - I just use it now and again to get stuff done17:51
J1mDo you understand Knight's patch?17:52
*** natea|away has quit IRC18:10
*** efrerich has joined #zope3-dev18:19
J1mOK, fixed it.18:23
J1mThe MMap support is broken.18:23
J1mNow I have to write (or update) a test.18:24
*** BjornT has quit IRC18:26
*** zagy has quit IRC18:31
*** natea has joined #zope3-dev18:41
*** SteveA has joined #zope3-dev18:56
mkerrinJ1m: cool - sorry I got dragged away there18:59
J1mnp19:00
*** ignas has quit IRC19:03
*** mgedmin has joined #zope3-dev19:32
srichterJ1m: 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 IRC19:42
J1msrichter, I am soo fing frustrated19:49
J1mI'm trying to update the tests.19:49
J1mBut I can't get the tests to fail properly19:49
J1mbecause the threads zope.conf option doesn't seem to work anymore.19:49
J1maaaaaaaargh19:49
J1mso I probably won't check in the fix anytime soon.19:50
J1mBecause I have other things I have to do. :(19:50
srichterok19:50
srichterso I am surprised that the threads option does not work anymore19:51
J1mYeah, me too.19:52
J1mOr maybe I'm just missing something else.19:53
J1mBut I was modifying a test to test the new fix.19:53
J1mThe test is testing input buffering.19:53
J1mDisabling input buffering should make the test fail, but it doesn't.19:53
J1mSo I have no idea what is going on.19:54
srichterits twisted magic :-)19:54
J1mBut I don't have any more time atm.19:54
srichterthat's okay, I am about to head out as well19:54
*** J1m has quit IRC19:55
*** romanofski has quit IRC20:00
*** stub has quit IRC20:00
*** mgedmin has quit IRC20:04
*** efrerich has quit IRC20:23
*** mexiKON has joined #zope3-dev20:26
*** mexiKON is now known as philiKON20:29
*** mkerrin has quit IRC20:37
*** jenner has joined #zope3-dev21:58
*** jinty has joined #zope3-dev22:00
*** MrTopf has quit IRC23:01
*** jinty has quit IRC23:10
jennerunbelievable, my event subscription works23:24
*** Aiste_ has quit IRC23:32

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