*** pcardune has quit IRC | 00:00 | |
*** mgedmin has joined #zope3-dev | 00:06 | |
*** afd_____ has quit IRC | 00:11 | |
*** kaeru has joined #zope3-dev | 00:18 | |
*** romanofski has joined #zope3-dev | 00:18 | |
*** pcardune has joined #zope3-dev | 00:27 | |
*** pcardune has quit IRC | 00:36 | |
*** hath|away is now known as hathawsh | 00:49 | |
*** hathawsh is now known as hath|away | 00:53 | |
*** hath|away is now known as hathawsh | 00:54 | |
*** hathawsh has quit IRC | 00:58 | |
*** tarek has quit IRC | 01:09 | |
piro84 | goodnight | 01:37 |
---|---|---|
*** piro84 has left #zope3-dev | 01:37 | |
mgedmin | what's a good way to cache data within a single request? | 02:22 |
mgedmin | I've got an adapter that may be performing an expensive computation, the result of which stays constant in the same request | 02:23 |
mgedmin | I'd like multiple adaptations to share the results of the computation | 02:23 |
davisagli | mgedmin: plone.memoize has a decorator that can cache in an annotation on the request | 02:26 |
mgedmin | hm, interesting | 02:26 |
davisagli | mgedmin: or more simply, you could just set a unique attribute on the request | 02:26 |
*** drudi has joined #zope3-dev | 02:27 | |
mgedmin | I don't have a request handy | 02:27 |
mgedmin | I could fish it out from the interaction, but it would be a pain | 02:27 |
mgedmin | actually, I'm more interested in transactions than in requests | 02:27 |
mgedmin | a per-thread cache that gets flushed when the current transaction goes away would work best | 02:27 |
* mgedmin wants pypi pages to have a link to documentation or source code at least :( | 02:28 | |
davisagli | ah, I see | 02:28 |
davisagli | mgedmin: yeah, +1 for links to docs and source...but good luck trying to get package maintainers to keep them up to date :-p | 02:29 |
mgedmin | where do plone packages live? | 02:31 |
mgedmin | I mean source control | 02:31 |
davisagli | mgedmin: http://svn.plone.org/svn/plone | 02:31 |
mgedmin | thank you | 02:31 |
davisagli | mgedmin: or http://dev.plone.org/plone for trac | 02:31 |
mgedmin | very nice of them to put "trac location" links there! | 02:32 |
davisagli | mgedmin: yeah, that's a little xslt transform we added recently. very handy | 02:32 |
davisagli | mgedmin: looks like transactions are per thread and a new transaction object is created for a new transaction, so maybe you can just get the transaction and set an attribute on that | 02:36 |
davisagli | (or write a decorator to do that for you, of course) | 02:36 |
mgedmin | it's a bit too cowboyish for my tastes ;) | 02:36 |
davisagli | :) | 02:36 |
mgedmin | but transactions have id's, and I can register a transaction data manager to flush my cache | 02:37 |
davisagli | sure | 02:37 |
mgedmin | hm, should I do that, or should I dig a bit more for existing solutions... | 02:37 |
davisagli | gotta go...good luck | 02:38 |
*** davisagli has quit IRC | 02:38 | |
mgedmin | turns out I could solve my problem by passing the adapter around, without any magical caches | 02:55 |
mgedmin | paster rules | 02:58 |
mgedmin | wsgi rules | 02:58 |
mgedmin | keas.profile rules | 02:58 |
*** pcardune has joined #zope3-dev | 03:06 | |
*** davisagli has joined #zope3-dev | 03:10 | |
*** pcardune has quit IRC | 03:12 | |
*** jbglenn has joined #zope3-dev | 03:14 | |
*** jbglenn has quit IRC | 03:15 | |
*** davisagli has quit IRC | 03:37 | |
*** benji has quit IRC | 03:41 | |
*** alga has quit IRC | 03:42 | |
*** davisagli has joined #zope3-dev | 03:45 | |
*** pcardune has joined #zope3-dev | 03:46 | |
*** mgedmin has quit IRC | 04:00 | |
*** aaronv has joined #zope3-dev | 04:42 | |
*** davisagli has quit IRC | 04:43 | |
*** huajie has joined #zope3-dev | 04:49 | |
*** aaronv has quit IRC | 05:35 | |
*** jbglenn has joined #zope3-dev | 05:41 | |
*** matthal has quit IRC | 06:00 | |
*** ignas has quit IRC | 06:12 | |
*** hathawsh has joined #zope3-dev | 06:41 | |
*** hathawsh is now known as hath|away | 06:41 | |
*** hath|away is now known as hathawsh | 06:42 | |
*** jfkw has quit IRC | 06:48 | |
*** stub has joined #zope3-dev | 07:54 | |
*** markusleist has joined #zope3-dev | 07:58 | |
*** davisagli has joined #zope3-dev | 08:34 | |
*** davisagli has left #zope3-dev | 08:57 | |
*** povbot has joined #zope3-dev | 09:07 | |
*** shrek_ has joined #zope3-dev | 09:08 | |
*** shrek_ has quit IRC | 09:09 | |
*** huajie has quit IRC | 09:12 | |
*** shrek_ has joined #zope3-dev | 09:15 | |
*** pcardune has quit IRC | 09:17 | |
*** jpcw has left #zope3-dev | 09:29 | |
*** afd_____ has joined #zope3-dev | 09:41 | |
*** reinout has joined #zope3-dev | 09:46 | |
*** zagy has joined #zope3-dev | 09:52 | |
*** matthal has joined #zope3-dev | 10:06 | |
*** shrek_ has quit IRC | 10:07 | |
*** shrek_ has joined #zope3-dev | 10:07 | |
*** agroszer has joined #zope3-dev | 10:12 | |
*** romanofski has quit IRC | 10:25 | |
*** yotaff has joined #zope3-dev | 10:28 | |
*** shrek_ has quit IRC | 10:29 | |
*** shrek_ has joined #zope3-dev | 10:29 | |
*** sweh has joined #zope3-dev | 10:29 | |
*** tarek has joined #zope3-dev | 10:34 | |
*** matthal has quit IRC | 10:35 | |
*** jpcw has joined #zope3-dev | 10:37 | |
*** El_Rolando has joined #zope3-dev | 10:49 | |
*** matthal has joined #zope3-dev | 10:52 | |
*** jhauser has joined #zope3-dev | 11:02 | |
*** pyqwer has joined #zope3-dev | 11:02 | |
*** shrek_ has quit IRC | 11:04 | |
*** markusleist has quit IRC | 11:08 | |
*** __mac__ has joined #zope3-dev | 11:09 | |
*** stub has quit IRC | 11:10 | |
*** goschtl has joined #zope3-dev | 11:11 | |
*** romanofski has joined #zope3-dev | 11:12 | |
*** jfkw has joined #zope3-dev | 11:24 | |
*** markusleist has joined #zope3-dev | 11:33 | |
*** yvl has joined #zope3-dev | 11:33 | |
*** ignas has joined #zope3-dev | 11:36 | |
*** Count-Duckula has joined #zope3-dev | 11:39 | |
*** Count-Duckula has left #zope3-dev | 11:41 | |
*** Count-Duckula has joined #zope3-dev | 11:41 | |
*** hathawsh is now known as hath|away | 11:41 | |
*** alga has joined #zope3-dev | 11:50 | |
*** hath|away is now known as hathawsh | 11:55 | |
*** huajie has joined #zope3-dev | 12:01 | |
*** Count-Duckula has quit IRC | 12:05 | |
*** junkafarian has joined #zope3-dev | 12:09 | |
*** Aiste has joined #zope3-dev | 12:30 | |
*** hathawsh is now known as hath|away | 12:38 | |
*** agroszer has quit IRC | 12:42 | |
*** reinout is now known as reinout_away | 12:42 | |
*** stub has joined #zope3-dev | 13:04 | |
*** drudi has quit IRC | 13:06 | |
*** fcorrea has quit IRC | 13:26 | |
*** romanofski has quit IRC | 14:00 | |
*** fcorrea has joined #zope3-dev | 14:01 | |
*** drudi has joined #zope3-dev | 14:05 | |
*** hazmat has joined #zope3-dev | 14:08 | |
*** ChanServ sets mode: +o hazmat | 14:08 | |
*** menesis has quit IRC | 14:22 | |
*** aaronv has joined #zope3-dev | 14:51 | |
*** agroszer has joined #zope3-dev | 14:51 | |
*** stub has quit IRC | 14:57 | |
*** mkerrin has joined #zope3-dev | 15:02 | |
*** jukart has joined #zope3-dev | 15:08 | |
*** benji has joined #zope3-dev | 15:14 | |
*** alga has quit IRC | 15:18 | |
*** menesis has joined #zope3-dev | 15:19 | |
*** agroszer has quit IRC | 15:22 | |
*** agroszer has joined #zope3-dev | 15:25 | |
*** afd____ has joined #zope3-dev | 15:30 | |
*** afd_____ has quit IRC | 15:34 | |
*** ignas has quit IRC | 15:54 | |
*** srichter has joined #zope3-dev | 15:54 | |
*** ChanServ sets mode: +o srichter | 15:54 | |
*** J1m has joined #zope3-dev | 15:56 | |
*** lurkymclurkleton has joined #zope3-dev | 16:05 | |
*** gary_poster has joined #zope3-dev | 16:11 | |
*** redir has joined #zope3-dev | 16:18 | |
*** reinout_away is now known as reinout | 16:21 | |
*** faassen has joined #zope3-dev | 16:22 | |
*** mgedmin has joined #zope3-dev | 16:38 | |
*** faassen has quit IRC | 16:42 | |
*** faassen has joined #zope3-dev | 16:55 | |
*** faassen has joined #zope3-dev | 16:56 | |
*** __mac__ has quit IRC | 16:59 | |
*** mintsauce has joined #zope3-dev | 17:31 | |
*** runyaga has joined #zope3-dev | 17:35 | |
*** huajie has left #zope3-dev | 17:35 | |
*** reinout has quit IRC | 17:38 | |
*** J1m has quit IRC | 17:44 | |
*** J1m has joined #zope3-dev | 17:46 | |
*** Aiste has quit IRC | 17:47 | |
*** mintsauce has quit IRC | 17:48 | |
*** djinni has left #zope3-dev | 17:49 | |
*** sweh has quit IRC | 17:59 | |
*** jukart has quit IRC | 18:08 | |
*** projekt01 has joined #zope3-dev | 18:10 | |
*** goschtl has quit IRC | 18:13 | |
*** afd____ has quit IRC | 18:15 | |
*** yotaff has quit IRC | 18:19 | |
*** J1m has quit IRC | 18:29 | |
*** J1m has joined #zope3-dev | 18:31 | |
mgedmin | persistent objects that directlyProvide an interface that is no longer importable (i.e. is a persistent broken shim) cannot be loaded | 18:37 |
*** faassen has quit IRC | 18:41 | |
*** El_Rolando has quit IRC | 19:01 | |
mgedmin | no zope.app.site backwards-compatibility package on PyPI? | 19:05 |
*** projekt01 has quit IRC | 19:08 | |
mgedmin | I seem to remember some kind of zope.app.bbb package that shipped backwardly-compatible apis, but what was the precise name? (it's not zope.app.bbb) | 19:09 |
*** davisagli has joined #zope3-dev | 19:13 | |
*** ignas has joined #zope3-dev | 19:15 | |
mgedmin | ah, assertion error is the obviously perfect method for telling the user he forgot to create a setup.py in the directory | 19:20 |
*** menesis has quit IRC | 19:22 | |
*** junkafarian has quit IRC | 19:29 | |
*** Theuni1 has quit IRC | 19:35 | |
*** pcardune has joined #zope3-dev | 19:48 | |
*** srichter has quit IRC | 19:48 | |
*** agroszer has quit IRC | 19:53 | |
*** agroszer has joined #zope3-dev | 19:53 | |
*** hath|away is now known as hathawsh | 19:56 | |
*** markusleist has quit IRC | 20:05 | |
*** mkerrin has left #zope3-dev | 20:06 | |
*** matthal has quit IRC | 20:14 | |
*** sm has joined #zope3-dev | 20:22 | |
*** pyqwer has quit IRC | 20:25 | |
*** Theuni1 has joined #zope3-dev | 20:35 | |
* mgedmin wishes evolution scripts set a transaction comment | 20:37 | |
Theuni1 | that would be nice | 20:37 |
Theuni1 | actually you know what | 20:37 |
Theuni1 | i do have quite a few helpers for generations that i'd like to contribute | 20:37 |
Theuni1 | those actually provide more detailed log messages | 20:37 |
Theuni1 | those could easily go into the transaction comment. | 20:37 |
*** redir has quit IRC | 20:43 | |
*** redir has joined #zope3-dev | 20:45 | |
mgedmin | just the name of the schema manager and the number of the evolution script would be sufficient | 20:49 |
*** hathawsh is now known as hath|away | 20:51 | |
*** Theuni1 has quit IRC | 20:56 | |
*** Theuni1 has joined #zope3-dev | 20:58 | |
mgedmin | whoa | 21:01 |
mgedmin | I don't know what's happening to me | 21:01 |
mgedmin | ComponentLookupError: no site manager defined | 21:01 |
mgedmin | is raised by setSite(ob) | 21:02 |
mgedmin | which is called from threadSiteSubscriber | 21:02 |
mgedmin | goes away when I restart paster | 21:03 |
mgedmin | must be my own fault | 21:04 |
*** davisagli has quit IRC | 21:05 | |
*** davisagli has joined #zope3-dev | 21:05 | |
mgedmin | definitely is | 21:07 |
*** hath|away is now known as hathawsh | 21:07 | |
mgedmin | yep, playing games with __setstate__ can burn you | 21:09 |
*** menesis has joined #zope3-dev | 21:10 | |
*** alga has joined #zope3-dev | 21:10 | |
*** Theuni1 has quit IRC | 21:11 | |
mgedmin | gun -> foot. bang! | 21:15 |
*** mgedmin has quit IRC | 21:15 | |
*** menesis has quit IRC | 21:18 | |
*** jpcw has quit IRC | 21:18 | |
*** menesis has joined #zope3-dev | 21:19 | |
*** hathawsh is now known as hath|away | 21:22 | |
*** hath|away is now known as hathawsh | 21:29 | |
*** pcardune has quit IRC | 21:31 | |
*** matthal has joined #zope3-dev | 21:33 | |
*** hathawsh is now known as hath|away | 21:39 | |
*** hath|away is now known as hathawsh | 21:57 | |
*** jpcw has joined #zope3-dev | 21:59 | |
*** pcardune has joined #zope3-dev | 22:27 | |
*** markusleist has joined #zope3-dev | 22:37 | |
*** fcorrea has quit IRC | 23:10 | |
*** tarek has quit IRC | 23:15 | |
*** tarek has joined #zope3-dev | 23:17 | |
*** agroszer has quit IRC | 23:18 | |
*** pcardune has quit IRC | 23:49 | |
*** redir has quit IRC | 23:50 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!