Re: [Zope] Re: suddenly confused
Ricardo Newbery wrote at 2008-1-30 12:12 -0800: > ... >Any plans to incorporate either of these solutions in the next >release? I am almost sure that the "import App.FindHomes" solution will never go into ZEO. It would tie ZEO to Zope (which probably is unwanted). It would be nice if ZEO would learn configuration options that would cover all of Zope's products locations. But unfortunately, ZEO is part of ZODB and Jim declared recently that he is the benevolent dictator for the ZODB project and he will usually defer things which can increase the complexity -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: suddenly confused
On Jan 30, 2008, at 10:42 AM, Dieter Maurer wrote: Ricardo Newbery wrote at 2008-1-29 01:19 -0800: ... Apologies for jumping late in this thread but how precisely should "App.FindHomes" be imported? Someone else reported about a ZEO patch that does the same thing without a need to import "App.FindHomes". If you have Zope installed and ZEO is running in the Zope installation (shares its code), then "import App.FindHomes" in sufficient to import "App.FindHomes". Any plans to incorporate either of these solutions in the next release? I would like to avoid trying to explain how to do this to users of a third-party product that needs to be accessible to ZEO. And a related question. Any suggestions on how to support multiple product directories like a non-zeo config? I checked already and zeo.conf doesn't appear to support the "products" directive. "App.FindHomes" can be controlled via the envvar "PRODUCTS_PATH". If defined, it is a "pathsep" separated sequence of directories where Zope should look for products. It may contain "%()s" patterns with "" from "PRODUCTS_PATH", "SOFTWARE_PRODUCTS" and "INSTANCE_PRODUCTS". In these cases, the pattern is replaced by the corresponding path. Ahh... this sounds good. So, assuming App.FindHomes in imported, then all I would need to explain is how to add the necessary "export" lines to zeo.conf? (or maybe zeoctl?) Thanks, Ric ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: suddenly confused
Dieter Maurer wrote: Ricardo Newbery wrote at 2008-1-29 01:19 -0800: ... Apologies for jumping late in this thread but how precisely should "App.FindHomes" be imported? Someone else reported about a ZEO patch that does the same thing without a need to import "App.FindHomes". That's here: https://bugs.launchpad.net/zope2/+bug/143770 - C ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: suddenly confused
Ricardo Newbery wrote at 2008-1-29 01:19 -0800: > ... >Apologies for jumping late in this thread but how precisely should >"App.FindHomes" be imported? Someone else reported about a ZEO patch that does the same thing without a need to import "App.FindHomes". If you have Zope installed and ZEO is running in the Zope installation (shares its code), then "import App.FindHomes" in sufficient to import "App.FindHomes". >And a related question. Any suggestions on how to support multiple >product directories like a non-zeo config? I checked already and >zeo.conf doesn't appear to support the "products" directive. "App.FindHomes" can be controlled via the envvar "PRODUCTS_PATH". If defined, it is a "pathsep" separated sequence of directories where Zope should look for products. It may contain "%()s" patterns with "" from "PRODUCTS_PATH", "SOFTWARE_PRODUCTS" and "INSTANCE_PRODUCTS". In these cases, the pattern is replaced by the corresponding path. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: suddenly confused
On Jan 19, 2008, at 10:39 AM, Dieter Maurer wrote: Tres Seaver wrote at 2008-1-18 21:06 -0500: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Bear wrote: I'm doing my first zeo setup, and suddenly I'm not sure about my products directory. Do I put all products in a products directory of the zeo server or in each zope instance? Normally the ZEO server doesn't need to have access to the products, which are "application code". The only exception is for products which define classes having application-level conflict resolution: in such cases, the ZEO server must be able to import the product (or else the conflict resolution code is not consulted). As an additional note: Zope uses Python import magic to make packages available in "INSTANCE_HOME/Products" as additional products in the "Products" package. If some of these products need application specific conflict resolution, the ZEO server needs to activate this import magic -- by importing Zope's "App.FindHomes". -- Dieter Dieter, Apologies for jumping late in this thread but how precisely should "App.FindHomes" be imported? And a related question. Any suggestions on how to support multiple product directories like a non-zeo config? I checked already and zeo.conf doesn't appear to support the "products" directive. Ric ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: suddenly confused
On Jan 19, 2008, at 1:39 PM, Dieter Maurer wrote: Tres Seaver wrote at 2008-1-18 21:06 -0500: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Bear wrote: I'm doing my first zeo setup, and suddenly I'm not sure about my products directory. Do I put all products in a products directory of the zeo server or in each zope instance? Normally the ZEO server doesn't need to have access to the products, which are "application code". The only exception is for products which define classes having application-level conflict resolution: in such cases, the ZEO server must be able to import the product (or else the conflict resolution code is not consulted). As an additional note: Zope uses Python import magic to make packages available in "INSTANCE_HOME/Products" as additional products in the "Products" package. If some of these products need application specific conflict resolution, the ZEO server needs to activate this import magic -- by importing Zope's "App.FindHomes". An patch to runzeo that allows INSTANCE_HOME Products to be put on the path (but does not require Zope's App.FindHomes is here): https://bugs.launchpad.net/zope2/+bug/143770 Using this patch, you can create a Products directory in your ZEO's instance home and put products in there to service conflict resolution while still keeping SOFTWARE_HOME products on the path. Importing App.FindHomes might be a better way to do this. - C ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: suddenly confused
Tres Seaver wrote at 2008-1-18 21:06 -0500: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >David Bear wrote: >> I'm doing my first zeo setup, and suddenly I'm not sure about my >> products directory. Do I put all products in a products directory of >> the zeo server or in each zope instance? > >Normally the ZEO server doesn't need to have access to the products, >which are "application code". The only exception is for products which >define classes having application-level conflict resolution: in such >cases, the ZEO server must be able to import the product (or else the >conflict resolution code is not consulted). As an additional note: Zope uses Python import magic to make packages available in "INSTANCE_HOME/Products" as additional products in the "Products" package. If some of these products need application specific conflict resolution, the ZEO server needs to activate this import magic -- by importing Zope's "App.FindHomes". -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )