Re: [Zope] How can I import python script into another python script?

2006-08-31 Thread Gabriel Genellina
At Thursday 31/8/2006 18:11, Ferhat Ayaz wrote: I have a Script (Python) called 'functions'. I want to import this script into another Script (Python). import Include.Functions.requests says import of "Include.Functions.requests" is unauthorized You don't import it; you can reference it as

[Zope] How can I import python script into another python script?

2006-08-31 Thread Ferhat Ayaz
Hi, I have a Script (Python) called 'functions'. I want to import this script into another Script (Python). import Include.Functions.requests says import of "Include.Functions.requests" is unauthorized Where am I wrong? Thanks, Ferhat __ Do You

Re: [Zope] DTML -> ZPT

2006-08-31 Thread Tino Wildenhain
Antonio Beamud Montero wrote: > Is this the equivalence? > > > > 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] Change the encoding of a single ZPT page

2006-08-31 Thread Andreas Jung
--On 31. August 2006 19:28:54 +0200 Dieter Maurer <[EMAIL PROTECTED]> wrote: Luiz Fernando Bernardes Ribeiro wrote at 2006-8-30 14:08 -0300: 2006/8/29, Andreas Jung <[EMAIL PROTECTED]>: ... After trying a lot of things, I found the problem is really in the zpublisher realm, no matter what k

Re: [Zope] DTML -> ZPT

2006-08-31 Thread Andreas Jung
--On 31. August 2006 20:36:32 +0200 Antonio Beamud Montero <[EMAIL PROTECTED]> wrote: Is this the equivalence? No. -aj pgpXRn0rh7dcJ.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/z

[Zope] DTML -> ZPT

2006-08-31 Thread Antonio Beamud Montero
Is this the equivalence? 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] Change the encoding of a single ZPT page

2006-08-31 Thread Dieter Maurer
Luiz Fernando Bernardes Ribeiro wrote at 2006-8-30 14:08 -0300: >2006/8/29, Andreas Jung <[EMAIL PROTECTED]>: > ... >After trying a lot of things, I found the problem is really in the >zpublisher realm, no matter what kind of encoding trick I use, even with a >python script, the output is converted

Re: [Zope] accelerating Zope restart

2006-08-31 Thread Paul Winkler
On Thu, Aug 31, 2006 at 12:23:06PM +0100, Chris Withers wrote: > [EMAIL PROTECTED] wrote: > >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

[Zope] Re: accelerating Zope restart

2006-08-31 Thread Rocky Burt
On Thu, 2006-31-08 at 12:18 +0100, [EMAIL PROTECTED] wrote: > 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

[Zope] Re: accelerating Zope restart

2006-08-31 Thread Rocky Burt
On Thu, 2006-31-08 at 12:52 +0100, [EMAIL PROTECTED] wrote: > > > > 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 > > tim

[Zope] Accessing MsSQL from Zope blocks

2006-08-31 Thread robert rottermann
Hi there, this is not really an Zope Questions, I just hope somebody of you cold give me a hint. I already asked egenix (as we are using mxODBC) they could not think of a good reason. (but said to try a comercial odbc bridge). thanks for any pointers. robert using mxOdbc our database application

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.

Re: [Zope] accelerating Zope restart

2006-08-31 Thread Jonathan
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, August 31, 2006 7:18 AM Subject: [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 an

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. >

Re: [Zope] accelerating Zope restart

2006-08-31 Thread Chris Withers
[EMAIL PROTECTED] wrote: 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 pos

Re: [Zope] accelerating Zope restart

2006-08-31 Thread Andreas Jung
--On 31. August 2006 12:18:24 +0100 [EMAIL PROTECTED] wrote: 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 ? H

[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 lot

Re: [Zope] Re: Packing Data.fs

2006-08-31 Thread Chris Withers
Jens Vagelpohl wrote: It's also f'ing slow and doesn't scale ;-) Translation: In our experience, large databases with a lot of objects can lead to very slow operations, such as packing and backing up the data. This might be improved by using a file system designed for many small files, but

[Zope] LocalFS cut and paste across LocalFS instaces

2006-08-31 Thread Dennis Allison
I have a zope system (Zope 2.9.2) that needs to be able to cut and paste between different instances of LocalFS. Specifically, I have two LocalFS instances, LFS1 and LFS2. The two local files systems are disjoint and image different parts of the local file directory tree. What I need to be able