Re: [Zope] accelerating Zope restart
> > Zope does maintain a Data.fs.index file. If it becomes corrupt e.g. through > an unclean shutdown then Zope will recreate it by scanning the whole > Data.fs file when starting Zope the next time. This will take some > timeso before rebooting you should shutdown down your Zope properly. > OK, I have two questions about shutting down zope: - To cleanly shut down zope daemon, is "zopectl stop" enough ? - If zope runs in the foreground, how to shut it down cleanly ? CTRL+C won't do it I guess ? Eric ___ 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] accelerating Zope restart
> Zope does maintain a Data.fs.index file. If it becomes corrupt e.g. through > an unclean shutdown then Zope will recreate it by scanning the whole > Data.fs file when starting Zope the next time. This will take some > timeso before rebooting you should shutdown down your Zope properly. > > -aj OK, thanks. Eric ___ 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] accelerating Zope restart
Hi, My Data.fs is huge (21GB) because it contains many video files. This is not a problem in itself, however, I recently had to reboot my machine and now zope takes around 20-30 minutes to restart. Is a fstest automatically done ? How could I accelerate the restarting, if possible ? Thanks a lot for any advice, Eric ___ 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] Problem with Batch search
Selon [EMAIL PROTECTED]: > Hi, > > I think I found a bug in the automatically generated Z Search Forms, as > described in the manual (16-4: Creating a search form for a ZCatalog). This > creates two files: SearchForm and SearchReport. SearchReport uses this > method: I answer to myself because I think I found the rpoblem. The problem is that when going to the next page, the query is not copied into the URL. I corrected this way: and: previous size results next 20 results Now it works. Eric ___ 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] Problem with Batch search
Hi, I think I found a bug in the automatically generated Z Search Forms, as described in the manual (16-4: Creating a search form for a ZCatalog). This creates two files: SearchForm and SearchReport. SearchReport uses this method: batch python:modules['ZTUtils'].Batch(results, size=20, start=start); and then displays only 20 object rids per page. If it finds for instance 31 object, It gives a link to the "Next 11 results". However, this is where it is broken. Clicking on the link leads to have ALL objects in the catalog being displayed. It now offers "Previous 20 results / Next 20 results" and you can display all objects. Is it a problem in Batch? or a bug in the SearchReport Page Template? Thank you, Eric PS: This are the generated SearchReport Template: previous 20 results next 20 results Data record id data_record_id_ goes here previous 20 results next 20 results ___ 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] uploading text file by FTP: encoding problem?
Selon Dieter Maurer <[EMAIL PROTECTED]>: > Eric Fernandez wrote at 2006-8-9 11:20 +0100: > >I have a problem when I upload an ASCII text file into a zope2 folder. I > >have a plain-text file with double quotes and line breaks. However, once > >uploaded, double quotes become " and line breaks become \n. Even if > >I change the property into text/plain or text/xml, I get the same problem. > > The default object type generated for "text/html", "text/xml" or > "text/plain" is a "DTMLDocument" (and not a "File" object as you might > except). > > The "__str__" method of "DTMLDocument" performs HTML escaping. > That's why '"' may appear as """. > > > You can install your own "PUT_factory" (search the mailing list archives > for details) to control the type of object created during various > types of uploads. > > > > -- > Dieter > Thanks a lot for the answer, that's exactly what I need. I found the topic in the Zope book, development version. Cheers, Eric ___ 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] Reading and parsing a text file object
Hi, I am new to Zope (but familiar with Python) and have a question. I have a text file in a folder and I would like to parse its content, and I wanted to put the text in a string variable. I understand I can access the content through file.data or better str(file.data). However, the string I obtain has no carriage returns anymore, they are replaced by a space. This is annoying because I cannot split the file line by line. Is there a "trick" I do not know? Or is there a better way to parse the content of a text file object? Any advice would be very appreciated. Thanks, Eric ___ 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 )