Re: [Zope3-dev] Dependency cleanup: zope.traversing
On Wednesday 22 August 2007 08:10, Christian Theune wrote: > I wonder why we use traversal in this place ... Very old code. :-) As far as I remember, zope.app.testing was written shortly after some traversal package changes and we were so happy about the simplicity of the API that it got used too much. There are some other places like that I think. > Either I can change the dependencies of zope.app.testing to include > zope.app.publication to a required minimum version or I can change this > to use a different lookup mechanism. Just use the Python API to do the lookup. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Dependency cleanup: zope.traversing
Christian Theune wrote: I've moved the `etc` namespace class to zope.app.publication in my sandbox. During testing I noticed that zope.app.testing has a dependency on zope.traversing for traversing "++etc++sitemanager" when creating a site manager. I can change this to use a different lookup mechanism. +1 -- Benji York Senior Software Engineer Zope Corporation ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Dependency cleanup: zope.traversing
Hey, I've moved the `etc` namespace class to zope.app.publication in my sandbox. During testing I noticed that zope.app.testing has a dependency on zope.traversing for traversing "++etc++sitemanager" when creating a site manager. I wonder why we use traversal in this place ... Either I can change the dependencies of zope.app.testing to include zope.app.publication to a required minimum version or I can change this to use a different lookup mechanism. Christian Am Mittwoch, den 15.08.2007, 14:01 +0200 schrieb Christian Theune: > Hi, > > zope.traversing has a dependency to zope.app.applicationcontroller. This > is because zope.traversing implements the "etc" namespace and has a hard > coded reference to "applicationcontrol" there. > > In the same place it also looks up site managers (in a hard coded way). > > As a strategy to remove this dependency we should move the etc namespace > to some other place in zope.app. I did not find reasonable candidates to > move this two. Bad candidates are zope.app.publisher or > zope.app.publication, zope.app.applicationcontrol. A new package could > be created for the etc namespace too, but I'd like to avoid that. ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Dependency cleanup: zope.traversing
On Wednesday 15 August 2007 08:01, Christian Theune wrote: > zope.traversing has a dependency to zope.app.applicationcontroller. This > is because zope.traversing implements the "etc" namespace and has a hard > coded reference to "applicationcontrol" there. > > In the same place it also looks up site managers (in a hard coded way). > > As a strategy to remove this dependency we should move the etc namespace > to some other place in zope.app. I did not find reasonable candidates to > move this two. Bad candidates are zope.app.publisher or > zope.app.publication, zope.app.applicationcontrol. A new package could > be created for the etc namespace too, but I'd like to avoid that. I think that zope.app.component would be a good candidate, because "etc" is pretty much about accessing the local site. I know it was originally designed for allowing many different non-content things to be plugged in, but this has not materialized. An alternative would be to get rid of ++etc++ and implement ++site++ and ++control++. Now that I think about it, I actually favor this. ;-) Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
[Zope3-dev] Dependency cleanup: zope.traversing
Hi, zope.traversing has a dependency to zope.app.applicationcontroller. This is because zope.traversing implements the "etc" namespace and has a hard coded reference to "applicationcontrol" there. In the same place it also looks up site managers (in a hard coded way). As a strategy to remove this dependency we should move the etc namespace to some other place in zope.app. I did not find reasonable candidates to move this two. Bad candidates are zope.app.publisher or zope.app.publication, zope.app.applicationcontrol. A new package could be created for the etc namespace too, but I'd like to avoid that. Christian ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com