Re: [Zope-dev] zeo server conflict resolving

2006-06-06 Thread M. Krainer
On 6/3/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
A ZEO weakness, I fixed in our local copy this way:"runzeo.py":try: from App import FindHomesexcept ImportError: pass # this is not Zope
This works for me.
Thanks!

  -- Markus
 
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zeo server conflict resolving

2006-06-05 Thread Dieter Maurer
Chris Withers wrote at 2006-6-5 14:54 +0100:
> ...
>Have you signed your new contributor agreement yet? ;-)

I did not yet get an invitation...



-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zeo server conflict resolving

2006-06-05 Thread Chris Withers

Dieter Maurer wrote:

M. Krainer wrote at 2006-6-2 12:27 +0200:

Forgot to mention that this was actually the first thing I tried. But it
doesen't work, as
the INSTANCE_HOME dir does also not show up in sys.path (in find_globals).


A ZEO weakness, I fixed in our local copy this way:

"runzeo.py":

# DM: 2004-06-03
# activate Zope's INSTANCE_HOME magic.


Have you signed your new contributor agreement yet? ;-)

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zeo server conflict resolving

2006-06-03 Thread Dieter Maurer
M. Krainer wrote at 2006-6-2 12:27 +0200:
>Forgot to mention that this was actually the first thing I tried. But it
>doesen't work, as
>the INSTANCE_HOME dir does also not show up in sys.path (in find_globals).

A ZEO weakness, I fixed in our local copy this way:

"runzeo.py":

# DM: 2004-06-03
# activate Zope's INSTANCE_HOME magic.
# This is necessary for conflict resolution of classes
# defined in "$INSTANCE_HOME/Products"
# Note that this is only a partial workaround. A complete solution
# would give ZEO the same Python path and product configuration options
# used by Zope. To get better control which classes are loaded
# an additional registration facility for such classes would
# be needed as well.
try: from App import FindHomes
except ImportError: pass # this is not Zope



-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zeo server conflict resolving

2006-06-02 Thread M. Krainer
Hi Stefan!Forgot to mention that this was actually the first thing I tried. But it doesen't work, asthe INSTANCE_HOME dir does also not show up in sys.path (in find_globals). - Markus
On 6/2/06, Stefan H. Holek <[EMAIL PROTECTED]> wrote:
You have to copy or symlink your Products directory into the ZEOinstance. At least those Products it tries to load for conflictresolution.HTH,StefanOn 2. Jun 2006, at 10:21, M. Krainer wrote:
> How can I teach the zeo server to lookup my Products dir to resolve> the> conflict?--Anything that happens, happens.  --Douglas Adams
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] zeo server conflict resolving

2006-06-02 Thread Stefan H. Holek
You have to copy or symlink your Products directory into the ZEO  
instance. At least those Products it tries to load for conflict  
resolution.


HTH,
Stefan

On 2. Jun 2006, at 10:21, M. Krainer wrote:

How can I teach the zeo server to lookup my Products dir to resolve  
the

conflict?


--
Anything that happens, happens.  --Douglas Adams


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] zeo server conflict resolving

2006-06-02 Thread M. Krainer
Can someone please enlighten me on conflict resolving of the zeo server?I'm getting occasional conflict errors from the zeo server.The class I'm getting those conflict errors is a simple class(only inheriting from Persistent) that defines a _p_resolveConflict() method.
What I found out so far is, that in FileStorage.store() if serial!=cached_tid thentryToResolveConflict() gets called. In this method, in order to resolve theconflict, find_globals tries to import the module where my class is defined.
Here's the problem. The zeo server has no information about my Products dir.I added it to the PYTHONPATH variable in zeoctl before starting the server.If I do a 'zeoctl show python' the Product dir shows up in the path, but when
I log sys.path from within the find_globals() method it does NOT show up.How can I teach the zeo server to lookup my Products dir to resolve the conflict?  - Markus
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )