| *** TresEquis has quit IRC | 00:07 | |
| *** davisagli has quit IRC | 00:20 | |
| *** davisagli has joined #zope | 00:21 | |
| *** davisagli has quit IRC | 00:29 | |
| *** davisagli has joined #zope | 00:30 | |
| *** m8 has joined #zope | 00:42 | |
| *** do3cc has quit IRC | 00:47 | |
| *** d2m has quit IRC | 01:06 | |
| *** tiwula has quit IRC | 01:08 | |
| *** hever has quit IRC | 01:13 | |
| *** m8 has quit IRC | 01:15 | |
| *** ajsmith has quit IRC | 01:36 | |
| *** sp0cksbeard has left #zope | 01:38 | |
| *** River_Rat has joined #zope | 01:44 | |
| *** RiverRat has quit IRC | 01:44 | |
| *** J1m_ has quit IRC | 01:50 | |
| *** cheetahw26 has quit IRC | 01:51 | |
| *** supton_ has joined #zope | 01:59 | |
| *** supton has quit IRC | 02:01 | |
| *** supton_ has quit IRC | 02:03 | |
| *** rbanffy has quit IRC | 02:05 | |
| *** nun has joined #zope | 02:12 | |
| *** MrTango has quit IRC | 02:23 | |
| *** sunew has quit IRC | 02:31 | |
| *** slackrunner has joined #zope | 02:33 | |
| *** slackrunner has quit IRC | 02:38 | |
| *** mr_jolly has quit IRC | 02:39 | |
| *** do3cc has joined #zope | 02:44 | |
| *** slackrunner has joined #zope | 02:46 | |
| *** slackrunner has quit IRC | 02:58 | |
| *** Spanktar has joined #zope | 02:58 | |
| *** do3cc has quit IRC | 03:05 | |
| *** J1m_ has joined #zope | 03:10 | |
| *** dayne has quit IRC | 03:22 | |
| *** runyaga has quit IRC | 03:30 | |
| *** runyaga has joined #zope | 03:31 | |
| *** runyaga has joined #zope | 03:31 | |
| *** River-Rat has joined #zope | 03:41 | |
| *** J1m_ has quit IRC | 03:41 | |
| *** River_Rat has quit IRC | 03:43 | |
| *** SpankyFromBRC has joined #zope | 03:53 | |
| *** daMaestro has quit IRC | 03:55 | |
| *** Spanktar has quit IRC | 03:57 | |
| *** sm has quit IRC | 04:11 | |
| *** slackrunner has joined #zope | 05:09 | |
| *** slackrunner has quit IRC | 05:49 | |
| *** slackrunner has joined #zope | 05:51 | |
| *** davisagli has quit IRC | 06:00 | |
| *** davisagli has joined #zope | 06:01 | |
| *** slackrunner has quit IRC | 06:13 | |
| *** dayne has joined #zope | 06:19 | |
| *** sm has joined #zope | 06:36 | |
| *** sm has quit IRC | 06:40 | |
| *** slackrunner has joined #zope | 06:42 | |
| *** davisagli has quit IRC | 07:14 | |
| *** davisagli has joined #zope | 07:15 | |
| *** dayne has quit IRC | 07:31 | |
| *** davisagli has quit IRC | 07:53 | |
| *** davisagli has joined #zope | 07:53 | |
| *** davisagli has quit IRC | 07:57 | |
| *** davisagli has joined #zope | 07:57 | |
| *** davisagli has quit IRC | 07:59 | |
| *** davisagli has joined #zope | 07:59 | |
| *** mr_jolly has joined #zope | 08:05 | |
| *** zagy has joined #zope | 08:48 | |
| *** __mac__ has joined #zope | 09:04 | |
| *** slackrunner has quit IRC | 09:32 | |
| *** slackrunner has joined #zope | 09:37 | |
| *** slackrunner has quit IRC | 09:42 | |
| *** rogererens has joined #zope | 09:44 | |
| *** alexpilz1 has quit IRC | 09:53 | |
| *** agroszer has joined #zope | 09:55 | |
| *** planetzopebot has quit IRC | 10:08 | |
| *** planetzopebot has joined #zope | 10:08 | |
| *** avoinea has joined #zope | 10:11 | |
| *** nun has quit IRC | 10:43 | |
| *** MrTango has joined #zope | 11:06 | |
| *** alexpilz has joined #zope | 11:07 | |
| *** goschtl has joined #zope | 11:17 | |
| *** yvl has joined #zope | 11:19 | |
| *** severb has joined #zope | 11:21 | |
| severb | Quick 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 |
|---|---|---|
| severb | For example http://paste.pound-python.org/show/1IBtwSsJBo9MYO1RoQ16/ neither SimpleEmitter, JsonFormatter or StrFormatter know beforehand what interface they implement | 11:22 |
| *** rogererens has quit IRC | 11:27 | |
| *** rogererens has joined #zope | 11:32 | |
| *** nun has joined #zope | 11:33 | |
| *** Wu has joined #zope | 11:34 | |
| *** hever has joined #zope | 11:52 | |
| __mac__ | severb: registerUtility is enough, interfaces provided by the utility are only used as fallback | 11: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 Instance | 12:05 |
| severb | And 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 instance | 12:08 |
| severb | Thanks, I'll give it a try | 12:09 |
| *** sunew has joined #zope | 12:12 | |
| *** severb has left #zope | 12:19 | |
| *** evilbungle has joined #zope | 12:28 | |
| *** TomBlockley has joined #zope | 12:46 | |
| *** teix has joined #zope | 12:50 | |
| *** teix has quit IRC | 12:52 | |
| *** teix has joined #zope | 12:55 | |
| *** madmax- has joined #zope | 13:13 | |
| *** evilbungle has quit IRC | 13:22 | |
| *** Wu has quit IRC | 13:24 | |
| *** evilbungle has joined #zope | 13:34 | |
| *** nun has joined #zope | 13:36 | |
| *** hever has quit IRC | 13:39 | |
| *** menesis has joined #zope | 13:45 | |
| *** menesis has quit IRC | 13:49 | |
| *** menesis has joined #zope | 13:54 | |
| *** hever has joined #zope | 14:14 | |
| *** madmax- has quit IRC | 14:14 | |
| *** ccomb has joined #zope | 14:22 | |
| *** madmax- has joined #zope | 14:36 | |
| *** do3cc has joined #zope | 14:41 | |
| *** m8 has joined #zope | 15:04 | |
| *** alexpilz has left #zope | 15:24 | |
| Epeli | Could someone please approve my subcription to zodb-dev mailinlist? | 15:28 |
| *** rbanffy has joined #zope | 15:43 | |
| *** madmax- has quit IRC | 15:55 | |
| *** ccomb has quit IRC | 16:00 | |
| *** J1m_ has joined #zope | 16:04 | |
| *** m8 has quit IRC | 16:05 | |
| *** ccomb has joined #zope | 16:15 | |
| *** sp0cksbeard has joined #zope | 16:20 | |
| *** ajsmith has joined #zope | 16:21 | |
| *** rbanffy has quit IRC | 16:38 | |
| *** do3cc has quit IRC | 16:39 | |
| *** rogererens has quit IRC | 16:39 | |
| *** rbanffy has joined #zope | 16:55 | |
| *** __mac__ has quit IRC | 16:59 | |
| *** RaceCondition has joined #zope | 17:12 | |
| RaceCondition | are there any more thorough guides to zope.security besides http://pypi.python.org/pypi/zope.security ? | 17:12 |
| RaceCondition | I'm looking to use zope.security in my non-zope application, and to use the default zope security policy | 17:13 |
| RaceCondition | that one: http://docs.zope.org/zope3/Book/security/zopepolicy/show.html | 17:13 |
| *** rbanffy has quit IRC | 17:47 | |
| *** nun has quit IRC | 17:58 | |
| *** menesis has quit IRC | 18:02 | |
| *** menesis has joined #zope | 18:04 | |
| *** rogererens has joined #zope | 18:13 | |
| *** rbanffy has joined #zope | 18:15 | |
| *** runyaga_ has joined #zope | 18:15 | |
| *** hever has quit IRC | 18:16 | |
| *** daMaestro has joined #zope | 18:18 | |
| *** runyaga has quit IRC | 18:18 | |
| *** zagy has quit IRC | 18:21 | |
| *** agroszer has quit IRC | 18:33 | |
| *** supton has joined #zope | 18:33 | |
| *** goschtl has quit IRC | 18:42 | |
| *** TresEquis has joined #zope | 18:46 | |
| *** do3cc has joined #zope | 18:48 | |
| *** do3cc has quit IRC | 18:52 | |
| *** TresEquis has quit IRC | 18:56 | |
| *** __mac__ has joined #zope | 18:59 | |
| *** davisagli has quit IRC | 19:03 | |
| *** __mac__ has quit IRC | 19:04 | |
| *** davisagli has joined #zope | 19:04 | |
| *** tiwula has joined #zope | 19:07 | |
| RaceCondition | does 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 runyaga | 19:16 | |
| *** runyaga has joined #zope | 19:17 | |
| *** slackrunner has joined #zope | 19:35 | |
| *** avoinea has quit IRC | 19:48 | |
| *** m8 has joined #zope | 19:49 | |
| *** hever has joined #zope | 19:49 | |
| mgedmin | I'm not familiar with zc.twist | 19:49 |
| mgedmin | the "traditional" way of using zodb with twisted is to use a thread pool | 19:50 |
| *** davisagli has quit IRC | 19:51 | |
| *** hever has quit IRC | 19:52 | |
| *** davisagli has joined #zope | 19:52 | |
| *** slackrunner has quit IRC | 19:53 | |
| *** agroszer has joined #zope | 20:06 | |
| kosh | hail freaks! | 20:08 |
| RaceCondition | mgedmin: are there any guides/articles on how to set up a threadpool to use ZODB in twisted? I've tried googling but nothing | 20:11 |
| *** tiwula has quit IRC | 20:11 | |
| *** alecm has quit IRC | 20:14 | |
| *** slackrunner has joined #zope | 20:14 | |
| *** kittonian has joined #zope | 20:18 | |
| *** agroszer has quit IRC | 20:18 | |
| *** ccomb1 has joined #zope | 20:20 | |
| *** ccomb has quit IRC | 20:20 | |
| *** __mac__ has joined #zope | 20:25 | |
| *** evilbungle has quit IRC | 20:36 | |
| *** TomBlockley has quit IRC | 20:36 | |
| *** zagy has joined #zope | 20:38 | |
| *** ccomb1 is now known as ccomb | 20:41 | |
| *** do3cc has joined #zope | 21:01 | |
| *** sunew has quit IRC | 21:10 | |
| *** ccomb has quit IRC | 21:14 | |
| runyaga | RaceCondition, zc.twist or zc.async uses twisted and zodb | 21:15 |
| *** ccomb has joined #zope | 21:16 | |
| *** J1m_ has quit IRC | 21:17 | |
| *** J1m has joined #zope | 21:17 | |
| RaceCondition | runyaga: yeah, I'm reading the source of zc.async | 21:20 |
| RaceCondition | from zc.twist src I cannot really extract how to correctly set up zc.twist | 21:20 |
| runyaga | no tests? | 21:20 |
| RaceCondition | the README only has partial examples/code fragments | 21:20 |
| RaceCondition | I mean, how to first set up ZODB, and then use it through zc.twist | 21:20 |
| RaceCondition | I mean, not set up ZODB, but set it up so that it would work correctly with zc.twist | 21:21 |
| RaceCondition | like 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 me | 21:22 |
| RaceCondition | I think it's the latter, by reading the src of zc.twist, but I'm still not sure as the code is almost uncommented | 21:22 |
| *** ccomb has quit IRC | 21:25 | |
| *** do3cc has quit IRC | 21:26 | |
| *** runyaga_ has joined #zope | 21:28 | |
| mgedmin | ah, the keeping up best traditions of zope 3, I see | 21:30 |
| runyaga_ | well you can email zodb-dev mailing list | 21:31 |
| mgedmin | "it was hard to write, it should be hard to use" | 21:31 |
| *** runyaga has quit IRC | 21:31 | |
| *** runyaga_ has quit IRC | 21:33 | |
| *** runyaga_ has joined #zope | 21:34 | |
| RaceCondition | maybe somebody knows any open source projects besides zc.async that use zc.twist? | 21:34 |
| mgedmin | ok, I'm curious | 21:35 |
| mgedmin | zc.twist is 580 lines of code | 21:36 |
| RaceCondition | yeah | 21:36 |
| mgedmin | have you looked at src/zc/twist/README.txt? | 21:37 |
| kittonian | I 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 |
| RaceCondition | mgedmin: yes, but it doesn't specify how to set up ZODB with a Twisted app | 21:37 |
| kittonian | i have no issues uploading other files, including 100mb zip files | 21:37 |
| mgedmin | same way you'd set it up with any other app, I suppose | 21:38 |
| mgedmin | db = DB(FileStorage('Data.fs')) | 21:38 |
| RaceCondition | so I set up a global DB instance, and each time I need access to the data, I retrieve a new root object? | 21:38 |
| RaceCondition | and from there on, whenever I need to operate on it, I delegate it to zc.twist.Partial? | 21:39 |
| * mgedmin is still reading | 21:39 | |
| *** ccomb has joined #zope | 21:39 | |
| *** rogererens has quit IRC | 21:39 | |
| *** rogererens has joined #zope | 21:40 | |
| mgedmin | uh, I think so, yes: open one connection at startup, fetch the root or whatever object, then use Partial() for everything | 21:42 |
| mgedmin | oh dear, I'd be tempted to stay far far away from this package | 21:42 |
| mgedmin | mostly because I don't understand it | 21:42 |
| mgedmin | _methodwrapper.c, yikes | 21:42 |
| *** Arfrever has joined #zope | 21:43 | |
| *** rbanffy has quit IRC | 21:43 | |
| RaceCondition | same 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 |
| mgedmin | well, if you do, it won't be async | 21:44 |
| RaceCondition | is 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 what | 21:44 |
| RaceCondition | ok, so, zc.twist makes ZODB access async? | 21:44 |
| RaceCondition | however, the src of zc.twist does not any ZODB callbacks/polling... so how could that be the case? | 21:45 |
| RaceCondition | I mean, other than polling if there's a usable connection in the pool | 21:46 |
| RaceCondition | maybe that's it? and everything else will still be blocking? | 21:46 |
| mgedmin | I have no idea | 21:47 |
| mgedmin | I think you're right, and that zc.twist makes no sense | 21:48 |
| RaceCondition | so I'm back at the beginning :P | 21:48 |
| RaceCondition | maybe there's somebody here who's used zc.twist/ZODB with Twisted | 21:49 |
| mgedmin | I've used ZODB with twisted, but I didn't use zc.twist | 21:50 |
| *** alecm has joined #zope | 21:51 | |
| RaceCondition | is there any way you could show the relevant excerpts from the source that would help me get the right set up going? | 21:51 |
| mgedmin | I'm trying to find the earliest revisions of SchoolTool online, and failing | 21:54 |
| mgedmin | the svn repo was converted into a bazillion bzr repos by people who are not me | 21:55 |
| mgedmin | I don't know what is where now | 21:55 |
| *** rbanffy has joined #zope | 21:55 | |
| mcdonc | i'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 |
| mgedmin | I don't think zodb has any support for real async... | 21:56 |
| mgedmin | maybe if you use RelStorage with an async postgresql driver or something | 21:57 |
| mcdonc | the i/o stuff in zodb is generally all-python so gevent might work no | 21:57 |
| mcdonc | at least filestorage anyway | 21:57 |
| mgedmin | gevent monkeypatches socket? | 21:57 |
| mcdonc | yeah | 21:58 |
| mgedmin | then ZEOStorage might become async | 21:58 |
| mgedmin | I'd want to see serious stress tests before I trusted my data to such a beast... | 21:58 |
| mcdonc | yeah | 21:58 |
| *** do3cc has joined #zope | 22:06 | |
| RaceCondition | sorry, was in sauna | 22:12 |
| RaceCondition | mgedmin: I have the source of SchoolTool.. I'll just investigate that | 22:12 |
| RaceCondition | or I might just use the simplistic approach with zc.twist and no threadpool and see if it works out, and deal with any problems JIT | 22:13 |
| *** dayne has joined #zope | 22:20 | |
| mgedmin | schooltool hasn't been using twisted for many years now | 22:24 |
| mgedmin | you'd need schooltool from 2004 or something | 22:24 |
| mgedmin | which is what I had difficulties finding | 22:24 |
| mgedmin | and besides it used the trivial threadpool solution | 22:25 |
| *** zagy has quit IRC | 22:36 | |
| *** kittonian has quit IRC | 22:36 | |
| RaceCondition | I see | 22:38 |
| RaceCondition | mgedmin: what is a trivial threadpool, and what's the other option? | 22:38 |
| RaceCondition | ...obviously non-trivial threadpool, but more precisely :P | 22:39 |
| *** ccomb has quit IRC | 22:41 | |
| mgedmin | uhh.... twisted has this reactor.callInThead thing, I don't even remember the spelling | 22:42 |
| mgedmin | and 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 something | 22:43 |
| *** rogererens has quit IRC | 22:43 | |
| *** hever has joined #zope | 22:43 | |
| RaceCondition | reactor.deferToThread maybe | 22:44 |
| *** rogererens has joined #zope | 22:44 | |
| mgedmin | that's more like it | 22:44 |
| mgedmin | and there's probably some threadpool init function where you specify the # of worker threads you want to have | 22:44 |
| RaceCondition | I'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 |
| mgedmin | it also has a bunch of gotchas | 22:45 |
| RaceCondition | yeah, but still | 22:46 |
| mgedmin | :) | 22:47 |
| *** hever has quit IRC | 22:48 | |
| *** alecm has quit IRC | 22:54 | |
| RaceCondition | mgedmin: I think I'm gonna post to a mailing list, but which one? zope-dev? | 22:55 |
| mgedmin | zodb-dev is probably a good one | 22:56 |
| RaceCondition | yeah, I meant zodb-dev, not zope-dev | 22:57 |
| *** dayne has quit IRC | 22:58 | |
| *** dayne has joined #zope | 23:00 | |
| *** __mac__ has quit IRC | 23:12 | |
| *** dayne has quit IRC | 23:17 | |
| *** dayne has joined #zope | 23:18 | |
| RaceCondition | https://mail.zope.org/pipermail/zodb-dev/2011-July/014324.html | 23:19 |
| *** davisagli has quit IRC | 23:21 | |
| *** davisagli has joined #zope | 23:22 | |
| *** runyaga_ has quit IRC | 23:23 | |
| *** rogererens has quit IRC | 23:24 | |
| *** rogererens has joined #zope | 23:25 | |
| *** bigkevmcd has quit IRC | 23:30 | |
| *** teix has quit IRC | 23:32 | |
| *** teix has joined #zope | 23:33 | |
| *** teix has quit IRC | 23:34 | |
| *** teix has joined #zope | 23:35 | |
| *** alecm has joined #zope | 23:38 | |
| *** alecm has joined #zope | 23:38 | |
| *** dayne has quit IRC | 23:49 | |
| *** do3cc has quit IRC | 23:52 | |
| *** do3cc has joined #zope | 23:52 | |
| *** alecm has quit IRC | 23:55 | |
| *** Arfrever has quit IRC | 23:58 | |
| *** hever has joined #zope | 23:59 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!