Re: [Zope3-dev] Broken Tests

2006-03-13 Thread Andreas Jung
Date-Sent: 14. März 2006 07:45:59 --On 13. März 2006 16:49:27 -0500 Benji York <[EMAIL PROTECTED]> wrote: It looks like revision 65953 ("updated to Docutils 0.4.0") broke the unit tests. For details see http://buildbot.zope.org:8002/Zope3%20trunk%202.4%20Linux%20zc-buildbot/b uilds/382/test/

Re: [Zope3-dev] Broken Tests

2006-03-13 Thread Andreas Jung
--On 13. März 2006 16:49:27 -0500 Benji York <[EMAIL PROTECTED]> wrote: It looks like revision 65953 ("updated to Docutils 0.4.0") broke the unit tests. For details see http://buildbot.zope.org:8002/Zope3%20trunk%202.4%20Linux%20zc-buildbot/b uilds/382/test/0 Andreas, do you have any idea wh

[Zope3-dev] Re: what is ZCML?

2006-03-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Shell wrote: > On 3/13/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: > >>Martijn Faassen wrote at 2006-3-13 17:15 +0100: >> >>>... >>>A newer interpretation of ZCML is: >>> >>>""" >>>ZCML is a configuration language that configures a number of bas

[Zope3-dev] Re: a new zcml directive?

2006-03-13 Thread Philipp von Weitershausen
Marius Gedminas wrote: > I'd prefer > > from zope.annotation.adapter import AnnotationAdapter > > getFoo = AnnotationAdapter(for_=IBar, >interface=IFoo, >factory=Foo, >key=FOO_KEY) > # I su

[Zope3-dev] Re: a new zcml directive?

2006-03-13 Thread Philipp von Weitershausen
Lennart Regebro wrote: > On 3/10/06, Martijn Faassen <[EMAIL PROTECTED]> wrote: > >>For instance, one that looks like this: >> >> > > > That doesn't look like configuration. No, it's an on/off switch. Me likesss it. Philipp ___ Zope3-dev mailing lis

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Sidnei da Silva
On Mon, Mar 13, 2006 at 04:40:09PM -0700, Shane Hathaway wrote: | I would suggest that is a component architecture feature, not a ZCML | feature. If Zope were a hardware device, the CA would be the wiring and | ZCML would be the schematic diagram. Great point! -- Sidnei da Silva Enfold System

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Shane Hathaway
Paul Winkler wrote: On Mon, Mar 13, 2006 at 04:14:08PM -0700, Shane Hathaway wrote: You're aware of the DRY principle, right? ZCML is repetitive, and repetitive is wrong. We tend to think that repetition is *always* wrong, but in other fields there are cases in which it depends who the read

[Zope3-dev] Re: New way of using skins

2006-03-13 Thread Philipp von Weitershausen
Florian Lindner wrote: >>I think ovarall, Phillip should support those named layers. That feedback is a little late. The proposal had been around for months! By the way, from what I read in the old layer code (which seemed to be yours), I got the impression that named layers and skins were slated

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jim Fulton
Alec Mitchell wrote: ... I was a bit disturbed. What's the point? The point is that you are using the adapter. > It tells you nothing unless you refer to the actual implementation. It tells you that the adapter is being used. > Why not just put the registration in python alongside the

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Paul Winkler
On Mon, Mar 13, 2006 at 04:14:08PM -0700, Shane Hathaway wrote: > You're aware of the DRY principle, right? ZCML is repetitive, and > repetitive is wrong. We tend to think that repetition is *always* wrong, but in other fields there are cases in which it depends who the reader is, and how the re

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jim Fulton
Dieter Maurer wrote: ... Note, that configuration files should be understand and adaptable by administrators. Therefore, they should be readable and understandable -- without an understanding of the implementation (but with reading of the component documentation). As Jeffrey pointed out (and as

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jim Fulton
Martijn Faassen wrote: ... A newer interpretation of ZCML is: """ ZCML is a configuration language that configures a number of basic directives for configuring the component architecture and security: adapters, utilities, security requirements, and little else. Right. Everything else shoul

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Shane Hathaway
Sidnei da Silva wrote: On Mon, Mar 13, 2006 at 02:16:17PM -0700, Jeff Shell wrote: | And I think it's | very important for the Python code to say what it does, so when I come | back to a module five months later I'm not staring at MyFactory going | "yeah, but what is it?" One thing that must not

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Sidnei da Silva
On Mon, Mar 13, 2006 at 02:16:17PM -0700, Jeff Shell wrote: | And I think it's | very important for the Python code to say what it does, so when I come | back to a module five months later I'm not staring at MyFactory going | "yeah, but what is it?" One thing that must not pass by unnoticed is tha

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Shane Hathaway
Jeff Shell wrote: Why design a language at all? We already did, and it's a BASIC-like language, so now we reap the consequences. Some of the consequences are: 1. If you stick to the established directives, you express repetitive, low level information that really needs to be represented in

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Lennart Regebro
On 3/13/06, Alec Mitchell <[EMAIL PROTECTED]> wrote: > +1 The first time I saw: > > > > I was a bit disturbed. What's the point? It tells you nothing unless you > refer to the actual implementation. Right, but it switches it on, which is important. :-) -- Lennart Regebro, Nuxeo http://www.

