IRC log of #zope3-dev for Monday, 2009-11-23

*** pcardune has quit IRC00:00
*** mgedmin has joined #zope3-dev00:06
*** afd_____ has quit IRC00:11
*** kaeru has joined #zope3-dev00:18
*** romanofski has joined #zope3-dev00:18
*** pcardune has joined #zope3-dev00:27
*** pcardune has quit IRC00:36
*** hath|away is now known as hathawsh00:49
*** hathawsh is now known as hath|away00:53
*** hath|away is now known as hathawsh00:54
*** hathawsh has quit IRC00:58
*** tarek has quit IRC01:09
piro84goodnight01:37
*** piro84 has left #zope3-dev01:37
mgedminwhat's a good way to cache data within a single request?02:22
mgedminI've got an adapter that may be performing an expensive computation, the result of which stays constant in the same request02:23
mgedminI'd like multiple adaptations to share the results of the computation02:23
davisaglimgedmin: plone.memoize has a decorator that can cache in an annotation on the request02:26
mgedminhm, interesting02:26
davisaglimgedmin: or more simply, you could just set a unique attribute on the request02:26
*** drudi has joined #zope3-dev02:27
mgedminI don't have a request handy02:27
mgedminI could fish it out from the interaction, but it would be a pain02:27
mgedminactually, I'm more interested in transactions than in requests02:27
mgedmina per-thread cache that gets flushed when the current transaction goes away would work best02:27
* mgedmin wants pypi pages to have a link to documentation or source code at least :(02:28
davisagliah, I see02:28
davisaglimgedmin: yeah, +1 for links to docs and source...but good luck trying to get package maintainers to keep them up to date :-p02:29
mgedminwhere do plone packages live?02:31
mgedminI mean source control02:31
davisaglimgedmin: http://svn.plone.org/svn/plone02:31
mgedminthank you02:31
davisaglimgedmin: or http://dev.plone.org/plone for trac02:31
mgedminvery nice of them to put "trac location" links there!02:32
davisaglimgedmin: yeah, that's a little xslt transform we added recently. very handy02:32
davisaglimgedmin: 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 that02:36
davisagli(or write a decorator to do that for you, of course)02:36
mgedminit's a bit too cowboyish for my tastes ;)02:36
davisagli:)02:36
mgedminbut transactions have id's, and I can register a transaction data manager to flush my cache02:37
davisaglisure02:37
mgedminhm, should I do that, or should I dig a bit more for existing solutions...02:37
davisagligotta go...good luck02:38
*** davisagli has quit IRC02:38
mgedminturns out I could solve my problem by passing the adapter around, without any magical caches02:55
mgedminpaster rules02:58
mgedminwsgi rules02:58
mgedminkeas.profile rules02:58
*** pcardune has joined #zope3-dev03:06
*** davisagli has joined #zope3-dev03:10
*** pcardune has quit IRC03:12
*** jbglenn has joined #zope3-dev03:14
*** jbglenn has quit IRC03:15
*** davisagli has quit IRC03:37
*** benji has quit IRC03:41
*** alga has quit IRC03:42
*** davisagli has joined #zope3-dev03:45
*** pcardune has joined #zope3-dev03:46
*** mgedmin has quit IRC04:00
*** aaronv has joined #zope3-dev04:42
*** davisagli has quit IRC04:43
*** huajie has joined #zope3-dev04:49
*** aaronv has quit IRC05:35
*** jbglenn has joined #zope3-dev05:41
*** matthal has quit IRC06:00
*** ignas has quit IRC06:12
*** hathawsh has joined #zope3-dev06:41
*** hathawsh is now known as hath|away06:41
*** hath|away is now known as hathawsh06:42
*** jfkw has quit IRC06:48
*** stub has joined #zope3-dev07:54
*** markusleist has joined #zope3-dev07:58
*** davisagli has joined #zope3-dev08:34
*** davisagli has left #zope3-dev08:57
*** povbot has joined #zope3-dev09:07
*** shrek_ has joined #zope3-dev09:08
*** shrek_ has quit IRC09:09
*** huajie has quit IRC09:12
*** shrek_ has joined #zope3-dev09:15
*** pcardune has quit IRC09:17
*** jpcw has left #zope3-dev09:29
*** afd_____ has joined #zope3-dev09:41
*** reinout has joined #zope3-dev09:46
*** zagy has joined #zope3-dev09:52
*** matthal has joined #zope3-dev10:06
*** shrek_ has quit IRC10:07
*** shrek_ has joined #zope3-dev10:07
*** agroszer has joined #zope3-dev10:12
*** romanofski has quit IRC10:25
*** yotaff has joined #zope3-dev10:28
*** shrek_ has quit IRC10:29
*** shrek_ has joined #zope3-dev10:29
*** sweh has joined #zope3-dev10:29
*** tarek has joined #zope3-dev10:34
*** matthal has quit IRC10:35
*** jpcw has joined #zope3-dev10:37
*** El_Rolando has joined #zope3-dev10:49
*** matthal has joined #zope3-dev10:52
*** jhauser has joined #zope3-dev11:02
*** pyqwer has joined #zope3-dev11:02
*** shrek_ has quit IRC11:04
*** markusleist has quit IRC11:08
*** __mac__ has joined #zope3-dev11:09
*** stub has quit IRC11:10
*** goschtl has joined #zope3-dev11:11
*** romanofski has joined #zope3-dev11:12
*** jfkw has joined #zope3-dev11:24
*** markusleist has joined #zope3-dev11:33
*** yvl has joined #zope3-dev11:33
*** ignas has joined #zope3-dev11:36
*** Count-Duckula has joined #zope3-dev11:39
*** Count-Duckula has left #zope3-dev11:41
*** Count-Duckula has joined #zope3-dev11:41
*** hathawsh is now known as hath|away11:41
*** alga has joined #zope3-dev11:50
*** hath|away is now known as hathawsh11:55
*** huajie has joined #zope3-dev12:01
*** Count-Duckula has quit IRC12:05
*** junkafarian has joined #zope3-dev12:09
*** Aiste has joined #zope3-dev12:30
*** hathawsh is now known as hath|away12:38
*** agroszer has quit IRC12:42
*** reinout is now known as reinout_away12:42
*** stub has joined #zope3-dev13:04
*** drudi has quit IRC13:06
*** fcorrea has quit IRC13:26
*** romanofski has quit IRC14:00
*** fcorrea has joined #zope3-dev14:01
*** drudi has joined #zope3-dev14:05
*** hazmat has joined #zope3-dev14:08
*** ChanServ sets mode: +o hazmat14:08
*** menesis has quit IRC14:22
*** aaronv has joined #zope3-dev14:51
*** agroszer has joined #zope3-dev14:51
*** stub has quit IRC14:57
*** mkerrin has joined #zope3-dev15:02
*** jukart has joined #zope3-dev15:08
*** benji has joined #zope3-dev15:14
*** alga has quit IRC15:18
*** menesis has joined #zope3-dev15:19
*** agroszer has quit IRC15:22
*** agroszer has joined #zope3-dev15:25
*** afd____ has joined #zope3-dev15:30
*** afd_____ has quit IRC15:34
*** ignas has quit IRC15:54
*** srichter has joined #zope3-dev15:54
*** ChanServ sets mode: +o srichter15:54
*** J1m has joined #zope3-dev15:56
*** lurkymclurkleton has joined #zope3-dev16:05
*** gary_poster has joined #zope3-dev16:11
*** redir has joined #zope3-dev16:18
*** reinout_away is now known as reinout16:21
*** faassen has joined #zope3-dev16:22
*** mgedmin has joined #zope3-dev16:38
*** faassen has quit IRC16:42
*** faassen has joined #zope3-dev16:55
*** faassen has joined #zope3-dev16:56
*** __mac__ has quit IRC16:59
*** mintsauce has joined #zope3-dev17:31
*** runyaga has joined #zope3-dev17:35
*** huajie has left #zope3-dev17:35
*** reinout has quit IRC17:38
*** J1m has quit IRC17:44
*** J1m has joined #zope3-dev17:46
*** Aiste has quit IRC17:47
*** mintsauce has quit IRC17:48
*** djinni has left #zope3-dev17:49
*** sweh has quit IRC17:59
*** jukart has quit IRC18:08
*** projekt01 has joined #zope3-dev18:10
*** goschtl has quit IRC18:13
*** afd____ has quit IRC18:15
*** yotaff has quit IRC18:19
*** J1m has quit IRC18:29
*** J1m has joined #zope3-dev18:31
mgedminpersistent objects that directlyProvide an interface that is no longer importable (i.e. is a persistent broken shim) cannot be loaded18:37
*** faassen has quit IRC18:41
*** El_Rolando has quit IRC19:01
mgedminno zope.app.site backwards-compatibility package on PyPI?19:05
*** projekt01 has quit IRC19:08
mgedminI 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-dev19:13
*** ignas has joined #zope3-dev19:15
mgedminah, assertion error is the obviously perfect method for telling the user he forgot to create a setup.py in the directory19:20
*** menesis has quit IRC19:22
*** junkafarian has quit IRC19:29
*** Theuni1 has quit IRC19:35
*** pcardune has joined #zope3-dev19:48
*** srichter has quit IRC19:48
*** agroszer has quit IRC19:53
*** agroszer has joined #zope3-dev19:53
*** hath|away is now known as hathawsh19:56
*** markusleist has quit IRC20:05
*** mkerrin has left #zope3-dev20:06
*** matthal has quit IRC20:14
*** sm has joined #zope3-dev20:22
*** pyqwer has quit IRC20:25
*** Theuni1 has joined #zope3-dev20:35
* mgedmin wishes evolution scripts set a transaction comment20:37
Theuni1that would be nice20:37
Theuni1actually you know what20:37
Theuni1i do have quite a few helpers for generations that i'd like to contribute20:37
Theuni1those actually provide more detailed log messages20:37
Theuni1those could easily go into the transaction comment.20:37
*** redir has quit IRC20:43
*** redir has joined #zope3-dev20:45
mgedminjust the name of the schema manager and the number of the evolution script would be sufficient20:49
*** hathawsh is now known as hath|away20:51
*** Theuni1 has quit IRC20:56
*** Theuni1 has joined #zope3-dev20:58
mgedminwhoa21:01
mgedminI don't know what's happening to me21:01
mgedminComponentLookupError: no site manager defined21:01
mgedminis raised by setSite(ob)21:02
mgedminwhich is called from threadSiteSubscriber21:02
mgedmingoes away when I restart paster21:03
mgedminmust be my own fault21:04
*** davisagli has quit IRC21:05
*** davisagli has joined #zope3-dev21:05
mgedmindefinitely is21:07
*** hath|away is now known as hathawsh21:07
mgedminyep, playing games with __setstate__ can burn you21:09
*** menesis has joined #zope3-dev21:10
*** alga has joined #zope3-dev21:10
*** Theuni1 has quit IRC21:11
mgedmingun -> foot.  bang!21:15
*** mgedmin has quit IRC21:15
*** menesis has quit IRC21:18
*** jpcw has quit IRC21:18
*** menesis has joined #zope3-dev21:19
*** hathawsh is now known as hath|away21:22
*** hath|away is now known as hathawsh21:29
*** pcardune has quit IRC21:31
*** matthal has joined #zope3-dev21:33
*** hathawsh is now known as hath|away21:39
*** hath|away is now known as hathawsh21:57
*** jpcw has joined #zope3-dev21:59
*** pcardune has joined #zope3-dev22:27
*** markusleist has joined #zope3-dev22:37
*** fcorrea has quit IRC23:10
*** tarek has quit IRC23:15
*** tarek has joined #zope3-dev23:17
*** agroszer has quit IRC23:18
*** pcardune has quit IRC23:49
*** redir has quit IRC23:50

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