IRC log of #zope for Thursday, 2011-07-28

*** TresEquis has quit IRC00:07
*** davisagli has quit IRC00:20
*** davisagli has joined #zope00:21
*** davisagli has quit IRC00:29
*** davisagli has joined #zope00:30
*** m8 has joined #zope00:42
*** do3cc has quit IRC00:47
*** d2m has quit IRC01:06
*** tiwula has quit IRC01:08
*** hever has quit IRC01:13
*** m8 has quit IRC01:15
*** ajsmith has quit IRC01:36
*** sp0cksbeard has left #zope01:38
*** River_Rat has joined #zope01:44
*** RiverRat has quit IRC01:44
*** J1m_ has quit IRC01:50
*** cheetahw26 has quit IRC01:51
*** supton_ has joined #zope01:59
*** supton has quit IRC02:01
*** supton_ has quit IRC02:03
*** rbanffy has quit IRC02:05
*** nun has joined #zope02:12
*** MrTango has quit IRC02:23
*** sunew has quit IRC02:31
*** slackrunner has joined #zope02:33
*** slackrunner has quit IRC02:38
*** mr_jolly has quit IRC02:39
*** do3cc has joined #zope02:44
*** slackrunner has joined #zope02:46
*** slackrunner has quit IRC02:58
*** Spanktar has joined #zope02:58
*** do3cc has quit IRC03:05
*** J1m_ has joined #zope03:10
*** dayne has quit IRC03:22
*** runyaga has quit IRC03:30
*** runyaga has joined #zope03:31
*** runyaga has joined #zope03:31
*** River-Rat has joined #zope03:41
*** J1m_ has quit IRC03:41
*** River_Rat has quit IRC03:43
*** SpankyFromBRC has joined #zope03:53
*** daMaestro has quit IRC03:55
*** Spanktar has quit IRC03:57
*** sm has quit IRC04:11
*** slackrunner has joined #zope05:09
*** slackrunner has quit IRC05:49
*** slackrunner has joined #zope05:51
*** davisagli has quit IRC06:00
*** davisagli has joined #zope06:01
*** slackrunner has quit IRC06:13
*** dayne has joined #zope06:19
*** sm has joined #zope06:36
*** sm has quit IRC06:40
*** slackrunner has joined #zope06:42
*** davisagli has quit IRC07:14
*** davisagli has joined #zope07:15
*** dayne has quit IRC07:31
*** davisagli has quit IRC07:53
*** davisagli has joined #zope07:53
*** davisagli has quit IRC07:57
*** davisagli has joined #zope07:57
*** davisagli has quit IRC07:59
*** davisagli has joined #zope07:59
*** mr_jolly has joined #zope08:05
*** zagy has joined #zope08:48
*** __mac__ has joined #zope09:04
*** slackrunner has quit IRC09:32
*** slackrunner has joined #zope09:37
*** slackrunner has quit IRC09:42
*** rogererens has joined #zope09:44
*** alexpilz1 has quit IRC09:53
*** agroszer has joined #zope09:55
*** planetzopebot has quit IRC10:08
*** planetzopebot has joined #zope10:08
*** avoinea has joined #zope10:11
*** nun has quit IRC10:43
*** MrTango has joined #zope11:06
*** alexpilz has joined #zope11:07
*** goschtl has joined #zope11:17
*** yvl has joined #zope11:19
*** severb has joined #zope11:21
severbQuick zca question: Do I need to explicitly use 'implements()' or can I achieve the same effect using registerUtility but per instance as opposite to per class?11:21
severbFor example http://paste.pound-python.org/show/1IBtwSsJBo9MYO1RoQ16/ neither SimpleEmitter, JsonFormatter or StrFormatter know beforehand what interface they implement11:22
*** rogererens has quit IRC11:27
*** rogererens has joined #zope11:32
*** nun has joined #zope11:33
*** Wu has joined #zope11:34
*** hever has joined #zope11:52
__mac__severb: registerUtility is enough, interfaces provided by the utility are only used as fallback11:56
severb__mac__: than why (in the code example) my_formatter is None?12:03
__mac__severb: my_emitter does not implement the interface only the registry knows that querying for IEmitter it should return the SimpleEmitter Instance12:05
severbAnd how can I specify that my_emitter implements the interface? Only by calling 'implements()' inside the class?12:06
__mac__severb: You might call zope.interface.alsoProvides on the instance12:08
severbThanks, I'll give it a try12:09
*** sunew has joined #zope12:12
*** severb has left #zope12:19
*** evilbungle has joined #zope12:28
*** TomBlockley has joined #zope12:46
*** teix has joined #zope12:50
*** teix has quit IRC12:52
*** teix has joined #zope12:55
*** madmax- has joined #zope13:13
*** evilbungle has quit IRC13:22
*** Wu has quit IRC13:24
*** evilbungle has joined #zope13:34
*** nun has joined #zope13:36
*** hever has quit IRC13:39
*** menesis has joined #zope13:45
*** menesis has quit IRC13:49
*** menesis has joined #zope13:54
*** hever has joined #zope14:14
*** madmax- has quit IRC14:14
*** ccomb has joined #zope14:22
*** madmax- has joined #zope14:36
*** do3cc has joined #zope14:41
*** m8 has joined #zope15:04
*** alexpilz has left #zope15:24
EpeliCould someone please approve my subcription to zodb-dev mailinlist?15:28
*** rbanffy has joined #zope15:43
*** madmax- has quit IRC15:55
*** ccomb has quit IRC16:00
*** J1m_ has joined #zope16:04
*** m8 has quit IRC16:05
*** ccomb has joined #zope16:15
*** sp0cksbeard has joined #zope16:20
*** ajsmith has joined #zope16:21
*** rbanffy has quit IRC16:38
*** do3cc has quit IRC16:39
*** rogererens has quit IRC16:39
*** rbanffy has joined #zope16:55
*** __mac__ has quit IRC16:59
*** RaceCondition has joined #zope17:12
RaceConditionare there any more thorough guides to zope.security besides http://pypi.python.org/pypi/zope.security ?17:12
RaceConditionI'm looking to use zope.security in my non-zope application, and to use the default zope security policy17:13
RaceConditionthat one: http://docs.zope.org/zope3/Book/security/zopepolicy/show.html17:13
*** rbanffy has quit IRC17:47
*** nun has quit IRC17:58
*** menesis has quit IRC18:02
*** menesis has joined #zope18:04
*** rogererens has joined #zope18:13
*** rbanffy has joined #zope18:15
*** runyaga_ has joined #zope18:15
*** hever has quit IRC18:16
*** daMaestro has joined #zope18:18
*** runyaga has quit IRC18:18
*** zagy has quit IRC18:21
*** agroszer has quit IRC18:33
*** supton has joined #zope18:33
*** goschtl has quit IRC18:42
*** TresEquis has joined #zope18:46
*** do3cc has joined #zope18:48
*** do3cc has quit IRC18:52
*** TresEquis has quit IRC18:56
*** __mac__ has joined #zope18:59
*** davisagli has quit IRC19:03
*** __mac__ has quit IRC19:04
*** davisagli has joined #zope19:04
*** tiwula has joined #zope19:07
RaceConditiondoes ZODB have a mechanism for async callbacks, or how else does zc.twist manage to do all work inside a single thread?19:16
*** runyaga_ is now known as runyaga19:16
*** runyaga has joined #zope19:17
*** slackrunner has joined #zope19:35
*** avoinea has quit IRC19:48
*** m8 has joined #zope19:49
*** hever has joined #zope19:49
mgedminI'm not familiar with zc.twist19:49
mgedminthe "traditional" way of using zodb with twisted is to use a thread pool19:50
*** davisagli has quit IRC19:51
*** hever has quit IRC19:52
*** davisagli has joined #zope19:52
*** slackrunner has quit IRC19:53
*** agroszer has joined #zope20:06
koshhail freaks!20:08
RaceConditionmgedmin: are there any guides/articles on how to set up a threadpool to use ZODB in twisted? I've tried googling but nothing20:11
*** tiwula has quit IRC20:11
*** alecm has quit IRC20:14
*** slackrunner has joined #zope20:14
*** kittonian has joined #zope20:18
*** agroszer has quit IRC20:18
*** ccomb1 has joined #zope20:20
*** ccomb has quit IRC20:20
*** __mac__ has joined #zope20:25
*** evilbungle has quit IRC20:36
*** TomBlockley has quit IRC20:36
*** zagy has joined #zope20:38
*** ccomb1 is now known as ccomb20:41
*** do3cc has joined #zope21:01
*** sunew has quit IRC21:10
*** ccomb has quit IRC21:14
runyagaRaceCondition, zc.twist or zc.async uses twisted and zodb21:15
*** ccomb has joined #zope21:16
*** J1m_ has quit IRC21:17
*** J1m has joined #zope21:17
RaceConditionrunyaga: yeah, I'm reading the source of zc.async21:20
RaceConditionfrom zc.twist src I cannot really extract how to correctly set up zc.twist21:20
runyagano tests?21:20
RaceConditionthe README only has partial examples/code fragments21:20
RaceConditionI mean, how to first set up ZODB, and then use it through zc.twist21:20
RaceConditionI mean, not set up ZODB, but set it up so that it would work correctly with zc.twist21:21
RaceConditionlike when to get a new connection to the db, or if I can just use a central dbroot instance and have zc.twist manage connections for me21:22
RaceConditionI think it's the latter, by reading the src of zc.twist, but I'm still not sure as the code is almost uncommented21:22
*** ccomb has quit IRC21:25
*** do3cc has quit IRC21:26
*** runyaga_ has joined #zope21:28
mgedminah, the keeping up best traditions of zope 3, I see21:30
runyaga_well you can email zodb-dev mailing list21:31
mgedmin"it was hard to write, it should be hard to use"21:31
*** runyaga has quit IRC21:31
*** runyaga_ has quit IRC21:33
*** runyaga_ has joined #zope21:34
RaceConditionmaybe somebody knows any open source projects besides zc.async that use zc.twist?21:34
mgedminok, I'm curious21:35
mgedminzc.twist is 580 lines of code21:36
RaceConditionyeah21:36
mgedminhave you looked at src/zc/twist/README.txt?21:37
kittonianI seem to be having a strange issue and am wondering if it's a zope problem. I have a 5GB file that I'm trying to upload (it's a zip file that will be a download link) and it fails every time the FTP client gets to the end of the upload. Is this a Zope limitation (I'm running 2.11.4-final)?21:37
RaceConditionmgedmin: yes, but it doesn't specify how to set up ZODB with a Twisted app21:37
kittoniani have no issues uploading other files, including 100mb zip files21:37
mgedminsame way you'd set it up with any other app, I suppose21:38
mgedmindb = DB(FileStorage('Data.fs'))21:38
RaceConditionso I set up a global DB instance, and each time I need access to the data, I retrieve a new root object?21:38
RaceConditionand from there on, whenever I need to operate on it, I delegate it to zc.twist.Partial?21:39
* mgedmin is still reading21:39
*** ccomb has joined #zope21:39
*** rogererens has quit IRC21:39
*** rogererens has joined #zope21:40
mgedminuh, I think so, yes: open one connection at startup, fetch the root or whatever object, then use Partial() for everything21:42
mgedminoh dear, I'd be tempted to stay far far away from this package21:42
mgedminmostly because I don't understand it21:42
mgedmin_methodwrapper.c, yikes21:42
*** Arfrever has joined #zope21:43
*** rbanffy has quit IRC21:43
RaceConditionsame here... to be honest, I just want a for-dummies explanation of why zc.twist is needed and why I cannot just go straight to DB.conn().root()21:43
mgedminwell, if you do, it won't be async21:44
RaceConditionis it so that the twisted reactor wouldn't be blocked during DB access? or is it related to continuing the existing transaction to a deferred.. or what21:44
RaceConditionok, so, zc.twist makes ZODB access async?21:44
RaceConditionhowever, the src of zc.twist does not any ZODB callbacks/polling... so how could that be the case?21:45
RaceConditionI mean, other than polling if there's a usable connection in the pool21:46
RaceConditionmaybe that's it? and everything else will still be blocking?21:46
mgedminI have no idea21:47
mgedminI think you're right, and that zc.twist makes no sense21:48
RaceConditionso I'm back at the beginning :P21:48
RaceConditionmaybe there's somebody here who's used zc.twist/ZODB with Twisted21:49
mgedminI've used ZODB with twisted, but I didn't use zc.twist21:50
*** alecm has joined #zope21:51
RaceConditionis there any way you could show the relevant excerpts from the source that would help me get the right set up going?21:51
mgedminI'm trying to find the earliest revisions of SchoolTool online, and failing21:54
mgedminthe svn repo was converted into a bazillion bzr repos by people who are not me21:55
mgedminI don't know what is where now21:55
*** rbanffy has joined #zope21:55
mcdonci'm talking out of school here a bit, but if the goal is async in general rather than twisted, gevent might be a better way to handle it (if it works with zodb)21:56
mcdonc(given that the api doesnt need to change)21:56
mgedminI don't think zodb has any support for real async...21:56
mgedminmaybe if you use RelStorage with an async postgresql driver or something21:57
mcdoncthe i/o stuff in zodb is generally all-python so gevent might work no21:57
mcdoncat least filestorage anyway21:57
mgedmingevent monkeypatches socket?21:57
mcdoncyeah21:58
mgedminthen ZEOStorage might become async21:58
mgedminI'd want to see serious stress tests before I trusted my data to such a beast...21:58
mcdoncyeah21:58
*** do3cc has joined #zope22:06
RaceConditionsorry, was in sauna22:12
RaceConditionmgedmin: I have the source of SchoolTool.. I'll just investigate that22:12
RaceConditionor I might just use the simplistic approach with zc.twist and no threadpool and see if it works out, and deal with any problems JIT22:13
*** dayne has joined #zope22:20
mgedminschooltool hasn't been using twisted for many years now22:24
mgedminyou'd need schooltool from 2004 or something22:24
mgedminwhich is what I had difficulties finding22:24
mgedminand besides it used the trivial threadpool solution22:25
*** zagy has quit IRC22:36
*** kittonian has quit IRC22:36
RaceConditionI see22:38
RaceConditionmgedmin: what is a trivial threadpool, and what's the other option?22:38
RaceCondition...obviously non-trivial threadpool, but more precisely :P22:39
*** ccomb has quit IRC22:41
mgedminuhh.... twisted has this reactor.callInThead thing, I don't even remember the spelling22:42
mgedminand then your request handler that gets run in a worker thread opens a db connection, does stuff, commits, closes db connection, invokes reactor.callLater(0, send_http_response, data) or something22:43
*** rogererens has quit IRC22:43
*** hever has joined #zope22:43
RaceConditionreactor.deferToThread maybe22:44
*** rogererens has joined #zope22:44
mgedminthat's more like it22:44
mgedminand there's probably some threadpool init function where you specify the # of worker threads you want to have22:44
RaceConditionI'm still wondering though why the readme of zc.twist says "Everything can be done within the main thread, so it can be full-bore Twisted usage, without threads."22:45
mgedminit also has a bunch of gotchas22:45
RaceConditionyeah, but still22:46
mgedmin:)22:47
*** hever has quit IRC22:48
*** alecm has quit IRC22:54
RaceConditionmgedmin: I think I'm gonna post to a mailing list, but which one? zope-dev?22:55
mgedminzodb-dev is probably a good one22:56
RaceConditionyeah, I meant zodb-dev, not zope-dev22:57
*** dayne has quit IRC22:58
*** dayne has joined #zope23:00
*** __mac__ has quit IRC23:12
*** dayne has quit IRC23:17
*** dayne has joined #zope23:18
RaceConditionhttps://mail.zope.org/pipermail/zodb-dev/2011-July/014324.html23:19
*** davisagli has quit IRC23:21
*** davisagli has joined #zope23:22
*** runyaga_ has quit IRC23:23
*** rogererens has quit IRC23:24
*** rogererens has joined #zope23:25
*** bigkevmcd has quit IRC23:30
*** teix has quit IRC23:32
*** teix has joined #zope23:33
*** teix has quit IRC23:34
*** teix has joined #zope23:35
*** alecm has joined #zope23:38
*** alecm has joined #zope23:38
*** dayne has quit IRC23:49
*** do3cc has quit IRC23:52
*** do3cc has joined #zope23:52
*** alecm has quit IRC23:55
*** Arfrever has quit IRC23:58
*** hever has joined #zope23:59

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