[Zope] Re: _p_resolveConflict not called on conflict
Martijn Pieters wrote: On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: Yes ZEO is involved, but where do I specify a Products-directory in etc/zeo.conf ? You can't, AFAICT. ZEO servers only support one Products directory in their INSTANCE_HOME, it appears. 'Products' is just like any other package, so adjusting your PYTHONPATH should be all that's necessary. Moreover, 'Products' is just like any other namespace package (IOW, a package spread over multiple directories using Python's __path__ feature). You can declare namespace packages with Python's own pkgutil or with pkg_resources from setuptools. If we stop pretending Zope lived in its own little world, things are actually quite simple and solutions are quite obvious. -- http://worldcookery.com -- Professional Zope documentation and training ___ 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] _p_resolveConflict not called on conflict
On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: > Yes ZEO is involved, but where do I specify a Products-directory in > etc/zeo.conf ? You can't, AFAICT. ZEO servers only support one Products directory in their INSTANCE_HOME, it appears. -- Martijn Pieters ___ 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] _p_resolveConflict not called on conflict
Martijn Pieters schrieb: On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: but _p_resolveConflict is not invoked. what do I do wrong ? Is ZEO involved? If so, does your ZEO instance have the Product installed (with all it's dependencies), so the ZEO server can access the resolve method? Yes ZEO is involved, but where do I specify a Products-directory in etc/zeo.conf ? -- Gruß Joachim ___ 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] _p_resolveConflict not called on conflict
On 8/7/07, Martijn Pieters <[EMAIL PROTECTED]> wrote: > On 8/7/07, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > Is ZEO involved? If so, does your ZEO instance have the Product > > > installed (with all it's dependencies), so the ZEO server can access > > > the resolve method? > > > > Are you sure that conflict resolution happens on the ZEO server side? > > Absolutely. Where else would it happen? See the "Caveats and Dangers" section in: http://svn.zope.org/ZODB/trunk/src/ZODB/ConflictResolution.txt?rev=77078&view=markup Conflict Resolution is a feature of a ZODB storage, and as the storage is the responsibility of the ZEO server, takes place there. -- Martijn Pieters ___ 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] missing images
Sounds like a previously reported bug, http://sourceforge.net/tracker/index.php?func=detail&aid=1352783&group_id=28073&atid=392340 I think this is fixed in CVS, but the original reporter never replied. Can you try ZSyncer from CVS and let me know? cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/zsyncer login cvs -z3 \ -d:pserver:[EMAIL PROTECTED]:/cvsroot/zsyncer \ co -P ZSyncer If that doesn't help, unfortunately I am on vacation for the rest of the month so I won't be able to look at this until September at the earliest. -PW On Tue, Aug 07, 2007 at 09:45:28AM -0700, baiewola wrote: > I recently installed ZSyncer 0.7.1 in Zope 2.7.2, added a ZSyncer > object and configured it. It sync'd perfectly. Today, when I clicked > the sync tab to sync, I noticed that all of the images that indicate > whether an item is okay, out of date, etc., are showing up as question > marks. > > The only thing that changed is that I put Zope behind Apache Sunday > evening. But I can't specifically trace it to that action, because I > didn't test ZSyncer right after putting it behind Apache. > > Has anyone seen this, and if so can you tell me how to resolve it? > > Thanks! > > > > > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > http://farechase.yahoo.com/ > ___ > 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 ) -- Paul Winkler http://www.slinkp.com ___ 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] _p_resolveConflict not called on conflict
On 8/7/07, Andreas Jung <[EMAIL PROTECTED]> wrote: > > Is ZEO involved? If so, does your ZEO instance have the Product > > installed (with all it's dependencies), so the ZEO server can access > > the resolve method? > > Are you sure that conflict resolution happens on the ZEO server side? Absolutely. Where else would it happen? -- Martijn Pieters ___ 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] _p_resolveConflict not called on conflict
--On 7. August 2007 18:40:25 +0200 Martijn Pieters <[EMAIL PROTECTED]> wrote: On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: but _p_resolveConflict is not invoked. what do I do wrong ? Is ZEO involved? If so, does your ZEO instance have the Product installed (with all it's dependencies), so the ZEO server can access the resolve method? Are you sure that conflict resolution happens on the ZEO server side? -aj pgpqpyVdGJl6P.pgp Description: PGP signature ___ 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] missing images
I recently installed ZSyncer 0.7.1 in Zope 2.7.2, added a ZSyncer object and configured it. It sync'd perfectly. Today, when I clicked the sync tab to sync, I noticed that all of the images that indicate whether an item is okay, out of date, etc., are showing up as question marks. The only thing that changed is that I put Zope behind Apache Sunday evening. But I can't specifically trace it to that action, because I didn't test ZSyncer right after putting it behind Apache. Has anyone seen this, and if so can you tell me how to resolve it? Thanks! Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ ___ 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] _p_resolveConflict not called on conflict
On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: > but _p_resolveConflict is not invoked. > > what do I do wrong ? Is ZEO involved? If so, does your ZEO instance have the Product installed (with all it's dependencies), so the ZEO server can access the resolve method? -- Martijn Pieters ___ 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] _p_resolveConflict not called on conflict
--On 7. August 2007 16:40:36 +0200 Joachim Schmitz <[EMAIL PROTECTED]> wrote: Hi, I have a class CourseResults, where I defined: def _p_resolveConflict(self, oldstate, committed, newstate): # Apply the changes made in going from old to newstate to # committed import pdb;pdb.set_trace() in my log I see: 2007-08-07 16:26:14 INFO ZPublisher.Conflict ConflictError at /uniben/campus/students/U315204/study_course/create_level: database conflict error (oid 0x37fc36, class Products.WAeUP_SRP.WAeUPTables.CourseResults, serial this txn started with 0x036f83420cc02caa 2007-08-07 14:26:02.988441, serial currently committed 0x036f834237c65b99 2007-08-07 14:26:13.072227) (1 conflicts (0 unresolved) since startup at Tue Aug 7 16:15:17 2007) No idea but you might try to pdb in ZODB/Connection.py where the _p_resovleConflict() handle is called (if available). -aj pgpszVOV6rGTz.pgp Description: PGP signature ___ 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] _p_resolveConflict not called on conflict
Hi, I have a class CourseResults, where I defined: def _p_resolveConflict(self, oldstate, committed, newstate): # Apply the changes made in going from old to newstate to # committed import pdb;pdb.set_trace() in my log I see: 2007-08-07 16:26:14 INFO ZPublisher.Conflict ConflictError at /uniben/campus/students/U315204/study_course/create_level: database conflict error (oid 0x37fc36, class Products.WAeUP_SRP.WAeUPTables.CourseResults, serial this txn started with 0x036f83420cc02caa 2007-08-07 14:26:02.988441, serial currently committed 0x036f834237c65b99 2007-08-07 14:26:13.072227) (1 conflicts (0 unresolved) since startup at Tue Aug 7 16:15:17 2007) but _p_resolveConflict is not invoked. what do I do wrong ? -- Gruß Joachim ___ 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] Export fails
--On 7. August 2007 09:10:54 +0200 Christian Schaffer <[EMAIL PROTECTED]> wrote: Andreas Jung schrieb:> The version information shows: Zope 2.9.4-final, python 2.4.3, sunos5 I tried to re-import the renamed export file to the same server, so it?s the same version. I?m not aware of any 3rd-party components. The Products subtree in Control Panel does not show anything unusual. No idea, never seen that. -aj pgptKpS3TLkNn.pgp Description: PGP signature ___ 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] Export fails
Andreas Jung schrieb: > > > --On 7. August 2007 08:50:20 +0200 Christian Schaffer > <[EMAIL PROTECTED]> wrote: > >> Hello Andreas, >> hello list, >> Hello Andreas, hi list, unfortunately, the zexp-file does not contain any of the children objects. >>> How will you know that when your import fails? And export operation >>> always exports always the object including its whole subtree (if the >>> object is an folder). So basically I would not believe that what >>> you're saying. >> The object, I?d like to export is a folder. At least, it shows up with >> the corresponding icon. In the navigation frame on the left, the folder >> is visible with a "+" in front of the symbol. Clicking the "+" uncovers >> a list of sub-objects. >> Puzzling is that selecting the folder or one of the sub-objects by >> clicking it, the content is viewed at once, not the "manage_workspace" >> view. >> Re-importing the zexp-file leads to the following error: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'id' >>> You must provide the _full_ traceback. >> I hope this is the traceback you requested: >> -- >> 2007-08-07T08:40:13 ERROR Zope.SiteErrorLog >> http://genesis:9080/manage_importObject >> Traceback (innermost last): >> Module ZPublisher.Publish, line 115, in publish >> Module ZPublisher.mapply, line 88, in mapply >> Module ZPublisher.Publish, line 41, in call_object >> Module OFS.ObjectManager, line 586, in manage_importObject >> Module OFS.ObjectManager, line 605, in _importObjectFromFile >> Module OFS.CopySupport, line 476, in _verifyObjectPaste >> AttributeError: 'NoneType' object has no attribute 'id' > > Which Zope version are you running? > Which 3rd-party products are you runngin? > Are you sure that the source and destination system have *IDENTICAL* > software versions (same Zope, same Python, same 3rd-party products)? > > -aj The version information shows: Zope 2.9.4-final, python 2.4.3, sunos5 I tried to re-import the renamed export file to the same server, so it?s the same version. I?m not aware of any 3rd-party components. The Products subtree in Control Panel does not show anything unusual. Thanks, Chris ___ 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 )