[Zope-dev] Re: unregistering components?

Chris Withers chris at simplistix.co.uk
Wed Nov 28 05:43:16 EST 2007


Philipp von Weitershausen wrote:
>> So zope.app.component replaces the getSiteManager implementation in 
>> zope.component? :-(
> 
> Yes.

It's a shame this couldn't have been implemented in a more 
component-architecture-oriented way, but I'm guess things get 
chicken-and-egg-y at this point?

> zope.thread.local provides an implementation for the thread-local 
> variable, 

...which both Python 2.5 and Python 2.4 (now that you reminded me ;-) ) 
have.

> in Python 2.4 under 'threading.local'. The latest version of 
> zope.thread.local just refers to 'threading.local'.

Ah, I see :-)

>> Also, where's the code which, in the local registry, defers to the 
>> global registry to find more adapters/subscribers/whatever?
> 
> Look for the __bases__ property and its dynamic setter.

Okay, but where's this code? (ie: what .py should I look at for the 
local registry implementation)

> I think zope3-users is also for the users of the separately usable 
> components. Well, as it turns out, they're not so separately usable 
> right now, at least when you're tryinig to easy_install zope.component 
> or so :(. But at least we're working on that.

I still can't make out if the whole eggs/easy_install thing just sucks 
and we should build something else for the python community (it's not 
just zope that's struggled with easy_install ;-) ) or if it's just zope 
that's had the real problems 'cos of some "bad eggs"...

> I think there's value in separating development from the rest of the 
> traffic.

Why?

> As far as zope at zope.org is concerned, I see a lot of old-school 
> (e.g. DTML-related) traffic there,

Really? I don't see much activity on that list at all nowadays, although 
there was quite an interesting thread (and quite relevent to zope3 and 
zope-dev) that kicked off which involved dtml ;-)

>> PS: I am quite excited that it looks like I may actually be able to 
>> use bits of zope independently, and this wsgi stuff looks pretty cool 
>> too :-)
> 
> Cool! Be sure to let us know about it afterwards. I think we could use 
> some feedback on projects like this.

Will do, but please be patient with my fumblings in the meantime.

If it helps, as far as components and registries goes, I'm aiming for 
something like skin-like stacked registries that can be altered ttw...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list