Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-24 Thread Chris Withers
Fred Drake wrote: On 1/21/06, Jim Fulton [EMAIL PROTECTED] wrote: are really attributes of foo. In ZCML, this might have been: foo x=1 y=2 / Except this breaks down in the case of ZConfig multikey elements, which allow configuration like this: foo x = 1 x = 2

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-24 Thread ksmith99 (sent by Nabble.com)
Jim Fulton wrote: Martijn Faassen wrote: Shane Hathaway wrote: Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. I like this proposal. It is likely to reduce the total amount of code. However, I want to be sure that

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-24 Thread Dieter Maurer
Martijn Faassen wrote at 2006-1-23 18:27 +0100: ... For one, ZConfig is a syntax not very well known, even granting its similarity to the Apache configuration language, while XML is very well known. Come on: The only syntactic part of ZConfig is: there are keys with values and sections

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-24 Thread Dieter Maurer
Fred Drake wrote at 2006-1-23 09:56 -0500: On 1/23/06, Chris Withers [EMAIL PROTECTED] wrote: As I said earlier, I think XML is wrong for configuration for exactly this kind of reason... element-based is right for this type of config, it's why Apache uses, it's why Zope 2 uses it, and it's why

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Chris Withers
Jim Fulton wrote: What is the fundamental difference between ZConfig and ZCML apart from the esthetic appearance that everyone seems to be so concerned with? ZConfig is also generally simpler. For example, it doesn't use XML namespaces and is thus less extensible. I'm sure ZConfig could be

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Fred Drake
On 1/23/06, Chris Withers [EMAIL PROTECTED] wrote: As I said earlier, I think XML is wrong for configuration for exactly this kind of reason... element-based is right for this type of config, it's why Apache uses, it's why Zope 2 uses it, and it's why Zope 3 uses it for the .conf file...

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Martijn Faassen
Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. The use case of experimenting with different formats could also be approached using a pre-processor approach for ZCML. That ZCML is an XML dialect makes such a thing easier,

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Martijn Faassen
Shane Hathaway wrote: Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. I like this proposal. It is likely to reduce the total amount of code. However, I want to be sure that consolidating engines is the real focus of the

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Jim Fulton
Martijn Faassen wrote: Shane Hathaway wrote: Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. I like this proposal. It is likely to reduce the total amount of code. However, I want to be sure that consolidating engines

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Martijn Faassen
Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. After thinking about it for a little bit, -1. Firstly, I'm interested in experimenting with alternative syntaxes for ZCML. I'm however not convinced that the proposal is a

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-23 Thread Martijn Faassen
Jim Fulton wrote: [snip] Huh? Geez, my proposal must have been really unclear. I'm not proposing replacing ZCML files with ZConfig files. I'm proposing leveraging the ZCML engine and especially the system for extensibility for handling ZConfig files Yeah, I read some of the thread, which

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-22 Thread Jim Fulton
Fred Drake wrote: On 1/21/06, Jim Fulton [EMAIL PROTECTED] wrote: are really attributes of foo. In ZCML, this might have been: foo x=1 y=2 / Except this breaks down in the case of ZConfig multikey elements, which allow configuration like this: foo x = 1 x = 2

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-21 Thread Fred Drake
On 1/21/06, Jim Fulton [EMAIL PROTECTED] wrote: are really attributes of foo. In ZCML, this might have been: foo x=1 y=2 / Except this breaks down in the case of ZConfig multikey elements, which allow configuration like this: foo x = 1 x = 2 y = 3 /foo

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-20 Thread Chris Withers
Paul Winkler wrote: Does this mean we could potentially change zconfig options at runtime? i.e. no server restart? That might be useful. ...or dangerous and unpredictable, depending on your point of view... Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-20 Thread Jim Fulton
Stephan Richter wrote: On Friday 20 January 2006 07:36, Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. I am +1. However, there is another risk. If we support multiple formats then that means that a developer will have to

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-20 Thread Shane Hathaway
Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML Comments and volunteers welcome. I like this proposal. It is likely to reduce the total amount of code. However, I want to be sure that consolidating engines is the real focus of the proposal. Converting XML

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-20 Thread Jim Fulton
Paul Winkler wrote: On Fri, Jan 20, 2006 at 07:36:19AM -0500, Jim Fulton wrote: See: http://dev.zope.org/Zope3/ZConfigAndOtherFormatsForZCML ...We'll register the options object as a utility. To the extent that we want to keep using an object like that, option handlers would save their

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-20 Thread Dieter Maurer
Paul Winkler wrote at 2006-1-20 10:26 -0500: ... Does this mean we could potentially change zconfig options at runtime? What do you mean by that? You can already now change zconfig options at runtime (you can modify the object returned by getConfiguration()). But usually, it will have little

Re: [Zope3-dev] RFC: ZConfig and other formats for ZCML

2006-01-20 Thread Paul Winkler
On Fri, Jan 20, 2006 at 07:58:52PM +0100, Dieter Maurer wrote: Paul Winkler wrote at 2006-1-20 10:26 -0500: ... Does this mean we could potentially change zconfig options at runtime? What do you mean by that? You can already now change zconfig options at runtime (you can modify the