[Zope] Reading and parsing a text file object

2006-07-19 Thread egf05
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

[Zope] Problem with Batch search

2006-08-18 Thread egf05
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,

Re: [Zope] Problem with Batch search

2006-08-18 Thread egf05
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

[Zope] accelerating Zope restart

2006-08-31 Thread egf05
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

Re: [Zope] accelerating Zope restart

2006-08-31 Thread egf05
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

Re: [Zope] accelerating Zope restart

2006-08-31 Thread egf05
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.