Re: [Zope-dev] Proposal: merge zc.configuration's exclude directiveinto zope.configuration.

2009-02-26 Thread Roger Ineichen
Hi Martijn

> Betreff: Re: [Zope-dev] Proposal: merge zc.configuration's 
> exclude directiveinto zope.configuration.
> 
> Hi there,
> 
> On Thu, Feb 26, 2009 at 12:43 PM, Roger Ineichen 
>  wrote:
> > Now we only need to find out how to write an z3c.autoexlude and a 
> > z3c.autooverride library ;-)
> 
> :)
> 
> Just so that this doesn't get misinterpreted, autoinclude 
> includes packages just like manual include statements do 
> underneath, so there should be no incompatibility with the 
> exclude directive at all.
> 
> You can override autoincluded packages just like you'd 
> override any included package. In addition there's an 
> includeDependenciesOverrides directive which can include 
> overrides automatically if you wish to do that.
> 
> If a package uses z3c.autoinclude to include its dependencies 
> there'll be no difference in what you can do concerning 
> overrides or exclusion.

I was just kiding as you saw. But this sounds very good to me
since it has no other side effects!


Thanks
Roger Ineichen

> Regards,
> 
> Martijn
> 

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Proposal: merge zc.configuration's exclude directiveinto zope.configuration.

2009-02-26 Thread Martijn Faassen
Hi there,

On Thu, Feb 26, 2009 at 12:43 PM, Roger Ineichen  wrote:
> Now we only need to find out how to write an z3c.autoexlude
> and a z3c.autooverride library ;-)

:)

Just so that this doesn't get misinterpreted, autoinclude includes
packages just like manual include statements do underneath, so there
should be no incompatibility with the exclude directive at all.

You can override autoincluded packages just like you'd override any
included package. In addition there's an includeDependenciesOverrides
directive which can include overrides automatically if you wish to do
that.

If a package uses z3c.autoinclude to include its dependencies there'll
be no difference in what you can do concerning overrides or exclusion.

Regards,

Martijn
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Proposal: merge zc.configuration's exclude directiveinto zope.configuration.

2009-02-26 Thread Dan Korostelev
2009/2/26 Roger Ineichen :

>> (note though that including an extra "meta.zcml" can be
>> avoided if you make use of the z3c.autoinclude library)
>
> Oh, cool.
>
> Now we only need to find out how to write an z3c.autoexlude
> and a z3c.autooverride library ;-)

:-)) +1

-- 
WBR, Dan Korostelev
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Proposal: merge zc.configuration's exclude directiveinto zope.configuration.

2009-02-26 Thread Roger Ineichen
Hi

> exclude directiveinto zope.configuration.
> 
> Hey,
> 
> Dan Korostelev wrote:
> > The "exclude" directive provided by zc.configuration 
> package is easy 
> > to use and straightforward. I think it's used almost in every 
> > zope-based application setup.
> 
> I highly doubt so; I don't find myself using it a lot myself, 
> for instance. :)
> 
> > Its implementation is very small and
> > fits great in zope.configuration's standard directives. So 
> I'd like to 
> > propose to move it to zope.configuration and make it always 
> available 
> > for ZMCL files, just like the "include" directive, so 
> people would'nt 
> > need to install extra package and include an extra "meta.zcml" file 
> > before being able to use it.
> 
> +1

+1

> (note though that including an extra "meta.zcml" can be 
> avoided if you make use of the z3c.autoinclude library)

Oh, cool.

Now we only need to find out how to write an z3c.autoexlude 
and a z3c.autooverride library ;-)

Regards
Roger Ineichen

> Regards,
> 
> Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )