Re: [Zope] Get uploaded file size

2006-08-02 Thread AnThu Nguyen
Roberto, This is perfect - exactly what I needed! Thanks, AnThu Roberto Benitez wrote On 08/02/06 01:50 PM,: Try the following:   def PythonScript1(afile=None):     '''     read file info     afile is name of HTML INPUT TAG     HTML FORM AS FOLLOWS           

Re: [Zope] How can i improve performance of website under heavy load in Zope2.6.1

2006-08-02 Thread Dieter Maurer
Sudesh Soni wrote at 2006-7-31 12:43 +0530: >I wonder why Zope is default set for handling 4 threads and 7 database >connections. Because these values are in general not too bad. >I tried inreasing threads to 20 and database connections to 30 by updating >z2.py and DB.py, presuming that this wi

Re: [Zope] WebServices

2006-08-02 Thread Dieter Maurer
Alberto Jesus La Rosa Agramonte wrote at 2006-7-30 12:26 -0400: > ... >I have a question about how I can implement WebServices in Zope.. Have a look at "ZSI" and/or "soappy". They directly support SOAP (client) access from within your Zope applications to SOAP services. Making Zope a SOAP server

Re: [Zope] Can't nest dtml-in using prefix ...

2006-08-02 Thread Dieter Maurer
Jesper Steen Steffensen wrote at 2006-7-29 22:30 +0200: > ... >@ Dieter - thanks for clearing that up. Maybe [sequence]-var-[variable] or >rather "outer-var-role" will work then.. Will give it a try when I get back >to work. I am unaware that this will work -- though I may be wrong. Usually, you

Re: [Zope] defunct process with os.spawn*

2006-08-02 Thread Chris McDonough
You need to call os.waitpid() at some point to clean up finished processes. - C On Aug 2, 2006, at 1:59 PM, Jonathan wrote: - Original Message - From: "Alan" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 02, 2006 1:52 PM Subject: [Zope] defunct process with os.spawn* Dears, N

Re: [Zope] defunct process with os.spawn*

2006-08-02 Thread Jonathan
- Original Message - From: "Alan" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 02, 2006 1:52 PM Subject: [Zope] defunct process with os.spawn* Dears, Now I am facing an annoying problem. I have an application in Zope which calls a External Method, which calls a bash script via:

[Zope] defunct process with os.spawn*

2006-08-02 Thread Alan
Dears, Now I am facing an annoying problem. I have an application in Zope which calls a External Method, which calls a bash script via: var_pid = os.spawnlp(os.P_NOWAIT, 'script.sh', 'script.sh', arg1,arg2) The idea is to start some programs in background (which will take hours running) and I

Re: [Zope] Get uploaded file size

2006-08-02 Thread Andreas Jung
--On 2. August 2006 10:13:17 -0700 AnThu Nguyen <[EMAIL PROTECTED]> wrote: Hi, I'm trying to get the size of a file uploaded via an HTML form before it's written. "context.REQUEST.file" only accesses the file name, not the content. How do I read the contents? Any help will be much appreciat

[Zope] Get uploaded file size

2006-08-02 Thread AnThu Nguyen
Hi, I'm trying to get the size of a file uploaded via an HTML form before it's written. "context.REQUEST.file" only accesses the file name, not the content. How do I read the contents? Any help will be much appreciated. TIA, AnThu ___ Zope maillist

Re: [Zope] FW: TSU license exception

2006-08-02 Thread David H
Andreas Jung wrote: --On 2. August 2006 16:46:43 +0200 "Kowalski, Piotr" <[EMAIL PROTECTED]> wrote: Hi. Im looking for informations about TSU for Zope. Does somebody have a license exception "TSU" for Zope? TSU? -aj (TSU) Technology and software unrestricted This would ease us

RE: [Zope] FW: TSU license exception

2006-08-02 Thread Andreas Jung
--On 2. August 2006 16:46:43 +0200 "Kowalski, Piotr" <[EMAIL PROTECTED]> wrote: Hi. Im looking for informations about TSU for Zope. Does somebody have a license exception "TSU" for Zope? TSU? -aj (TSU) Technology and software unrestricted This would ease us to export our product

RE: [Zope] FW: TSU license exception

2006-08-02 Thread Kowalski, Piotr
>> Hi. >> Im looking for informations about TSU for Zope. Does somebody have a >> license exception "TSU" for Zope? >> > >TSU? > >-aj (TSU) Technology and software unrestricted This would ease us to export our product signifiicantly - otherwise we´re unable to deploy our stuff to a lot of co

Re: [Zope] FW: TSU license exception

2006-08-02 Thread Andreas Jung
--On 2. August 2006 13:39:41 +0200 "Kowalski, Piotr" <[EMAIL PROTECTED]> wrote: Hi. Im looking for informations about TSU for Zope. Does somebody have a license exception "TSU" for Zope? TSU? -aj ___ Zope maillist - Zope@zope.org http://ma

[Zope] FW: TSU license exception

2006-08-02 Thread Kowalski, Piotr
Hi.Im looking for informations about TSU for Zope.  Does somebody have  a license exception  "TSU" for Zope?   [EMAIL PROTECTED]   ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! *

Re: [Zope] adding product-based objects programmatically

2006-08-02 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2 Aug 2006, at 06:37, Kees de Brabander wrote: Hi, Apparently my knowledge of Zope/Python is still to limited. I have a product that derives from Folder. When I add this product to a folder via zmi I want to have it populated with other produ

[Zope] adding product-based objects programmatically

2006-08-02 Thread Kees de Brabander
Hi, Apparently my knowledge of Zope/Python is still to limited. I have a product that derives from Folder. When I add this product to a folder via zmi I want to have it populated with other products to it programmatically. I tried to do so in the __init__ function. That works with objects like acl_