IRC log of #zope3-dev for Thursday, 2006-01-26

*** mcdonc has left #zope3-dev00:13
*** okramar has joined #zope3-dev00:16
*** natea has quit IRC00:19
*** ruda_porto has quit IRC00:21
*** jan_s has joined #zope3-dev00:47
*** sashav has quit IRC00:52
*** BjornT_ has joined #zope3-dev00:57
*** philiKON has joined #zope3-dev01:02
*** SiggyF has quit IRC01:06
*** BjornT has quit IRC01:09
*** sawdog has left #zope3-dev01:14
*** wrobel has quit IRC01:19
*** philiKON has quit IRC01:20
*** wrobel has joined #zope3-dev01:21
*** philiKON has joined #zope3-dev01:26
*** philiKON has quit IRC01:35
*** deo has quit IRC01:42
*** RockyBurt has quit IRC01:48
*** Theuni has quit IRC02:21
*** r0n has joined #zope3-dev02:36
*** natea has joined #zope3-dev02:48
*** stub has joined #zope3-dev03:13
*** natea has quit IRC03:57
*** natea has joined #zope3-dev03:59
*** yota has quit IRC04:10
*** yota has joined #zope3-dev04:40
okramardoes anyone have experience in setting custom skins with a subscriber to BeforeTraverseEvent?04:40
*** jinty has quit IRC04:56
*** wrobel has quit IRC05:03
*** wrobel has joined #zope3-dev05:04
*** r0n has quit IRC05:13
*** stub has quit IRC05:39
*** okramar has quit IRC06:04
*** roman_ has joined #zope3-dev07:06
*** sashav has joined #zope3-dev07:39
*** __mac__ has quit IRC08:02
*** roman_ has quit IRC08:04
*** eins has joined #zope3-dev08:21
*** BjornT_ is now known as BjornT09:08
*** natea has quit IRC09:08
*** natea has joined #zope3-dev09:11
*** hdima has joined #zope3-dev09:12
*** zagy_ has joined #zope3-dev09:30
*** stub has joined #zope3-dev09:38
*** wrobel has quit IRC09:39
*** wrobel has joined #zope3-dev09:41
*** deo has joined #zope3-dev09:42
*** __mac__ has joined #zope3-dev09:46
*** M1 is now known as MJ09:46
*** dobee has joined #zope3-dev09:47
*** MJ has quit IRC09:48
*** Theuni has joined #zope3-dev09:52
*** BjornT has quit IRC09:52
*** romanofski has joined #zope3-dev10:00
*** stub has quit IRC10:02
*** agroszer has joined #zope3-dev10:05
*** j-w has joined #zope3-dev10:13
*** stub has joined #zope3-dev10:18
*** BjornT has joined #zope3-dev10:44
*** RockyBurt has joined #zope3-dev10:44
*** MJ has joined #zope3-dev10:47
*** jhauser has joined #zope3-dev10:59
*** Aiste has quit IRC11:03
*** BjornT_ has joined #zope3-dev11:09
*** BjornT has quit IRC11:24
*** efrerich has joined #zope3-dev11:25
*** zagy_ has quit IRC11:30
*** RockyBurt has quit IRC11:32
*** dunny has quit IRC11:38
*** d2m has quit IRC11:42
*** andres has joined #zope3-dev11:50
*** d2m has joined #zope3-dev11:51
*** faassen has joined #zope3-dev11:51
*** Aiste has joined #zope3-dev11:57
*** mleist has left #zope3-dev12:02
*** sashav has joined #zope3-dev12:28
*** mgedmin has joined #zope3-dev13:03
*** niemeyer has joined #zope3-dev13:05
*** jhauser_ has joined #zope3-dev13:07
*** mkerrin has joined #zope3-dev13:14
*** ignas has joined #zope3-dev13:15
*** J1m has joined #zope3-dev13:17
*** jhauser has quit IRC13:23
*** BjornT_ is now known as BjornT13:34
*** zagy_ has joined #zope3-dev13:49
*** deo has quit IRC13:58
*** philiKON has joined #zope3-dev14:10
*** MrTopf has joined #zope3-dev14:11
*** jan_s has quit IRC14:15
*** jan_s has joined #zope3-dev14:16
*** J1m has quit IRC14:29
*** jan_s has quit IRC14:38
*** mleist has joined #zope3-dev14:48
*** alga has joined #zope3-dev14:49
mleistHi there. when i'm starting my zope3-instance there are "" and ""14:55
mleistI create(d) my Utility in bootStrapSubscriberDatabase triggered by IDatabaseOpenedEvent but14:55
mleistwhich way i have to access this utility in bootStrapSubscriberProcess triggered by IProcessStartingEvent?14:55
*** _anguenot has joined #zope3-dev14:56
mleistzapi.getUtility() gives an ComponentLookupError in bootStrapSubscriberProcess. Are Utilities "getable" in bootStrapSubscriberProcess?15:03
*** efge has joined #zope3-dev15:05
sidneiquery jinty15:08
*** jenner has joined #zope3-dev15:15
mleistHmm: (Pdb) p list(zapi.getUtilitiesFor(..)) -> [] - I don't find any uility...15:19
mleistI have to count all starts from Zope3-instance (persistent) in ZODB. Where is a good place to do it?15:19
*** d2m has quit IRC15:20
*** d2m has joined #zope3-dev15:21
*** sidnei has left #zope3-dev15:26
mgedminmleist, a IDatabaseOpenedEvent subscriber would be a good place, I think15:27
*** benji has joined #zope3-dev15:32
mleistmgedmin, ok, that was my first try, but i don't find the utilities when i am in a IDatabaseOpenedEvent subscriber?15:45
*** ruda_porto has joined #zope3-dev15:54
mgedminthat is strange15:56
mgedminare those *local* utilities per chance?15:57
philiKONno, it's not15:57
philiKONIDatabaseOpenedEvent is fired pretty early isn't it?15:57
philiKONhmm, perhaps it is fired after the config is loaded15:57
mgedminit is certainly fired *after* the zcml has been processed, including utility registrations15:57
philiKONyeh, otherwise there'd be no subscribers to it ;)15:58
mgedmincould this be a permission issue?15:58
mgedmindoes getUtilitiesFor check for access and only return utilities you can actually use?15:58
* Theuni wonders about the way of including the default formlib pageform macro into his own template16:08
Theunifor some reason i guessed to do this:   metal:use-macro="view/template:default" .... ah ... maybe ... wait a sec16:09
Theuniof course it's view/template:default/macros/main16:10
mleist*local* utilities (configured in zcml, right?) are accessible in Subscriber:16:14
mleist(Pdb) from import IErrorReportingUtility16:14
mleist(Pdb) myu1=zapi.getUtility(IErrorReportingUtility)16:14
mleist(Pdb) p myu1.getProperties()16:14
mleist{'ignored_exceptions': ('Unauthorized',), 'keep_entries': 20, 'copy_to_zlog': 0}16:14
mleistmy utility was born in IDatabaseOpenedEvent by ensureUtility(...) but Subscriber16:14
mleistfor IProcessStartingEvent is _after_ commit in IDatabaseOpenedEvent?16:14
mleistIs there any chance to get an utility not defined in ZCML in this way?16:14
TheuniHm. what's the reason that zope.schema.Datetime isn't spelled with a capital 'T'ime?16:21
philiKONTheuni, fix it :)16:25
TheuniSure. I first wanted to know whether it is intended to be that way, or accidental ...16:25
* philiKON always spells it DateTime until he finds out that this doesn't work... so, a +1 to the renaming from me16:26
philiKON(of course, with proper BBB)16:26
Theuniexcept that i have to do that when i have time for that *grml16:31
mgedminmleist, you shouldn't depend on local utilities being available in a IDatabaseOpenedEvent subscriber16:33
mgedmintheoretically subscribers could be executed in any order16:34
mgedminand when Zope initializes an empty database, it creates local utilities from other IDatabaseOpenedEvent subscribers16:34
mgedminin practice, subscribers get called in registration order16:34
mgedminso if you include your own package after's configure.zcml, it'll work16:34
mgedminIProcessStartingEvent is posted before the database is opened16:35
mgedminso I would guess that inside IProcessStartingEvent subscribers you can't access any local utilities16:35
*** eins has quit IRC16:39
mleistmgedmin, when starting zope my "printf-debugging" says:16:41
mleist   log_ik: < object at 0xb6b5896c>16:41
mleist   bootStrapSubscriberDatabase() <- my method16:41
mleist   log_ik: < object at 0xb704aa4c>16:41
mleist   bootStrapSubscriberProcess() <- my method16:41
mleist   log_ik: < object at 0xb7a5094c>16:41
mleistIProcessStartingEvent seems to be after IDatabaseOpenedEvent?16:43
TheuniMan. Sometimes you really have to work against the framework.16:49
*** philiKON has quit IRC16:52
*** ignas has quit IRC16:56
*** mgedmin has quit IRC16:56
*** hdima has quit IRC17:13
*** mgedmin has joined #zope3-dev17:13
*** sashav has quit IRC17:20
wrobelhm... how do I get the complete traversal machinery in a doctest?17:30
wrobelI can register all the necessary stuff with provideAdapter but I assume there might be an easier way :)17:32
wrobelah :) resolved...17:39
*** mgedmin has quit IRC17:42
*** jinty has joined #zope3-dev18:04
*** zagy_ has quit IRC18:08
*** romanofski has quit IRC18:18
*** povbot has joined #zope3-dev18:51
*** faassen has quit IRC19:07
*** sashav has quit IRC19:26
*** benji has quit IRC19:30
*** xenru|clone has joined #zope3-dev19:32
*** romanofski has joined #zope3-dev19:34
*** ruda_porto has quit IRC19:49
*** mcdonc has joined #zope3-dev19:51
*** sashav has joined #zope3-dev19:54
*** xenru has quit IRC19:58
*** dunny has joined #zope3-dev19:59
*** MJ has joined #zope3-dev20:10
*** ChrisW has joined #zope3-dev20:23
ChrisWanyone know how I can progamatically minimze the ZODB cache?20:23
*** benji has joined #zope3-dev20:33
*** zagy has joined #zope3-dev20:35
*** efge has quit IRC20:38
SteveAChrisW: for a particular connection, call its methods that do that20:38
SteveAthe cache is per connection, you see20:38
SteveAso you need to get the connections you're interested in20:38
SteveAand there are some methods on that20:38
SteveAobj._p_jar is the connection for persistent objects that are registered with that connection20:38
ChrisWyeah, I found them already20:40
ChrisWthis is in a Stepper job anyway, so only one thread20:40
*** _anguenot has quit IRC20:40
ChrisWfor some reason, I have to manually call obj._p_jar.db().cacheMinimize() every so often20:40
ChrisWotherwise I end up blowign all the ram in the machine :-(20:40
ChrisWI thought the cahce got sorted out at transaction boundaries20:41
ChrisW(ie: get_transaction().commit())20:41
ChrisWbut apparently, it doesn't...20:41
*** zagy_ has joined #zope3-dev20:55
*** sashav has quit IRC20:55
*** ChrisW has left #zope3-dev20:57
*** MrTopf has quit IRC20:59
*** BjornT_ has joined #zope3-dev21:00
*** BjornT has quit IRC21:01
*** sashav has joined #zope3-dev21:02
*** zagy has quit IRC21:06
*** Theuni has quit IRC21:08
*** jhauser_ has quit IRC21:15
*** sashav has quit IRC21:20
*** ruda_porto has joined #zope3-dev21:21
*** BjornT_ has quit IRC21:22
*** BjornT has joined #zope3-dev21:23
*** agroszer has quit IRC21:29
*** dunny has quit IRC21:31
*** ruda_porto has quit IRC21:47
*** ruda_porto has joined #zope3-dev21:50
*** BjornT has quit IRC21:52
*** BjornT has joined #zope3-dev21:52
*** SteveA has quit IRC22:02
*** Theuni has joined #zope3-dev22:05
*** dobee has quit IRC22:09
*** jinty has quit IRC22:20
*** natea has quit IRC22:22
*** xenru has joined #zope3-dev22:25
*** jinty has joined #zope3-dev22:39
*** xenru|clone has quit IRC22:45
*** SiggyF has joined #zope3-dev22:45
*** efrerich has quit IRC22:45
*** jenner has quit IRC22:48
*** zagy_ has quit IRC22:48
*** dobee has joined #zope3-dev23:02
*** mkerrin has quit IRC23:04
*** SteveA has joined #zope3-dev23:07
*** dobee has quit IRC23:09
*** mgedmin has quit IRC23:10
*** jinty has quit IRC23:25
*** alga has quit IRC23:25
*** srichter has quit IRC23:30
*** stub has quit IRC23:35
*** BjornT has quit IRC23:44
*** BjornT has joined #zope3-dev23:49

Generated by 2.15.1 by Marius Gedminas - find it at!