[Twisted-Python] Re: [Twisted-commits] Better collection support for coil.

On Mon, 2002-03-25 at 05:34, itamarst CVS wrote:
If a configurable class is not collection, coil's web interface will check if the Configurator class is a collection, allowing us to have Configurators that act as collections.
A remaining issue is twisted.web.vhost, and other similar cases, where both the Configurator and the configurable class should really be collections.
IMHO, the way this should work is: check the Configurator first. It is the authority on collection-hood, as it were. :-). If the *configurator* is not a collection, then check the configurable; this strikes me as a less likely case... in fact, it seems weird to introspect on the configurable at all at this point, since it isn't the configuration component. Does that make sense?

Glyph Lefkowitz wrote:
IMHO, the way this should work is: check the Configurator first. It is the authority on collection-hood, as it were. :-). If the *configurator* is not a collection, then check the configurable; this strikes me as a less likely case... in fact, it seems weird to introspect on the configurable at all at this point, since it isn't the configuration component.
Yes. Of course, for VHost the Configurator is not a colletion yet, it possibly, maybe, *should* be a collection. And my latest checkin might've fixed it. Anyone care to try?
participants (2)
-
Glyph Lefkowitz
-
Itamar Shtull-Trauring