IRC log of #zope for Thursday, 2012-08-09

*** kosh has joined #zope00:47
sqwishySuppose I'm trying to use zope to make serializers to turn object into strings. It seems simple to use adapters to get strings from objects. But I'm not sure how to go the other way.00:54
sqwishyI can obtain an adapter from an object which I want serialized, but I can't obtain the adapter from the serialized string.00:54
*** menesis has quit IRC01:02
*** Arfrever has quit IRC01:11
*** frapell has quit IRC01:15
*** frapell has joined #zope01:15
*** frapell has joined #zope01:15
*** polysix has quit IRC01:24
J1msqwishy, see http://svn.zope.org/zope.fssync/trunk/ which does what you're talking about more or less.01:37
*** polysix has joined #zope02:05
*** J1m has quit IRC02:21
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** benji has quit IRC03:16
*** frapell has quit IRC03:30
*** frapell has joined #zope03:30
*** frapell has joined #zope03:30
*** Spanktar has quit IRC03:44
*** RichyB has quit IRC04:11
*** tiwula has quit IRC04:22
*** benji has joined #zope04:26
*** alecm has quit IRC04:35
*** alecm has joined #zope04:42
*** alecm has joined #zope04:42
*** alecm has quit IRC05:31
*** tiwula has joined #zope05:41
*** dayne has joined #zope05:49
*** nande has quit IRC05:51
*** alecm has joined #zope05:52
*** KageSenshi has joined #zope05:56
*** kosh has quit IRC06:52
*** rbanffy has joined #zope07:16
*** mcdonc has joined #zope07:26
*** benji has quit IRC07:39
*** benji has joined #zope07:40
*** __mac__ has joined #zope07:47
*** __mac__ has quit IRC08:10
*** tiwula has quit IRC08:22
*** mcdonc_ has joined #zope09:03
*** mcdonc has quit IRC09:04
*** mcdonc_ has quit IRC09:10
*** __mac__ has joined #zope09:21
*** mcdonc has joined #zope09:23
*** agroszer has joined #zope09:35
*** mcdonc has quit IRC10:01
*** giacomos has joined #zope10:01
*** KageSenshi has quit IRC10:15
*** J1m has joined #zope10:21
*** KageSenshi has joined #zope10:30
*** eperez has joined #zope10:36
*** J1m has quit IRC10:58
*** menesis has joined #zope11:23
*** mitchell`off is now known as mitchell`11:23
*** fredvd has joined #zope11:30
*** zenwryly has quit IRC11:34
*** zenwryly has joined #zope11:34
*** evilbungle has quit IRC11:39
*** zenwryly has quit IRC11:47
*** zenwryly has joined #zope11:47
*** evilbungle has joined #zope12:03
*** eperez has quit IRC12:14
*** maurits has joined #zope12:17
*** giacomos has quit IRC12:23
*** zenwryly has quit IRC12:23
*** zenwryly has joined #zope12:23
*** giacomos has joined #zope12:27
*** teix has joined #zope12:32
*** zenwryly has quit IRC12:37
*** zenwryly has joined #zope12:37
*** eperez has joined #zope12:48
*** zenwryly has quit IRC12:52
*** zenwryly has joined #zope12:52
*** eperez has quit IRC12:57
*** eperez has joined #zope13:00
*** zenwryly has quit IRC13:06
*** zenwryly has joined #zope13:06
*** zenwryly has quit IRC13:11
*** zenwryly has joined #zope13:12
*** zenwryly has quit IRC13:20
*** zenwryly has joined #zope13:21
*** avoinea has joined #zope13:21
*** zenwryly has quit IRC13:31
*** zenwryly has joined #zope13:31
*** zenwryly has quit IRC13:35
*** zenwryly has joined #zope13:35
*** zenwryly has quit IRC13:49
*** zenwryly has joined #zope13:49
*** zenwryly has quit IRC13:50
*** zenwryly has joined #zope13:50
* mgedmin wants to improve z3c.password exception messages13:53
*** RichyB has joined #zope14:02
*** zenwryly has quit IRC14:04
*** zenwryly has joined #zope14:04
* mgedmin wants to kill himself14:08
*** zenwryly has quit IRC14:10
*** zenwryly has joined #zope14:11
*** J1m has joined #zope14:14
*** zenwryly has quit IRC14:18
*** zenwryly has joined #zope14:18
*** zenwryly has quit IRC14:33
*** zenwryly has joined #zope14:34
* mgedmin gets first signs of success!14:39
*** sunew has joined #zope14:42
*** zenwryly has quit IRC14:47
*** zenwryly has joined #zope14:47
*** zenwryly has quit IRC15:01
*** zenwryly has joined #zope15:01
*** mcdonc has joined #zope15:06
*** nande has joined #zope15:11
*** zenwryly has quit IRC15:16
*** zenwryly has joined #zope15:16
mgedminanybody cares about z3c.password and would like to take a look at http://zope3.pov.lt/trac/changeset/127450 ?15:23
*** zenwryly has quit IRC15:30
*** zenwryly has joined #zope15:31
*** J1m has quit IRC15:34
mgedminwhat was that tool that used SETUP.cfg files?15:44
mgedminis it dead dead dead?15:44
*** zenwryly has quit IRC15:45
*** zenwryly has joined #zope15:45
mgedminzpkg, I think?15:45
mgedminoh, gmane... "14 Nov 18:25"15:46
mgedminWHAT YEAR?15:46
mgedminturns out, 200515:46
mgedminbut nooo, time of day is way more important to see in a discussion than the fricking year15:46
* mgedmin realizes the year and month are visible in the sidebar15:47
nandexd i have no idea what z3c.password is15:47
betabugmgedmin: gmane's date thing is really idiotic, I think you have to dig for the year in the headers15:51
mgedminI dug it out of svn logs given revision numbers (the zpkg mailing list is quiet -- spam and svn log messages)15:51
*** eperez has quit IRC15:53
agroszermgedmin, go ahead and cut a release15:54
mgedminof z3c.password?  I can do that...15:54
agroszeryup15:54
*** zenwryly has quit IRC15:59
*** zenwryly has joined #zope15:59
*** zenwryly has quit IRC16:13
*** zenwryly has joined #zope16:15
*** kosh has joined #zope16:16
*** mcdonc_ has joined #zope16:20
*** mcdonc__ has joined #zope16:21
*** mcdonc_ has quit IRC16:25
*** mcdonc has quit IRC16:25
*** zenwryly has quit IRC16:28
*** zenwryly has joined #zope16:28
*** mcdonc has joined #zope16:29
*** mcdonc__ has quit IRC16:34
*** J1m has joined #zope16:34
*** __mac__ has quit IRC16:39
*** zenwryly has quit IRC16:42
*** zenwryly has joined #zope16:43
*** frapell has quit IRC16:45
*** frapell has joined #zope16:46
*** frapell has joined #zope16:46
*** goschtl has joined #zope16:46
*** frapell has joined #zope16:46
*** frapell has joined #zope16:46
*** __mac__ has joined #zope16:51
*** menesis has quit IRC16:56
*** zenwryly has quit IRC16:57
*** zenwryly has joined #zope16:57
*** sunew has quit IRC17:00
*** __mac__ has quit IRC17:01
*** dayne has quit IRC17:05
*** zenwryly has quit IRC17:11
*** zenwryly has joined #zope17:11
*** menesis has joined #zope17:23
*** zenwryly has quit IRC17:25
*** zenwryly has joined #zope17:26
*** zenwryly has quit IRC17:40
*** zenwryly has joined #zope17:41
*** Fs0L has joined #zope17:43
*** zenwryly has quit IRC17:54
*** zenwryly has joined #zope17:54
*** maurits has quit IRC18:07
*** zenwryly has quit IRC18:09
*** zenwryly has joined #zope18:09
*** daMaestro has joined #zope18:10
*** zenwryly has quit IRC18:23
*** zenwryly has joined #zope18:24
*** benji has quit IRC18:26
*** benji has joined #zope18:27
*** zenwryly has quit IRC18:38
*** zenwryly has joined #zope18:38
*** benji has quit IRC18:40
*** benji has joined #zope18:41
*** agroszer has quit IRC18:49
*** goschtl has quit IRC18:49
*** zenwryly has quit IRC18:52
*** zenwryly has joined #zope18:53
*** tiwula has joined #zope19:02
*** avoinea has quit IRC19:06
*** zenwryly has quit IRC19:06
*** zenwryly has joined #zope19:06
*** kosh has quit IRC19:08
*** giacomos has quit IRC19:11
*** zenwryly has quit IRC19:21
*** zenwryly has joined #zope19:21
*** Spanktar has joined #zope19:31
*** mcdonc_ has joined #zope19:31
*** mcdonc has quit IRC19:35
*** zenwryly has quit IRC19:35
*** zenwryly has joined #zope19:35
*** mcdonc_ has quit IRC19:37
*** zenwryly has quit IRC19:50
*** zenwryly has joined #zope19:50
*** RichardB has joined #zope20:00
*** RichyB has quit IRC20:00
*** RichardB has quit IRC20:04
*** zenwryly has quit IRC20:04
*** zenwryly has joined #zope20:04
*** RichyB has joined #zope20:05
*** zenwryly has quit IRC20:18
*** zenwryly has joined #zope20:20
*** evilbungle has quit IRC20:27
*** yvl has quit IRC20:28
*** frapell has quit IRC20:30
*** frapell has joined #zope20:30
*** frapell has joined #zope20:30
*** frapell has quit IRC20:30
*** Guest95083 has joined #zope20:30
*** zenwryly has quit IRC20:33
*** zenwryly has joined #zope20:33
*** Guest95083 has quit IRC20:34
*** maker has joined #zope20:36
makerHello.20:36
makerI have an interface and a mixin class, with a few abstractmethods. I was wondering if there was something to achieve the result of "raise NotImplementedError" if the specific method was not overrided withoud breaking verify.verifyObject.20:38
*** zenwryly has quit IRC20:47
*** zenwryly has joined #zope20:47
*** zenwryly has quit IRC21:02
*** zenwryly has joined #zope21:03
*** frapell has joined #zope21:08
*** frapell has joined #zope21:08
*** TresEquis has joined #zope21:13
*** menesis has quit IRC21:15
*** zenwryly has quit IRC21:16
*** zenwryly has joined #zope21:16
*** frapell has quit IRC21:26
*** frapell has joined #zope21:26
*** frapell has joined #zope21:27
*** zenwryly has quit IRC21:30
*** zenwryly has joined #zope21:31
*** zenwryly has quit IRC21:45
*** zenwryly has joined #zope21:45
*** __mac__ has joined #zope21:46
*** zenwryly has quit IRC21:59
*** zenwryly has joined #zope21:59
*** zenwryly has quit IRC22:14
*** zenwryly has joined #zope22:14
*** Fs0L has quit IRC22:21
*** RichyB has quit IRC22:25
*** zenwryly has quit IRC22:28
*** zenwryly has joined #zope22:28
*** zenwryly has quit IRC22:43
*** zenwryly has joined #zope22:44
*** TresEquis has quit IRC22:45
*** TresEquis has joined #zope22:45
benbangertJ1m: around?22:46
benbangertgot a weird heisenbug in logging thread madness with gevent :)22:46
*** zenwryly has quit IRC22:57
*** zenwryly has joined #zope22:57
benbangertJ1m: your logging trick isn't good enough. https://github.com/python-zk/kazoo/issues/1622:58
*** teix has quit IRC22:58
benbangertJ1m: because the logger has a lock, and the monkey patching mucks up the lock with a gevent lock....22:58
J1mHave I mentioned my opinion of gevent monkey patching?23:05
benbangertJ1m: found a solution.... grabbing the logging Handler instance itself, and setting lock = None on it23:07
benbangertwill prevent it from attempting to lock at all during writing output23:07
benbangertyea, I know, it sucks23:08
benbangert:)23:08
J1mbenbangert, so this is really an issue w gevent and logging.23:08
benbangertsince this is the only user of the ZooKeeper logging handler, it shouldn't need to lock23:08
benbangertyea, cause logging handlers make a threading.RLock instance..... and when monkey-patched..... boom23:08
J1mThat's a stretch imo.23:08
benbangertI could replace the lock on the handler instance with a proper threading lock23:09
J1manyone can use any logger they want.23:09
benbangertthough I have to dig up the real un-monkey-patched one :)23:09
benbangertits really nasty to get an unadulterated one though :(23:09
J1mIt's nasty to run around monkey patching things in such a profound way.23:10
J1mMonkey patching in gevent is optional.23:10
J1mI use gevent wo monkey patching.23:10
*** zenwryly has quit IRC23:11
benbangertsure, but not everyone does23:12
J1mThis is a hard problem to solve.  You're basically saying that gevent is going to break a basic feature of the standard library and that kazoo has to somehow work around that.23:12
benbangertthats correct23:12
benbangertgevent monkey patching breaks logging23:12
J1mk, whatever :)23:12
benbangertif you want to log from a separate thread23:13
*** zenwryly has joined #zope23:13
J1mI wouldn't want to have maintain that.23:13
J1mwhen zc.zk is reimimplemented on top of kazoo, I won't have to worry about it.23:13
benbangertnot supporting it rules out gevent entirely for web use23:13
J1mIt does not.23:13
benbangertsince the webapp server monkey patch up front23:13
J1mNo way.23:13
benbangertgunicorn + gevent will monkey patch as it loads23:13
J1mOK, thanks for the warning. :)23:14
benbangertonce it does, the logging done the way kazoo/zc.zk will break at some point23:14
J1mso basically, you're saying gunicorn is broken.23:14
benbangertif you ask it to use gevent, it monkey-patches with gevent23:14
benbangertso that your webapp works 'properly' with gevent23:14
J1mpywsgi doesn't require monkey patching.23:15
J1mThis is wildly more invasive that zope ever was.23:15
J1mwell, whatever.23:15
J1mIf you feel like maintaining this in kazoo, more power to you.  I wouldn't.23:16
benbangertpywsgi must not be spawning greenlets to handle requests then23:17
J1myes23:17
J1mno23:17
J1mIt does spawn greenlets.23:17
benbangertah, so it relies on you actually making sure to use gevent in your app23:17
J1mYou don't need monkey patching to use pywsgi.23:17
benbangertgunicorn takes the 'magic' approach by using monkey patching so your app "just works"23:17
J1mUh huh.23:18
benbangertcause odds are most of your libraries somewhere, are not using gevent in a large app23:18
benbangertso without the monkey-patching, it'll have crappy performance23:18
J1mimo, anyone who has a clue and uses an async network api also uses thread pools, unless all they're doing is moving bits between sockets.23:19
benbangertagreed23:19
J1mand if you do that, you don't need monkey patching.23:19
*** __mac__ has quit IRC23:20
J1mThese people in the gevent (and twisted) community who think you can do everything async and that everyone else has to conform are drinking too much of their own cool-ade.23:21
J1mThat's my (increasingly grumpy :) opinion. :)23:21
benbangertya know, I agree entirely, this code is vomit-worthy23:23
benbangert:)23:23
*** zenwryly has quit IRC23:26
*** zenwryly has joined #zope23:26
J1mbenbangert, ftr zc.resumelb is a wsgi server built on gevent (and zc.zk) that doesn't require apps to be gevent aware and doesn't monkey patch.23:32
benbangertJ1m: yea, but I doubt apps with threads would 'just work'23:32
benbangertcause the second you make a lock object and use it across threads and a gevent thread, gevent will vomit23:32
J1mNo, because there's no monkey patching in zc.resumelb.  In fact, zc.resumelb provides thread pools, which is how we use it.23:33
J1mMy point is that you can have a gevent based wsgi server without monkey patching and without apps having to be gevent aware.23:34
J1mzc.resumelb doesn't use thread pools by default, though maybe it should.23:35
benbangerthow does it handle the socket without monkey patching it?23:36
benbangertoh, you use the gevent one23:36
J1mYes.23:36
benbangertso most libraries use a socket to talk to other services. if they all use blocking sockets, then your 100 greenlets are gonna go one at a time on the socket23:36
J1mYes, unless you use thread pools.23:37
J1mwhich is what we do.23:37
benbangertsure, your app will 'work' without the monkey patching, but it won't get a very big performance boost23:37
J1msure it will, cuz the the HTTP IO is still asyncronous.23:37
TresEquisjoin #breckprog23:38
J1mYou aren't creating a thread for each request.23:38
J1mTresEquis, you talkin to us?23:38
TresEquissorry, missed the '/'23:38
J1mheh23:39
*** zenwryly has quit IRC23:40
*** zenwryly has joined #zope23:40
*** zenwryly has quit IRC23:55
*** zenwryly has joined #zope23:55
*** TresEquis has quit IRC23:57

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