Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-02 Thread Chris McDonough
On 7/2/09 5:46 PM, Iain Duncan wrote: > On Thu, 2009-07-02 at 16:12 -0400, Tres Seaver wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Malthe Borch wrote: >>> 2009/7/2 Tim Hoffman: I think you woul lose that capability with just name based registrations. >>> Yes, but perhaps f

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-02 Thread Iain Duncan
On Thu, 2009-07-02 at 16:12 -0400, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Malthe Borch wrote: > > 2009/7/2 Tim Hoffman : > >> I think you woul lose that capability with just name based registrations. > > > > Yes, but perhaps for the better; it was always problema

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-02 Thread Chris McDonough
On 7/2/09 4:12 PM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Malthe Borch wrote: >> 2009/7/2 Tim Hoffman: >>> I think you woul lose that capability with just name based registrations. >> Yes, but perhaps for the better; it was always problematic to use >> component ad

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malthe Borch wrote: > 2009/7/2 Tim Hoffman : >> I think you woul lose that capability with just name based registrations. > > Yes, but perhaps for the better; it was always problematic to use > component adaptation to create specialized views based on

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-02 Thread Tim Hoffman
I suppose though I am not sure I agree in my case, I don't have viewlets etc I am just using repoze.bfg with some basic models on gae so its actually quite straight forward. Rgds Tim On Thu, Jul 2, 2009 at 3:28 PM, Malthe Borch wrote: > 2009/7/2 Tim Hoffman : > > I think you woul lose tha

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-02 Thread Malthe Borch
2009/7/2 Tim Hoffman : > I think you woul lose that capability with just name based registrations. Yes, but perhaps for the better; it was always problematic to use component adaptation to create specialized views based on the iro, because of the order of adaptation, e.g. with viewlets: context

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-07-01 Thread Tim Hoffman
I use zope.component registrations against interfaces a lot. It's especially useful for things like view registrations if you models have an inheritance hierarchy for their interfaces. For example it means you can register a default view for a base Interface an as you develop more specific views y

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-06-27 Thread Chris Withers
Fernando Correa Neto wrote: > I'd like to say that repoze.component ended up being more than just an > entry point for people willing to apply AOP on their apps. > One can easily exercise the pattern of registering components and > looking them up back by just using simple strings rather than defin

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-06-22 Thread Fernando Correa Neto
I'd like to say that repoze.component ended up being more than just an entry point for people willing to apply AOP on their apps. One can easily exercise the pattern of registering components and looking them up back by just using simple strings rather than defining interfaces just as markers. Defi

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-06-22 Thread Chris McDonough
On 6/22/09 4:22 PM, Chris Rossi wrote: > On Mon, Jun 22, 2009 at 3:52 PM, Chris McDonough > wrote: > > > This package differs from zope.component inasmuch as it disuses the > concept of > interface, instead fa

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-06-22 Thread Chris Rossi
On Mon, Jun 22, 2009 at 3:52 PM, Chris McDonough wrote: > > This package differs from zope.component inasmuch as it disuses the concept > of > interface, instead favoring string markers. > Oh yeah, at one point markers just needed to be hashable.

Re: [Repoze-dev] repoze.component and repoze.configuration

2009-06-22 Thread Chris Rossi
FWIW, when/if I end up trying to introduce component architecture ideas and practices to projects or groups not already using Zope or BFG, chances are I will start here, rather than than with the zope.* equivalents. While I don't have any particular opinion about XML vs YAML, I have found the heur

[Repoze-dev] repoze.component and repoze.configuration

2009-06-22 Thread Chris McDonough
I have released two new packages to PyPI. These packages were inspired by (design almost entirely stolen from) zope.component and zope.configuration. I don't really expect them to get much use, but writing them was enlightening. Maybe they'll be interesting to someone who wants to introduce pe