[Zope3-dev] Broken Tests

2006-03-13 Thread Benji York
It looks like revision 65953 ("updated to Docutils 0.4.0") broke the unit tests. For details see http://buildbot.zope.org:8002/Zope3%20trunk%202.4%20Linux%20zc-buildbot/builds/382/test/0 Andreas, do you have any idea why that might be? -- Benji York Senior Software Engineer Zope Corporation

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jeff Shell
On 3/13/06, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Martijn Faassen wrote: > > A newer interpretation of ZCML is: > > > > """ > > ZCML is a configuration language that configures a number of basic > > directives for configuring the component architecture and security: > > adapters, utilities, s

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Alec Mitchell
On Monday 13 March 2006 10:59, Dieter Maurer wrote: > Martijn Faassen wrote at 2006-3-13 17:15 +0100: > > ... > >A newer interpretation of ZCML is: > > > >""" > >ZCML is a configuration language that configures a number of basic > >directives for configuring the component architecture and security:

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jeff Shell
On 3/13/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: > Martijn Faassen wrote at 2006-3-13 17:15 +0100: > > ... > >A newer interpretation of ZCML is: > > > >""" > >ZCML is a configuration language that configures a number of basic > >directives for configuring the component architecture and security

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Jeff Shell
On 3/13/06, Alec Mitchell <[EMAIL PROTECTED]> wrote: > On Monday 13 March 2006 10:59, Dieter Maurer wrote: > > Note, that configuration files should be understand and > > adaptable by administrators. Therefore, they should be readable > > and understandable -- without an understanding of the implem

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Shane Hathaway
Martijn Faassen wrote: A newer interpretation of ZCML is: """ ZCML is a configuration language that configures a number of basic directives for configuring the component architecture and security: adapters, utilities, security requirements, and little else. Everything else should be done in P

Fwd: [Zope3-dev] a new zcml directive?

2006-03-13 Thread Jeff Shell
I wrote this reply earlier but forgot to use 'reply all' instead of 'reply'. Oops. I'm also editing and expanding my remarks slightly from the earlier. In short: Python is a good programming language, usually easy to follow. ZCML is not. Either work really hard at improving ZCML, or just simplify

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Lennart Regebro
On 3/13/06, Dieter Maurer <[EMAIL PROTECTED]> wrote: > Note, that configuration files should be understand and > adaptable by administrators. Therefore, they should be readable > and understandable -- without an understanding of the implementation > (but with reading of the component documentation)

Re: [Zope3-dev] RFC: Use ConfigParser for High-Level Configuration

2006-03-13 Thread Dieter Maurer
Jim Fulton wrote at 2006-3-12 15:54 -0500: >Dieter Maurer wrote: >> Jim Fulton wrote at 2006-3-11 18:03 -0500: >> >>>... >>>Where is this documented? >> >> >> I do not know. I saw a feature description in the mailing list. >> Fred and Tres (the authors) should be able to tell you whether >> ther

Re: [Zope3-dev] what is ZCML?

2006-03-13 Thread Dieter Maurer
Martijn Faassen wrote at 2006-3-13 17:15 +0100: > ... >A newer interpretation of ZCML is: > >""" >ZCML is a configuration language that configures a number of basic >directives for configuring the component architecture and security: >adapters, utilities, security requirements, and little else. E

Re: [Zope3-dev] zc.table and zc.resourcelibrary feedback

2006-03-13 Thread Gary Poster
On Mar 13, 2006, at 10:59 AM, Martijn Faassen wrote: [...] Thanks for looking into this Martijn. We have some internal versions of a sortable zc.table factory that take a different approach, and are not using the client-side part of the zc.table code much at all. If you're willing to loo

[Zope3-dev] what is ZCML?

2006-03-13 Thread Martijn Faassen
Hi there, In this mail I'd like to make explicit some competing design influences on ZCML. The first interpretation of what ZCML is: """ ZCML is a configuration language that provides abstract directives for configuring Zope applications. If we're setting up a page, we use the page directiv

Re: [Zope3-dev] zc.table and zc.resourcelibrary feedback

2006-03-13 Thread Martijn Faassen
Benji York wrote: Martijn Faassen wrote: [snip] A second issue seems to me a bug in the javascript. When I use StandaloneSortFormatter I can click on the title of a column to sort to see a sorted view. This works wonderfully well. Unfortunately the javascript is a bit simplistic in that it si

Re: [Zope3-dev] a new zcml directive?

2006-03-13 Thread Gunnar Wrobel
Stephan Richter <[EMAIL PROTECTED]> writes: > On Friday 10 March 2006 10:19, Martijn Faassen wrote: >> What do people think? > > +1 We use this pattern for every annotation in SchoolTool and it gets old > really quick. One argument that could be made is that the code in the > function could be i

Re: [Zope3-dev] a new zcml directive?

2006-03-13 Thread Stephan Richter
On Monday 13 March 2006 06:20, Martijn Faassen wrote: > In your example, the ZCML doesn't show that we actually are setting up > an annotation, and it doesn't show for what we're setting up an > annotation for in the first place either. It's one intrepretation of > ZCML that it should show these th

Re: [Zope3-dev] RFC: Use ConfigParser for High-Level Configuration

2006-03-13 Thread Stuart Bishop
Jim Fulton wrote: > Have you written a ZConfig schema? Have you tried to read the > documentation on writing one? Have you writtem an application > that uses ZConfig? If you had, I think you'd know what I was > talking about. I have. Our chunk of our schema.xml is over 600 lines including commen

[Zope3-dev] Moving to docutils 0.4.0?

2006-03-13 Thread Andreas Jung
I would like to update Docutils for Zope 2 trunk and Zope 3 trunk to v 0.4.0. Any objections for - importing docutils as top-level module on svn.zope.org - replacing src/docutils with an svn:externals definition ? Andreas pgpXIknsX6Wpy.pgp Description: PGP signature _

Re: [Zope3-dev] RFC: Use ConfigParser for High-Level Configuration

2006-03-13 Thread Chris Withers
Jim Fulton wrote: Have you written a ZConfig schema? Yup, a few, as well as adding a couple of options to zope.conf, which totally abuses ZConfig :-/ Have you tried to read the documentation on writing one? Yup :-) Have you writtem an application that uses ZConfig? Yup, couple...

Re: [Zope3-dev] RFC: Use ConfigParser for High-Level Configuration

2006-03-13 Thread Jim Fulton
Chris Withers wrote: Jim Fulton wrote: I'd like to be able to use configuration files for the test runner, but I really don't want ZConfig to be a dependency of the test runner. I also don't want to go through all of the gymnasics required to develop a ZConfig schema just for the test r

[Zope3-dev] Re: SVN: Zope3/branches/jim-adapter/src/zope/ Redeprecated a number of things that didn't generate warnings

2006-03-13 Thread Philipp von Weitershausen
Jim Fulton wrote: > Log message for revision 65931: > Redeprecated a number of things that didn't generate warnings > before. Sigh. Also fixed all the depecation warnings generated by > running the zope.component tests. > ... > Added: Zope3/branches/jim-adapter/src/zope/component/back35.

Re: [Zope3-dev] a new zcml directive?

2006-03-13 Thread Martijn Faassen
Marius Gedminas wrote: [snip] -1 I'd prefer from zope.annotation.adapter import AnnotationAdapter getFoo = AnnotationAdapter(for_=IBar, >interface=IFoo, >factory=Foo, key=FOO_KEY) > # I suppose the key could

Re: [Zope3-dev] a new zcml directive?

2006-03-13 Thread Martijn Faassen
Lennart Regebro wrote: On 3/10/06, Martijn Faassen <[EMAIL PROTECTED]> wrote: For instance, one that looks like this: That doesn't look like configuration. What does it look like to you? If hooking up adapters is considered to be configuration, why is hooking up annotations not configu

Re: [Zope3-dev] RFC: Use ConfigParser for High-Level Configuration

2006-03-13 Thread Chris Withers
Jim Fulton wrote: Would it be possible to write a configuration file that loaded it's own schemas? Not sure what you mean... For example, suppose I wanted to configure zope and twisted, could I do something like: import zope.app.appsetup import zope.app.twisted import zope.testrunner

Re: [Zope3-dev] RFC: Use ConfigParser for High-Level Configuration

2006-03-13 Thread Chris Withers
Jim Fulton wrote: I don't want to try to make paste deploy or setuptools, use ZConfig. There are other tools out there that use ConfigParser, Yay! Lowest common denominator programming :-( I'd like to be able to use configuration files for the test runner, but I really don't want ZConfig to