Re: [Zope-dev] Maybe Corrupted ZCatalog but ...
Eric Brun wrote: An idea for fix it ? Have you tried updating the catalog from it's advanced tab? Not sure how that'd pan out on 200,000 objects though... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - [EMAIL PROTECTED] 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: Re: [Zope-dev] Maybe Corrupted ZCatalog but ...
Yes but impossible to update it because it is too big, and the transaction never finish or abort because of time out. I don't know how to do this. Have you a idea for help me ? Eric Brun wrote: An idea for fix it ? Have you tried updating the catalog from it's advanced tab? Not sure how that'd pan out on 200,000 objects though... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 ) Eric Brun Savoie Technologie Savoie Technolac Eric Brun Savoie Technologie Savoie Technolac ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Re: Maybe Corrupted ZCatalog but ...
Casey Duncan wrote: On Fri, 27 Feb 2004 16:47:19 +0100 Eric Brun [EMAIL PROTECTED] wrote: Yes but impossible to update it because it is too big, and the transaction never finish or abort because of time out. I don't know how to do this. Have you a idea for help me ? You might try using another browser (like mozilla) or updating the catalog from python. In theory though the browser timeout shouldn't cause the transaction to fail although I could be wrong about that. If you can quiesce other writes to the system, then a long-running recatalog request might have a chance to complete; it will typically lose repeatedly to ConflictErrors if shorter-lived writers are committing. Tres. -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation Zope Dealers http://www.zope.com ___ Zope-Dev maillist - [EMAIL PROTECTED] 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: Re: [Zope-dev] Maybe Corrupted ZCatalog but ...
In this way (with small chunks), can I do a get_transaction().commit(1) for commit each chunks or is it unnessecary ? Thank everybody for your help Write a script to do it in smaller chunks - 20 at a time or somethig. Keep track of those that succeed, so you can restart where you left off after failures. Log which objects fail, so you can go into the debugger and look at them to see what's fubar'd with them. Just an idea, but that's where I'd start. Andrew Eric Brun wrote: Yes but impossible to update it because it is too big, and the transaction never finish or abort because of time out. I don't know how to do this. Have you a idea for help me ? Eric Brun wrote: An idea for fix it ? Have you tried updating the catalog from it's advanced tab? Not sure how that'd pan out on 200,000 objects though... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 ) Eric Brun Savoie Technologie Savoie Technolac Eric Brun Savoie Technologie Savoie Technolac ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 ) Eric Brun Savoie Technologie Savoie Technolac ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] server for new protocol?
On Thursday 26 February 2004 06:50 am, Nikolay Kim wrote: is there any way create server for new protocol without changing ZServer module? There's clearly a need for some more documentation here, but I'm not sure what to write yet, or where it should go. Contrary to many of the other responses, yes, this shouldn't be difficult at all. You'll need a couple of pieces of Python code: 1. Your server implementation. It sounds like you have this already. 2. A factory object that can accept configuration data and create an instance of your server object. You then need to create a ZConfig component that provides a section type to support your server. The ZConfig documentation discusses this somewhat. The new section type will need to declare that it implements the ZServer.server abstract type; it should probably look something like this: component import package=ZServer/ sectiontype name=myserver implements=ZServer.server datatype=mypackage.server.ServerFactory !-- configuration data should be described here -- /sectiontype /component You'll need to arrange for the package containing this component is available on the Python sys.path before zope.conf is loaded; this is mostly easily done by manipulating the PYTHONPATH environment variable. Your zope.conf file can now include the following to load and use your new server: %import mypackage myserver # configuration settings go here /myserver Feel free to ask questions about this; I'm usually more available to respond than I have been a couple of days. -Fred -- Fred L. Drake, Jr. fred at zope.com PythonLabs at Zope Corporation ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )