Re: [Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Chris Withers
Christian Theune wrote: b) it's more convenient for developers Why? Early open port means: zopectl restart and reload in your browser immediately without getting Connection refused. Dieter already mentioned this use case I don't really buy that, but since it's configurable, it doesn't

Re: [Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Chris Withers
Andreas Jung wrote: The usecase is pretty simple: you have a loadbalancer and remove one backend Zope. The LB detects the removal and stops forwarding request. When the client comes back (means Zope opens the ports early) the LB will start forwarding to the client although it might take a

[Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 29. August 2006 18:37:45 +0100 Chris Withers [EMAIL PROTECTED] wrote: Tres Seaver wrote: Unlike you, I prefer when the browser waits until Zope has come up over me having to reload manually until it finally is

Re: [Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Andrew Langmead
On Aug 31, 2006, at 9:41 AM, Tres Seaver wrote: The other reason for wanting early binding to the ports is if the ports are in the reserved for root range ( 1024); in that case, the ports *must* be bound early, before dropping privileges to those of the effective user. Not necessarily.

Re: [Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Chris Withers
Tres Seaver wrote: The other reason for wanting early binding to the ports is if the ports are in the reserved for root range ( 1024); in that case, the ports *must* be bound early, before dropping privileges to those of the effective user. Ah, that's true enough, but then again, anyone

Re: [Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Dieter Maurer
Chris Withers wrote at 2006-8-31 08:15 +0100: ... Er yes, I know why this is a very good thing. I was commenting that I can't see why anyone would want anything else ;-) You did not read the thread carefully: I explained why I prefer early port binding... -- Dieter

[Zope-dev] Adding INSTANCE/lib/python to PYTHONPATH

2006-08-31 Thread Sidnei da Silva
Looks like INSTANCE_HOME/lib/python is added to PYTHONPATH at some point during startup, but not on the zopectl/runzope scripts. I've tried installing eggs into INSTANCE_HOME/lib/python and they won't load unless it's added to PYTHONPATH at startup time. Thus, I propose to add

Re: [Zope-dev] Adding INSTANCE/lib/python to PYTHONPATH

2006-08-31 Thread Chris McDonough
+1 On Aug 31, 2006, at 4:46 PM, Sidnei da Silva wrote: Looks like INSTANCE_HOME/lib/python is added to PYTHONPATH at some point during startup, but not on the zopectl/runzope scripts. I've tried installing eggs into INSTANCE_HOME/lib/python and they won't load unless it's added to PYTHONPATH

[Zope-dev] Re: Adding INSTANCE/lib/python to PYTHONPATH

2006-08-31 Thread whit
Sidnei da Silva wrote: Looks like INSTANCE_HOME/lib/python is added to PYTHONPATH at some point during startup, but not on the zopectl/runzope scripts. I've tried installing eggs into INSTANCE_HOME/lib/python and they won't load unless it's added to PYTHONPATH at startup time. Thus, I propose

[Zope-dev] Re: Timing the opening of network ports

2006-08-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Langmead wrote: On Aug 31, 2006, at 9:41 AM, Tres Seaver wrote: The other reason for wanting early binding to the ports is if the ports are in the reserved for root range ( 1024); in that case, the ports *must* be bound early, before

[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

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] 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 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 ?

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

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 Jonathan
- Original Message - From: [EMAIL PROTECTED] To: zope@zope.org 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

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.

[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

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

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

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

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 to

[Zope] DTML - ZPT

2006-08-31 Thread Antonio Beamud Montero
Is this the equivalence? dtml-var day fmt=%02i td tal:replace=python:'%02i'%item['day'] or exists other way? Greetings. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

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? dtml-var day fmt=%02i td tal:replace=python:'%02i'%item['day'] or exists other way? No. -aj pgpXRn0rh7dcJ.pgp Description: PGP signature

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 kind

Re: [Zope] DTML - ZPT

2006-08-31 Thread Tino Wildenhain
Antonio Beamud Montero wrote: Is this the equivalence? dtml-var day fmt=%02i td tal:replace=python:'%02i'%item['day'] or exists other way? Yes, you format your output in a (possibly locales dependant) intermediate layer between your application and your template. In the easiest

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