IRC log of #zope for Monday, 2012-11-19

*** J1m has joined #zope00:08
*** evilbungle has joined #zope00:20
*** J1m has quit IRC00:23
*** crazydiamond has joined #zope01:17
*** evilbungle has quit IRC01:39
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** J1m has joined #zope02:38
*** River_Rat has joined #zope03:38
*** River-Rat has quit IRC03:41
*** crazydiamond has quit IRC04:05
*** KageSenshi has quit IRC04:06
*** J1m has quit IRC04:25
*** River-Rat has joined #zope04:53
*** River_Rat has quit IRC04:55
*** J1m has joined #zope04:58
*** KageSenshi has joined #zope04:58
*** J1m has quit IRC05:04
*** KageSenshi has quit IRC05:41
*** crazydiamond has joined #zope06:13
*** mr_jolly has quit IRC06:17
*** KageSenshi has joined #zope06:42
*** __mac__ has joined #zope07:21
*** __mac__ has quit IRC07:24
*** zenwryly has quit IRC07:32
*** zenwryly has joined #zope07:32
*** zenwryly has quit IRC07:36
*** zenwryly has joined #zope07:38
*** zenwryly has quit IRC07:40
*** zenwryly has joined #zope07:40
*** zenwryly has quit IRC07:43
*** zenwryly has joined #zope07:43
*** zenwryly has quit IRC07:45
*** zenwryly has joined #zope07:46
*** __mac__ has joined #zope07:58
*** __mac__ has quit IRC08:07
*** mgedmin has quit IRC08:35
*** mgedmin has joined #zope08:37
*** kosh has quit IRC08:58
*** __mac__ has joined #zope09:24
*** tisto has joined #zope09:28
*** MrTango has joined #zope09:48
*** goschtl has joined #zope10:04
*** giacomos has joined #zope10:08
*** yvl has joined #zope10:22
*** avoinea has joined #zope10:27
*** agroszer has joined #zope11:02
*** morphex has quit IRC11:05
*** zagy has joined #zope11:14
*** evilbungle has joined #zope11:31
kiorkyhi 176.9.22.59 seems down causing various buildout problems11:34
kiorkysomeone can fix it ?11:34
kiorky:)11:34
*** AnneGilles_ has joined #zope11:35
*** AnneGilles has quit IRC11:36
*** AnneGilles_ is now known as AnneGilles11:36
*** mr_jolly has joined #zope11:54
*** eperez has joined #zope12:08
*** mitchell`off is now known as mitchell`12:11
*** fredvd has joined #zope12:20
*** fredvd has quit IRC12:22
*** __mac__ has quit IRC12:22
*** __mac__ has joined #zope12:23
*** RichyB has joined #zope12:30
*** goschtl has quit IRC12:52
*** goschtl has joined #zope12:53
*** benji has quit IRC12:58
*** __mac__ has quit IRC13:02
*** maurits has joined #zope13:03
*** mgedmin has quit IRC13:19
*** mgedmin has joined #zope13:19
*** fdrake has quit IRC13:20
*** giacomos has quit IRC13:23
*** giacomos has joined #zope13:25
*** __mac__ has joined #zope13:33
*** fredvd has joined #zope13:43
*** tisto is now known as tisto|lunch13:56
*** J1m has joined #zope14:03
_mup_Bug #1080662 was filed: Missing version requirement <zope.ramcache:New> < https://launchpad.net/bugs/1080662 >14:19
*** maurits has quit IRC14:40
*** J1m has quit IRC14:41
*** goschtl has quit IRC14:41
*** maurits has joined #zope15:00
*** sunew has joined #zope15:04
*** fdrake has joined #zope15:06
*** goschtl has joined #zope15:15
*** RichardB has joined #zope15:17
*** RichyB has quit IRC15:20
*** nande has joined #zope15:28
*** thetet has joined #zope15:35
*** sunew has quit IRC15:49
*** sunew has joined #zope15:54
*** sp0cksbeard has joined #zope16:11
*** fredvd has quit IRC16:14
*** thetet has quit IRC16:17
*** J1m has joined #zope16:18
*** goschtl_ has joined #zope16:22
*** zagy has quit IRC16:23
*** goschtl has quit IRC16:24
*** goschtl_ is now known as goschtl16:24
*** RichardB has quit IRC16:36
*** fredvd has joined #zope16:42
*** leo2007 has joined #zope16:57
*** RichardB has joined #zope16:58
*** sunew has quit IRC17:07
*** RichardB has quit IRC17:13
*** RichardB has joined #zope17:13
*** RichardB has quit IRC17:15
*** kosh has joined #zope17:19
*** fredvd has quit IRC17:29
*** jakke has joined #zope17:57
jakkecan someone give me some pointers how to use the component.xml to add extra loggers to a zope application17:57
jakkeI'm kind of lost how to use the sectiontypes and sections17:57
jakkeI defined a section for my logger in component.xml, but zope cannot find it, so I must be missing part of the configuration somewhere17:58
jakkeor some naming convention or so17:58
fdrakeCan't you just use <logger> sections?17:59
fdrakeYou shouldn't need to touch the schema.17:59
jakkenot in the zope.conf, but I might be in the component.xml though18:00
jakkeI'll try18:00
fdrakeIs this for a Zope 3 app?18:00
jakkesorry, zope..1318:01
jakkeas far as I get it now, I need in my component.xml a <component> <sectiontype> <section type="logger"> nested in that order18:02
jakkejust <logger> in component.xml is not recognised18:02
*** tisto|lunch is now known as tisto18:02
koshhi freaks18:03
fdrakejakke: You should only need to include <logger> sections in your configuration; there shouldn't be any need to touch your schema or any component.xml.18:09
*** zenwryly has quit IRC18:10
jakkeif I add <logger someLoggerName> section in the zopeconf, the instance complains it cannot find any sections for someLoggerName18:10
*** zenwryly has joined #zope18:11
*** mcdonc has quit IRC18:14
*** mcdonc has joined #zope18:14
fdrakeHmm.18:14
fdrakeAh.18:15
fdrake<logger>18:15
fdrake  name ...18:15
fdrake  more settings here18:15
fdrake</logger>18:15
fdrakeShould work in all modern Zopes.18:15
jakkeError: no matching section defined for type='logger', name='None'18:16
jakkereading how the access logger was added, I thought it would work that way :s18:17
*** tiwula has joined #zope18:18
jakkeand I can see the SectionInfo is not loaded for this logger section, don't understand why so far18:18
*** phux has joined #zope18:19
*** supton has joined #zope18:22
fdrakeWhat version of ZConfig are you using?18:23
jakke2.918:25
fdrakeWhat package is providing the top-level schema?18:25
jakkezope2.1318:26
fdrakeZope 2 might need to have the schema extended; I'm a little surprised, though.18:30
fdrakeTry this in schema.xml:18:30
fdrake  <import package="ZConfig.components.logger" />18:30
fdrake  <multisection type="logger" attribute="loggers" name="*" required="no">18:30
fdrake    <description>18:30
fdrake      Additional loggers for specific subsystems18:30
fdrake    </description>18:30
fdrake  </multisection>18:30
jakkea schema.xml of my package or zope2 schema.xml?18:31
fdrakeWhatever schema you're using for the application config; you can create a new schema to extend the zope2 schema if you need to.18:32
fdrakeI'm not familiar enough with recent Zope 2s to know how to hook that in, though.18:33
*** fredvd has joined #zope18:34
*** agroszer has quit IRC18:34
jakkeI understood that by using %import <mypackage> I could extend the schema, is that correct or a misunderstanding?18:35
jakkein zope.conf18:35
mgedminI doubt that18:36
fdrakeIncorrect.18:36
fdrakeThat can include new concrete types, but doesn't get them used in the schema.18:36
fdrakeIt's usually used to load types for which the abstract types are already loaded.18:37
fdrake(And used.)18:37
fdrakeLike new storage implementations.18:37
jakkeabstract logger types are loaded18:37
jakkewe have an access and eventlog18:37
jakkehow to define a concrete type (like access logger)18:37
fdrakeWhy do you want a new concrete type?  There's a logger concrete type; you just want to be able to use that.18:38
jakkeI just want to add an extra logger to my application, to avoid spoiling eventlog or accesslog18:39
fdrakeRight.18:39
jakkeand I hope to be able to do that without touching the top schema.xml18:39
fdrakeCheck the Zope 2 schema to see if there's a multisection similar to what I showed earlier; if there is, you can use that.18:40
fdrakeYou'll be able to define all the loggers you need.18:40
mgedminhttp://zope3.pov.lt/trac/browser/Zope/branches/2.13/src/Zope2/Startup/zopeschema.xml ?18:41
fdrakehttp://zope3.pov.lt/trac/browser/Zope/branches/2.13/src/Zope2/Startup/zopeschema.xml18:41
fdrakeOoops.18:42
jakkeno multisection for loggers :s18:42
fdrakeThat's... unfortunate.18:42
fdrakeSo yesteryear.18:43
jakkewith the multisection the <logger name> would work in zope.conf I'd guess18:43
fdrakeZope 3 supports that.  :-)18:44
jakkelol, no easy upgrade here ;-)18:44
mgedminyou could deploy zope2 through wsgi and configure logging externally18:44
mgedminor so I have heard18:44
fdrakeSorry; your problem is one of straightening out the schema definition, which is going to offer some b/w compatibility issues.18:45
mgedminhm?  that's a new feature, surely18:45
mgedminwhat compatibility issues?18:45
fdrakeThe existing schema already uses the name "logger".18:45
mgedminwhere?18:46
jakkethat's a naming issue, another name that's documented should do the trick18:46
fdrakeRight where you pointed me to (line 14).18:46
jakkelogger is used for accesslog18:46
mgedminthat's <sectiontype>18:46
mgedminoh, we need a different section type?18:46
mgedminah, for specifying the logger name18:46
fdrakeRight; the sectiontype for <logger> is ... "logger"!18:46
mgedminso it would conflict with http://zope3.pov.lt/trac/browser/ZConfig/trunk/ZConfig/components/logger/logger.xml18:48
jakkeit's the same sectiontype as in zope218:49
jakkebut a multisection with name="additionalloggers" or so would do the trick, no?18:50
*** avoinea has quit IRC18:53
fdrakeThe section type in Zope 2 doesn't share a definition with that of the same name in ZConfig.components.logger/logger.xml, which is the problem, as mgedmin points out.18:54
*** __mac__ has quit IRC18:59
jakke*sigh* a pitty, but thanks guys19:00
jakkeI think I'll go for the zope-conf-additional parameter to get a dynamic way of accessing my var/log folder that is available at import time19:00
*** fredvd has quit IRC19:00
jakkean xml like config in buildout would have been sweet, but short term not feasable apparently19:01
jakkethanks for thinking and debugging with me!19:01
*** tisto has quit IRC19:08
*** giacomos has quit IRC19:09
*** yvl has quit IRC19:09
mgedminso you didn't like the wsgi idea?19:10
jakkeI think the guy who's in charge of the deployment would kick me if I did that ;-)19:10
*** supton has quit IRC19:16
*** mitchell` is now known as mitchell`off19:29
*** leo2007 has quit IRC19:31
*** leo2007 has joined #zope19:34
*** mcdonc has quit IRC19:42
*** mcdonc has joined #zope19:43
*** maurits has quit IRC19:50
*** zagy has joined #zope19:50
*** leo2007 has quit IRC19:53
*** MrTango has quit IRC19:57
*** zagy has quit IRC19:58
*** tiwula has quit IRC20:06
*** zagy has joined #zope20:09
*** thetet has joined #zope20:11
*** eperez has quit IRC20:13
*** zagy has quit IRC20:15
*** River_Rat has joined #zope20:33
*** River-Rat has quit IRC20:35
*** Spanktar has joined #zope20:45
*** __mac__ has joined #zope20:59
*** roq_ has joined #zope21:05
*** LeoRochael has joined #zope21:10
*** zagy has joined #zope21:17
*** m8 has joined #zope21:29
*** AnneGilles is now known as AnneGilles_21:30
*** supton has joined #zope21:38
*** crazydiamond has quit IRC21:39
*** sm has quit IRC21:45
*** LeoRochael has quit IRC21:51
*** LeoRochael has joined #zope21:55
*** zagy has quit IRC22:03
*** zagy has joined #zope22:11
*** sm has joined #zope22:18
*** zagy has quit IRC22:38
*** zagy has joined #zope22:42
*** zagy has quit IRC22:45
*** zagy has joined #zope23:00
*** zagy has quit IRC23:01
*** nande has quit IRC23:02
*** __mac__ has quit IRC23:12
*** nande has joined #zope23:14
*** LeoRochael has quit IRC23:18
*** LeoRochael has joined #zope23:27
*** supton has quit IRC23:33

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