Re: [Zope] Zeo and conflict resolution (was "suddenly confused")

2008-01-30 Thread Dieter Maurer
Ricardo Newbery wrote at 2008-1-29 22:56 -0800:
> ...
>Another related question.  With respect to conflict resolution, is is  
>safe to assume that products (with _p_resolveConflict methods) in the  
>main Zope products directory are already available to the ZEO server  
>without any special configuration?

Usually -- but of course not always.

If you use and start ZEO from a Zope installation,
then "lib/python" needs to be on "PYTHONPATH" such that
ZEO finds its code and supporting packages.
Then the content of "lib/python/Products" can be used
normally as package "Products". There is no magic needed for this.

Of course, you can start ZEO from a non Zope installation (e.g.
from a standalone ZEO installation) and then Zope's "Products"
will be unavailable



-- 
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 )


[Zope] Zeo and conflict resolution (was "suddenly confused")

2008-01-29 Thread Ricardo Newbery


On Jan 29, 2008, at 1:19 AM, Ricardo Newbery wrote:


On Jan 19, 2008, at 10:39 AM, Dieter Maurer wrote:

  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



Another related question.  With respect to conflict resolution, is is  
safe to assume that products (with _p_resolveConflict methods) in the  
main Zope products directory are already available to the ZEO server  
without any special configuration?


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 )