IRC log of #zope for Monday, 2012-09-10

*** les_sylvains has quit IRC00:37
*** davetoo has quit IRC00:45
*** m8 has quit IRC01:08
*** elro has quit IRC01:57
*** do3cc has joined #zope02:18
*** J1m has joined #zope02:42
*** menesis has quit IRC02:42
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** J1m has quit IRC03:00
*** J1m has joined #zope03:07
*** J1m has quit IRC03:10
*** fdrake has joined #zope03:43
*** fdrake has quit IRC04:03
*** supton has quit IRC04:44
*** davetoo has joined #zope04:56
davetooquestion about ZCatalog brains:04:56
davetooI was experimenting with evaluating the contents of a single brain,04:57
davetooand ran " list(brain) " and I got back .. a list of stuff :)04:58
davetoobut no idea how the order of the list elements are returned04:58
davetoois there any way to get a dict out of it?  Im trying to figure out how giving the brain to list() produced the values04:59
davetooI was surprised to see that the brain itself has an aq_chain04:59
davetooso I think it's acquiring this behavior from ...05:01
davetooso calling list on any OFS ObjectManager (I think, or maybe it's higher up) returns the keys of the object dict05:02
davetooand since these are presumably inverted indexes, the keys are the indexed values themselves05:02
davetoowhat I'm trying to do is create a dict or json string05:03
*** do3cc has quit IRC05:11
*** davetoo1 has joined #zope05:35
*** kosh has quit IRC05:48
*** davetoo1 has left #zope05:52
*** walden_ has joined #zope06:03
*** Deathspawn has quit IRC07:21
*** KageSenshi has joined #zope07:22
*** Deathspawn has joined #zope07:24
*** supton has joined #zope08:00
*** walden_ has quit IRC08:11
*** tisto has joined #zope08:28
*** supton has quit IRC08:40
*** zagy has joined #zope09:03
*** zagy has quit IRC09:06
*** __mac__ has joined #zope09:22
*** agroszer has joined #zope09:39
*** MrTango has joined #zope09:46
*** sunew has joined #zope09:48
*** tomas has joined #zope09:52
tomasHi, I'm building rpm packag for zope-schema module and it fails test, can anyone please tell me what's missing in my zope module?
tomasI suspect my zope-interface package is outdated09:57
*** giacomos has joined #zope10:01
*** avoinea has joined #zope10:01
Zart3.7.0 is latest10:13
Zartis that centos?10:14
Zarttry testing in virtualenv/buildout10:16
ArfreverZart: What 3.7.0?10:16
ZartArfrever, zope.interface10:16
ArfreverZart: 4.0.1 is the latest. See
* Zart found 3.8.0 and 4.0.1 in his cache10:17
Zartanyway, test worked for me10:18
ArfreverAnd the latest version of zope.schema is 4.2.0:
Arfrever(Zope-2.13.* seems to work with almost all zope.*-4.*. I only had some exceptions caused by zope.location-4.0.0.)10:23
*** fredvd has joined #zope10:46
*** goschtl has joined #zope10:48
*** J1m has joined #zope10:54
*** yvl has joined #zope10:55
*** eperez has joined #zope11:06
*** do3cc has joined #zope11:09
*** sunew has quit IRC11:09
*** do3cc has quit IRC11:14
*** menesis has joined #zope11:21
*** J1m has quit IRC12:03
*** J1m has joined #zope12:04
*** J1m has quit IRC12:09
*** RichyB has joined #zope12:09
*** giacomos has quit IRC12:10
*** goschtl has quit IRC12:14
*** goschtl has joined #zope12:17
*** maurits has joined #zope12:20
*** elro has joined #zope12:45
*** davetoo has left #zope12:56
*** teix has joined #zope13:00
*** tisto_ has joined #zope13:00
*** goschtl has quit IRC13:02
*** tisto has quit IRC13:05
*** deuterium has joined #zope13:27
*** goschtl has joined #zope13:46
*** tisto_ is now known as tisto|away13:50
deuteriumhow high is the average machine cpu load normally with zope, if zope is almost idle?13:53
deuteriumwith my system here, cpu load is constantly >100%, though it's very fast and new hardware and there are only a couple of requests now and then13:54
deuteriumthat's not normal, right?13:54
betabughere zope idles at 6-7%, but it's a 466Mhz PowerMac G413:55
betabughmm, that seems actually have been on a request, it goes down to 0.6% now13:56
deuteriumbetabug: hm.. thanks13:57
betabugwhat version of zope was that?13:57
deuteriumbetabug: i really assume there's a problem with an endless loop in a method here or so13:57
*** mgedmin has quit IRC13:58
*** mgedmin has joined #zope13:58
betabugwell, depenidng on zope version, you could check in the ZMI in the /Control_Panel, debugging if you have some long running request13:58
betabugbut that's assuming some version of Zope 213:58
betabugso that's why I ask about the version13:58
deuteriumbetabug: well, a very outdated one, unfortunately.. but i'm not allowed to update it yet as the manager of the app is afraid that it won't work anymore with an updated python, zope, zms13:58
deuteriumbetabug: ok, moment, let me check13:59
betabugyes, those concerns are valid13:59
betabugbut if you say zms, it definitely is some zope 2.x version13:59
deuteriumbetabug: yes, it's 2.8.114:07
deuteriumbetabug: i.e. can i check in /Control_Panel if a certain request is causing the high load?14:08
deuteriumbetabug: i have to check whether i can get the credentials for the control panel14:08
betabugwell, without being able to look at /Control_Panel, you can't do anything14:09
betabugand you should consider to upgrade to the latest version in the 2.8 series14:10
deuteriumbetabug: i would have tried to attach a gdb to the running zope instance, then have a look at it there14:10
deuteriumbetabug: i agree14:10
deuteriumbetabug: i'm trying to convince the app owner to allow us upgrade the whole python/zope stack14:10
betabugfirst try /Control_Panel/DebugInfo14:10
deuteriumbetabug: ok, thanks14:10
betabugupgrading everything to the latest could be difficult14:11
deuteriumbetabug: ironically i'm root on the box, but i have to check for the control_panel credentials14:11
betabugbut at least going to the last 2.8.x should be easy14:11
deuteriumbetabug: ok14:11
betabugif you can restart the instance, you can create an admin account for yourself14:11
betabugstop the instance from bin/zopectl14:12
betabugthen you can use bin/zopectl adduser (or something like that, zopectl has a help14:12
deuteriumbetabug: ok, i'll use that as a last resort if i can't get the control panel credentials otherwise14:14
betabugthat's reasonable, they might not like to have some other admin users in their app14:14
*** __mac__1 has joined #zope14:15
*** __mac__ has quit IRC14:15
deuteriumbetabug: btw, is there a nice way or best practice how to compact the data.fs file? it has grown extremely big here.. 25 gb. i assume most of the data there is actually the transaction history and only maybe 1 gb is actual data.14:15
betabugyou have to "pack" it14:16
betabugyou can do so from the /Control_Panel14:16
deuteriumbetabug: oh, from the control_panel as well? ok14:16
betabuggood practice is to have a backup, but nothing ever went wrong for me14:16
deuteriumbackup created by simply copying the file on the shell.. or by creating a backup from the control panel?14:17
betabugif you temporarily shut down zope or if you have a ZEO setup, you can also pack from the command line14:17
betabugpacking will create an auto-backup, but simply copying the file e.g. to another machine is a good idea14:17
deuteriumzeo setup.. good point. i don't even know this yet14:17
betabugdon't use rsync to do the backup, it's said to do something wrong... but I never understood what exactly14:18
betabugwell, you're a bit late to the party :-)14:18
* deuterium is not a seasoned zope admin.. pretty much a newbie in regard to zope, actually ;)14:19
betabugdeuterium: btw, here is a bunch of information that might interest you:
deuteriumi.e. i used zope myself.. but that was ages back.. must have been in the late 90ies or so14:19
deuteriumbetabug: thanks! looks very interesting and informative14:20
*** mitchell`off is now known as mitchell`14:20
*** elro has quit IRC14:35
*** sunew has joined #zope14:40
*** Arfrever has quit IRC15:13
*** fdrake has joined #zope15:14
*** kosh has joined #zope15:16
*** fredvd has quit IRC15:29
*** elro has joined #zope15:50
*** menesis has quit IRC15:54
*** sp0cksbeard has joined #zope16:08
*** J1m has joined #zope16:16
*** les_sylvains has joined #zope16:19
*** nande has joined #zope16:19
*** tisto|away is now known as tisto16:27
*** menesis has joined #zope16:32
*** goschtl has quit IRC16:37
*** fredvd has joined #zope17:06
*** polysix has quit IRC17:06
*** polysix has joined #zope17:08
deuteriumhm.. any idea how i can block requests from an (alleged) bingbot user-agent to a zope server? i see about 1 "bingbot" request per second 24/7 here.. might be an attack disguised as bingbot, see
deuteriumi'd prefer a solution directly on the zope server as there's just an apache proxy in front of it and i shouldn't restart that one and the method to block these bingbot requests as explained on the page likely doesn't work if it's just a proxy for a zope server.17:18
* mgedmin would solve this on the apache side17:18
mgedminwhy can't you restart it?17:18
deuteriummgedmin: althought it's just a proxy?17:18
*** janbranbergen has joined #zope17:19
deuteriummgedmin: or maybe i should just use the <location> directives instead of <file>, as explained on
*** mcdonc has quit IRC17:22
janbranbergenHi, i am trying to run the test-suite for, i ran  the buildout but bin/test complains about zope.event missing. Can anyone shed some insight?17:22
*** goschtl has joined #zope17:24
*** sunew has quit IRC17:45
*** __mac__1 has quit IRC17:48
*** goschtl has quit IRC17:48
avoineaHi all: Within zope3 how do I get a browser view registered for a lower interface like: I have an object that provides ITop and IBottom. Then index.html registered one for IBottom and one for ITop. How do I get the IBottom index.html? :)17:49
*** mcdonc has joined #zope18:00
*** daMaestro has joined #zope18:04
*** kosh has quit IRC18:05
*** supton has joined #zope18:14
*** agroszer has quit IRC18:21
*** janbranbergen has left #zope18:24
*** tisto has quit IRC18:25
*** yvl has quit IRC18:56
*** deux has joined #zope19:06
*** maurits has quit IRC19:06
*** fredvd has quit IRC19:13
deuteriumbetabug: any idea how i can block access to the zope server that is made by a certain user-agent? i.e. bingbot. i'd like to block these requests on zope directly as blocking them on the apache proxy didn't work as these requests are actually hitting the zope server directly, bypassing the apache proxy server.19:13
betabugdeuterium: I do this kind of stuff on apache - if these requests bypass apache, then it means your firewall leaves stuff open that shouldn't be open19:18
deuteriumbetabug: valid point19:19
betabugand zope is an application server, not a web server; there is a strong expectation that something is in front of it19:20
betabugdeuterium: you're in .ch?19:20
*** les_sylvains has quit IRC19:20
betabugfunny, hadn't noticed before19:21
*** eperez has quit IRC19:27
deuteriumbetabug: yes, i am :)19:27
*** Spanktar has joined #zope19:59
*** Spanktar has joined #zope19:59
*** Spanktar has joined #zope20:01
*** Spanktar has joined #zope20:02
*** avoinea has quit IRC20:06
*** agroszer has joined #zope20:06
*** mitchell` is now known as mitchell`off20:12
*** deux has quit IRC20:14
*** menesis has quit IRC20:17
*** agroszer has quit IRC20:24
*** m8 has joined #zope20:24
*** davetoo has joined #zope20:30
*** davetoo has left #zope20:30
*** deuterium has quit IRC20:31
*** les_sylvains has joined #zope20:37
*** xanalogica has joined #zope20:37
*** xanalogica has quit IRC20:39
*** tiwula has joined #zope20:44
*** menesis has joined #zope21:03
*** thetet has joined #zope21:32
*** TresEquis has joined #zope21:36
*** goschtl has joined #zope21:43
*** mcdonc has quit IRC21:56
*** mcdonc has joined #zope21:56
*** RichyB has quit IRC22:13
*** les_sylvains has quit IRC22:14
*** elro has quit IRC22:16
*** goschtl has quit IRC22:18
*** teix has quit IRC22:19
*** betabug has quit IRC22:27
*** les_sylvains has joined #zope22:35
*** betabug has joined #zope22:37
*** MrTango has quit IRC22:48
*** jan_s has joined #zope22:58
*** menesis has quit IRC23:22
*** runyaga has joined #zope23:38
*** runyaga has quit IRC23:38
*** runyaga has joined #zope23:38
*** jan_s has quit IRC23:41
*** les_sylvains has quit IRC23:57

Generated by 2.15.1 by Marius Gedminas - find it at!