*** mcdonc has left #zope3-dev | 00:13 | |
*** okramar has joined #zope3-dev | 00:16 | |
*** natea has quit IRC | 00:19 | |
*** ruda_porto has quit IRC | 00:21 | |
*** jan_s has joined #zope3-dev | 00:47 | |
*** sashav has quit IRC | 00:52 | |
*** BjornT_ has joined #zope3-dev | 00:57 | |
*** philiKON has joined #zope3-dev | 01:02 | |
*** SiggyF has quit IRC | 01:06 | |
*** BjornT has quit IRC | 01:09 | |
*** sawdog has left #zope3-dev | 01:14 | |
*** wrobel has quit IRC | 01:19 | |
*** philiKON has quit IRC | 01:20 | |
*** wrobel has joined #zope3-dev | 01:21 | |
*** philiKON has joined #zope3-dev | 01:26 | |
*** philiKON has quit IRC | 01:35 | |
*** deo has quit IRC | 01:42 | |
*** RockyBurt has quit IRC | 01:48 | |
*** Theuni has quit IRC | 02:21 | |
*** r0n has joined #zope3-dev | 02:36 | |
*** natea has joined #zope3-dev | 02:48 | |
*** stub has joined #zope3-dev | 03:13 | |
*** natea has quit IRC | 03:57 | |
*** natea has joined #zope3-dev | 03:59 | |
*** yota has quit IRC | 04:10 | |
okramar | hello | 04:40 |
---|---|---|
*** yota has joined #zope3-dev | 04:40 | |
okramar | does anyone have experience in setting custom skins with a subscriber to BeforeTraverseEvent? | 04:40 |
*** jinty has quit IRC | 04:56 | |
*** wrobel has quit IRC | 05:03 | |
*** wrobel has joined #zope3-dev | 05:04 | |
*** r0n has quit IRC | 05:13 | |
*** stub has quit IRC | 05:39 | |
*** okramar has quit IRC | 06:04 | |
*** roman_ has joined #zope3-dev | 07:06 | |
*** sashav has joined #zope3-dev | 07:39 | |
*** __mac__ has quit IRC | 08:02 | |
*** roman_ has quit IRC | 08:04 | |
*** eins has joined #zope3-dev | 08:21 | |
eins | morning | 08:21 |
*** BjornT_ is now known as BjornT | 09:08 | |
*** natea has quit IRC | 09:08 | |
*** natea has joined #zope3-dev | 09:11 | |
*** hdima has joined #zope3-dev | 09:12 | |
*** zagy_ has joined #zope3-dev | 09:30 | |
*** stub has joined #zope3-dev | 09:38 | |
*** wrobel has quit IRC | 09:39 | |
*** wrobel has joined #zope3-dev | 09:41 | |
*** deo has joined #zope3-dev | 09:42 | |
*** __mac__ has joined #zope3-dev | 09:46 | |
*** M1 is now known as MJ | 09:46 | |
*** dobee has joined #zope3-dev | 09:47 | |
*** MJ has quit IRC | 09:48 | |
*** Theuni has joined #zope3-dev | 09:52 | |
*** BjornT has quit IRC | 09:52 | |
*** romanofski has joined #zope3-dev | 10:00 | |
*** stub has quit IRC | 10:02 | |
*** agroszer has joined #zope3-dev | 10:05 | |
*** j-w has joined #zope3-dev | 10:13 | |
*** stub has joined #zope3-dev | 10:18 | |
romanofski | moin | 10:40 |
*** BjornT has joined #zope3-dev | 10:44 | |
*** RockyBurt has joined #zope3-dev | 10:44 | |
*** MJ has joined #zope3-dev | 10:47 | |
*** jhauser has joined #zope3-dev | 10:59 | |
*** Aiste has quit IRC | 11:03 | |
*** BjornT_ has joined #zope3-dev | 11:09 | |
*** BjornT has quit IRC | 11:24 | |
*** efrerich has joined #zope3-dev | 11:25 | |
*** zagy_ has quit IRC | 11:30 | |
*** RockyBurt has quit IRC | 11:32 | |
*** dunny has quit IRC | 11:38 | |
*** d2m has quit IRC | 11:42 | |
*** andres has joined #zope3-dev | 11:50 | |
*** d2m has joined #zope3-dev | 11:51 | |
*** faassen has joined #zope3-dev | 11:51 | |
*** Aiste has joined #zope3-dev | 11:57 | |
*** mleist has left #zope3-dev | 12:02 | |
*** sashav has joined #zope3-dev | 12:28 | |
*** mgedmin has joined #zope3-dev | 13:03 | |
*** niemeyer has joined #zope3-dev | 13:05 | |
*** jhauser_ has joined #zope3-dev | 13:07 | |
*** mkerrin has joined #zope3-dev | 13:14 | |
*** ignas has joined #zope3-dev | 13:15 | |
*** J1m has joined #zope3-dev | 13:17 | |
sidnei | . | 13:23 |
*** jhauser has quit IRC | 13:23 | |
*** BjornT_ is now known as BjornT | 13:34 | |
*** zagy_ has joined #zope3-dev | 13:49 | |
*** deo has quit IRC | 13:58 | |
*** philiKON has joined #zope3-dev | 14:10 | |
*** MrTopf has joined #zope3-dev | 14:11 | |
*** jan_s has quit IRC | 14:15 | |
*** jan_s has joined #zope3-dev | 14:16 | |
*** J1m has quit IRC | 14:29 | |
*** jan_s has quit IRC | 14:38 | |
*** mleist has joined #zope3-dev | 14:48 | |
*** alga has joined #zope3-dev | 14:49 | |
mleist | Hi there. when i'm starting my zope3-instance there are "zope.app.appsetup.IDatabaseOpenedEvent" and "zope.app.appsetup.IProcessStartingEvent" | 14:55 |
mleist | I create(d) my Utility in bootStrapSubscriberDatabase triggered by IDatabaseOpenedEvent but | 14:55 |
mleist | which way i have to access this utility in bootStrapSubscriberProcess triggered by IProcessStartingEvent? | 14:55 |
*** _anguenot has joined #zope3-dev | 14:56 | |
mleist | zapi.getUtility() gives an ComponentLookupError in bootStrapSubscriberProcess. Are Utilities "getable" in bootStrapSubscriberProcess? | 15:03 |
*** efge has joined #zope3-dev | 15:05 | |
sidnei | query jinty | 15:08 |
sidnei | ops | 15:08 |
*** jenner has joined #zope3-dev | 15:15 | |
mleist | Hmm: (Pdb) p list(zapi.getUtilitiesFor(..)) -> [] - I don't find any uility... | 15:19 |
mleist | I have to count all starts from Zope3-instance (persistent) in ZODB. Where is a good place to do it? | 15:19 |
*** d2m has quit IRC | 15:20 | |
*** d2m has joined #zope3-dev | 15:21 | |
sidnei | c | 15:25 |
*** sidnei has left #zope3-dev | 15:26 | |
mgedmin | mleist, a IDatabaseOpenedEvent subscriber would be a good place, I think | 15:27 |
*** benji has joined #zope3-dev | 15:32 | |
mleist | mgedmin, 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-dev | 15:54 | |
mgedmin | that is strange | 15:56 |
mgedmin | are those *local* utilities per chance? | 15:57 |
philiKON | no, it's not | 15:57 |
philiKON | IDatabaseOpenedEvent is fired pretty early isn't it? | 15:57 |
philiKON | hmm, perhaps it is fired after the config is loaded | 15:57 |
mgedmin | it is certainly fired *after* the zcml has been processed, including utility registrations | 15:57 |
philiKON | k | 15:57 |
philiKON | yeh, otherwise there'd be no subscribers to it ;) | 15:58 |
mgedmin | could this be a permission issue? | 15:58 |
mgedmin | does getUtilitiesFor check for access and only return utilities you can actually use? | 15:58 |
Theuni | hmm | 16:08 |
* Theuni wonders about the way of including the default formlib pageform macro into his own template | 16:08 | |
Theuni | for some reason i guessed to do this: metal:use-macro="view/template:default" .... ah ... maybe ... wait a sec | 16:09 |
Theuni | *woot | 16:10 |
Theuni | of course it's view/template:default/macros/main | 16:10 |
mleist | *local* utilities (configured in zcml, right?) are accessible in Subscriber: | 16:14 |
mleist | (Pdb) from zope.app.error.interfaces import IErrorReportingUtility | 16: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 |
mleist | my utility was born in IDatabaseOpenedEvent by ensureUtility(...) but Subscriber | 16:14 |
mleist | for IProcessStartingEvent is _after_ commit in IDatabaseOpenedEvent? | 16:14 |
mleist | Is there any chance to get an utility not defined in ZCML in this way? | 16:14 |
Theuni | Hm. what's the reason that zope.schema.Datetime isn't spelled with a capital 'T'ime? | 16:21 |
philiKON | Theuni, fix it :) | 16:25 |
Theuni | Sure. 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 me | 16:26 | |
philiKON | (of course, with proper BBB) | 16:26 |
Theuni | great | 16:31 |
Theuni | except that i have to do that when i have time for that *grml | 16:31 |
philiKON | hehe | 16:33 |
mgedmin | mleist, you shouldn't depend on local utilities being available in a IDatabaseOpenedEvent subscriber | 16:33 |
mgedmin | theoretically subscribers could be executed in any order | 16:34 |
mgedmin | and when Zope initializes an empty database, it creates local utilities from other IDatabaseOpenedEvent subscribers | 16:34 |
mgedmin | in practice, subscribers get called in registration order | 16:34 |
mgedmin | so if you include your own package after zope.app's configure.zcml, it'll work | 16:34 |
mgedmin | IProcessStartingEvent is posted before the database is opened | 16:35 |
mgedmin | so I would guess that inside IProcessStartingEvent subscribers you can't access any local utilities | 16:35 |
*** eins has quit IRC | 16:39 | |
mleist | mgedmin, when starting zope my "printf-debugging" says: | 16:41 |
mleist | log_ik: <zope.app.appsetup.interfaces.DatabaseOpenedWithRoot object at 0xb6b5896c> | 16:41 |
mleist | bootStrapSubscriberDatabase() <- my method | 16:41 |
mleist | log_ik: <zope.app.appsetup.interfaces.DatabaseOpened object at 0xb704aa4c> | 16:41 |
mleist | bootStrapSubscriberProcess() <- my method | 16:41 |
mleist | log_ik: <zope.app.appsetup.interfaces.ProcessStarting object at 0xb7a5094c> | 16:41 |
mleist | IProcessStartingEvent seems to be after IDatabaseOpenedEvent? | 16:43 |
Theuni | Man. Sometimes you really have to work against the framework. | 16:49 |
*** philiKON has quit IRC | 16:52 | |
*** ignas has quit IRC | 16:56 | |
*** mgedmin has quit IRC | 16:56 | |
*** hdima has quit IRC | 17:13 | |
*** mgedmin has joined #zope3-dev | 17:13 | |
*** sashav has quit IRC | 17:20 | |
wrobel | hm... how do I get the complete traversal machinery in a doctest? | 17:30 |
wrobel | I can register all the necessary stuff with provideAdapter but I assume there might be an easier way :) | 17:32 |
wrobel | ah :) resolved... | 17:39 |
*** mgedmin has quit IRC | 17:42 | |
*** jinty has joined #zope3-dev | 18:04 | |
*** zagy_ has quit IRC | 18:08 | |
*** romanofski has quit IRC | 18:18 | |
*** povbot has joined #zope3-dev | 18:51 | |
*** faassen has quit IRC | 19:07 | |
*** sashav has quit IRC | 19:26 | |
*** benji has quit IRC | 19:30 | |
*** xenru|clone has joined #zope3-dev | 19:32 | |
*** romanofski has joined #zope3-dev | 19:34 | |
*** ruda_porto has quit IRC | 19:49 | |
*** mcdonc has joined #zope3-dev | 19:51 | |
*** sashav has joined #zope3-dev | 19:54 | |
*** xenru has quit IRC | 19:58 | |
*** dunny has joined #zope3-dev | 19:59 | |
*** MJ has joined #zope3-dev | 20:10 | |
*** ChrisW has joined #zope3-dev | 20:23 | |
ChrisW | anyone know how I can progamatically minimze the ZODB cache? | 20:23 |
*** benji has joined #zope3-dev | 20:33 | |
*** zagy has joined #zope3-dev | 20:35 | |
*** efge has quit IRC | 20:38 | |
SteveA | ChrisW: for a particular connection, call its methods that do that | 20:38 |
SteveA | the cache is per connection, you see | 20:38 |
SteveA | so you need to get the connections you're interested in | 20:38 |
SteveA | and there are some methods on that | 20:38 |
SteveA | obj._p_jar is the connection for persistent objects that are registered with that connection | 20:38 |
ChrisW | yeah, I found them already | 20:40 |
ChrisW | this is in a Stepper job anyway, so only one thread | 20:40 |
*** _anguenot has quit IRC | 20:40 | |
ChrisW | for some reason, I have to manually call obj._p_jar.db().cacheMinimize() every so often | 20:40 |
ChrisW | otherwise I end up blowign all the ram in the machine :-( | 20:40 |
ChrisW | I thought the cahce got sorted out at transaction boundaries | 20:41 |
ChrisW | (ie: get_transaction().commit()) | 20:41 |
ChrisW | but apparently, it doesn't... | 20:41 |
*** zagy_ has joined #zope3-dev | 20:55 | |
*** sashav has quit IRC | 20:55 | |
*** ChrisW has left #zope3-dev | 20:57 | |
*** MrTopf has quit IRC | 20:59 | |
*** BjornT_ has joined #zope3-dev | 21:00 | |
*** BjornT has quit IRC | 21:01 | |
*** sashav has joined #zope3-dev | 21:02 | |
*** zagy has quit IRC | 21:06 | |
*** Theuni has quit IRC | 21:08 | |
*** jhauser_ has quit IRC | 21:15 | |
*** sashav has quit IRC | 21:20 | |
*** ruda_porto has joined #zope3-dev | 21:21 | |
*** BjornT_ has quit IRC | 21:22 | |
*** BjornT has joined #zope3-dev | 21:23 | |
*** agroszer has quit IRC | 21:29 | |
*** dunny has quit IRC | 21:31 | |
*** ruda_porto has quit IRC | 21:47 | |
*** ruda_porto has joined #zope3-dev | 21:50 | |
*** BjornT has quit IRC | 21:52 | |
*** BjornT has joined #zope3-dev | 21:52 | |
*** SteveA has quit IRC | 22:02 | |
*** Theuni has joined #zope3-dev | 22:05 | |
*** dobee has quit IRC | 22:09 | |
*** jinty has quit IRC | 22:20 | |
*** natea has quit IRC | 22:22 | |
*** xenru has joined #zope3-dev | 22:25 | |
*** jinty has joined #zope3-dev | 22:39 | |
*** xenru|clone has quit IRC | 22:45 | |
*** SiggyF has joined #zope3-dev | 22:45 | |
*** efrerich has quit IRC | 22:45 | |
*** jenner has quit IRC | 22:48 | |
*** zagy_ has quit IRC | 22:48 | |
*** dobee has joined #zope3-dev | 23:02 | |
*** mkerrin has quit IRC | 23:04 | |
*** SteveA has joined #zope3-dev | 23:07 | |
*** dobee has quit IRC | 23:09 | |
*** mgedmin has quit IRC | 23:10 | |
*** jinty has quit IRC | 23:25 | |
*** alga has quit IRC | 23:25 | |
*** srichter has quit IRC | 23:30 | |
*** stub has quit IRC | 23:35 | |
*** BjornT has quit IRC | 23:44 | |
*** BjornT has joined #zope3-dev | 23:49 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!