Questions tagged [zope.component]

The zope.component package implements the core functionality of the Zope Component Architecture (ZCA).

The Zope Component Architecture lets you register and retrieve independent components, that together make a flexible component-based system.

Components are reusable Python objects with introspectable interfaces (implemented using ). Using zope.component lets you define utilities, adapters and subscribers, which together let you build large-scale Python software while decoupling disparate parts and implementations.

See A Comprehensive Guide to Zope Component Architecture for more details.

19 questions
0
votes
1 answer

What's the point in registering a Zope component to the GlobalSiteManager?

I'm reading the awesome tutorial about the zope component architecture from: http://www.muthukadan.net/docs/zca.html#adapters I can't seem to understand the Adapters chapter. >>> from zope.interface import implements >>> from zope.component…
Mark
  • 2,137
  • 4
  • 27
  • 42
0
votes
1 answer

Zope component discrepancy between Interface(obj) and getAdapter(obj, Interface)

What could cause Interface(obj) to return obj, while getAdapter(obj, Interface) returns a properly adapted object?
Ben
  • 2,422
  • 2
  • 16
  • 23
0
votes
0 answers

getMultiAdapter fails with ComponentLookupError

I have a code that looks up an iterface with get multi adapter. One of the element's members that get passed to multi adapter is providing that interface but not the element itself. I have no control about what gets passed to multi adapter but I…
Alex Volkov
  • 2,812
  • 23
  • 27
0
votes
1 answer

Understanding Zope Component Architecture and Component Dependency

It's quite difficult to have a good title of my question. From what I understand, the Adapter is to add more services to the components without changing it. The adapter can extends services from multiple components. But what about the dependency…
nam
  • 3,542
  • 9
  • 46
  • 68
1
2