[Zope-dev] Simplifying dependencies of zope.app.publisher
Martijn Faassen
faassen at startifact.com
Thu Aug 6 12:33:38 EDT 2009
Hey Fabio,
Fabio Tranchitella wrote:
> I'm sorry if I am flooding the list with all my requests/messages, but I
> don't want to introduce changes without approval of more experienced zope
> developers.
A belated +1 to discussing things, and +1 to doing work. :)
> I was analyzing zope.app.publisher, and I found that it would be possible
> to remove its dependency on zope.container because the latter is only used
> in zope/app/publisher/xmlrpc/configure.zcml to declare thee views like
> this:
>
> <view
> for="zope.container.interfaces.IItemContainer"
> type="zope.publisher.interfaces.xmlrpc.IXMLRPCRequest"
> provides="zope.publisher.interfaces.xmlrpc.IXMLRPCPublisher"
> factory="zope.container.traversal.ItemTraverser"
> permission="zope.Public"
> />
>
> I think these snippets should me moved to zope.container's configure.zcml,
> where we already have other traversers.
>
> Do you agree with this change?
I remember looking at this relationship in the past but I don't remember
noticing it was this easy. If this looks possible, by all means go ahead.
Regards,
Martijn
More information about the Zope-Dev
mailing list