Re: [Zope] CGI
Thanks, Andy. Well, they are all written in C. Mostly by my collegues :p That's why I dont want to touch them in the mean time. --Nick - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Nicholas Lo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 08, 2000 1:04 AM Subject: Re: [Zope] CGI > Are these CGI programs written in perl? If so there is perl for Zope > available... > > -- > Andy McKay, Developer. > ActiveState. > > - Original Message - > From: "Nicholas Lo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 07, 2000 8:43 AM > Subject: [Zope] CGI > > > Hi, > > My problem here seems obvious, but I really dont know how to solve it. I > want to use some of my old CGI programs and I dont have much time to convert > them into Zope. Does anyone know how to pass a request to a CGI program and > get the results back in Zope? I know client.py may be useful, but it further > worsen the fork tax CGI would pay. > > Thanks > > -- Nick > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] CGI
Hi, My problem here seems obvious, but I really dont know how to solve it. I want to use some of my old CGI programs and I dont have much time to convert them into Zope. Does anyone know how to pass a request to a CGI program and get the results back in Zope? I know client.py may be useful, but it further worsen the fork tax CGI would pay. Thanks -- Nick
[Zope] FastCGI behind ZServer
I have read a lot about the Apache/Zope/FastCGI configuration in this list. However, I just wonder if anyone have tried having a FastCGI Server behind ZOPE behind Apache? My problem is I have a Apache/Zope site (using proxypass) running for quite some time. And I'm very happy with it. However, until recently, I want to integrate some of my old FastCGI programs into my site. Those FastCGI programs works fine with Apache using mod_fcgi 2.2.8. However, I'd like to make ZOPE act as the middleman so that I can further process the results return from the FastCGI program before publishing to the web. Also, to prevent people from accessing the FastCGI services directly by modifying URLs on their browsers. web -> httpd -> zope -> fastcgi Regards - Nick
[Zope] Testing FastCGI
Hi, I have set up my Apache and ZOPE according to How-To. It looks okay to me. However, how can I know if my setup is correct. Is there any test FastCGI application I can simply drop it in and test out my system? Thanks Nicholas Lo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] threading cont ...boundary="------------98A416F9F4157B1993D63C72"
Dieter Maurer wrote: > > Nicholas Lo writes: > > ... database modification seen inside but not outside of process ... > > Obviously, the database modifications have not been commited. > > Auto-Commit in Zope is coupled to *one* thread serving the > request: > > It works by registering with the "transaction" associated > with the current thread. At the end of a request > the transaction of the current thread is commited > (or aborted, if an error occured). > > If registration is done in a different thread, > the actions are not commited/aborted at the end > of the request. > > Why do you want to make your life more difficult by > splitting a Zope thread into several? > > Dieter oic ... so, is there anyway to make database routines run in separate threads? In fact, I'm trying to use ZOPE to do some automation, eg. reminder emails, news clipping, or maybe some WAP applications as well. I want to make it able to schedule itselfs so as to better utilise resources, make ZOPE more or less real-time, and to prevent overloading or spam from the content source. Well, since ZOPE runs from source, I think we may extend it to do some remote control works as well. eg. redirect your fax at home to your email account, allow you to listen to your home voice mails, etc. anyway, thanks Nicholas Lo ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] threading cont ...
First, thanks to Dieter :) Well, I have written a simple test products, which I have attached to this message as a .tgz file. This product does vert little things. When B1 is pressed, two new threads will start, one will update column of the database table, while the other will prompt the current time. When B2 is pressed, all threads will terminate. When B3 is pressed, it will show the database table. For this product, I used the SybaseDAv2 to connect to the local Sybase 11.9.2. The problem is, I can always see the results by pressing B3. However, when I looked into the database using isql, nothing has ever changed :( What's wrong? I really have no clue. Please kindly help. Regards, Nicholas Lo boring.tgz begin:vcard n:Lo;Nicholas tel;pager:+852 7475 5330 tel;cell:+852 9225 0555 tel;fax:+852 2610 2225 tel;work:+852 7111 9353 x-mozilla-html:FALSE url:http://www.siliconcreation.com org:Silicon Creation version:2.1 email;internet:[EMAIL PROTECTED] title:Technical Director adr;quoted-printable:;;18/F=0D=0ATower 2=0D=0AMetroPlaza;Kwai Fong;;;Hong Kong x-mozilla-cpt:;0 fn:Nicholas Lo end:vcard
[Zope] threading
Just a simple question. According to Amos' How-To: Thread Safety in Zope 2, what is mutable global or shared variables?? What is the scope of such global variables? Zope wide? module wide? If global variable is not permitted, how can I approach thread programming in Zope? Without global variables, how can I control threads? Please kindly help Regards, Nicholas Lo begin:vcard n:Lo;Nicholas tel;pager:+852 7475 5330 tel;cell:+852 9225 0555 tel;fax:+852 2610 2225 tel;work:+852 7111 9353 x-mozilla-html:FALSE url:http://www.siliconcreation.com org:Silicon Creation version:2.1 email;internet:[EMAIL PROTECTED] title:Technical Director adr;quoted-printable:;;18/F=0D=0ATower 2=0D=0AMetroPlaza;Kwai Fong;;;Hong Kong x-mozilla-cpt:;0 fn:Nicholas Lo end:vcard
[Zope] Sybase & Thread
Hi,I just wonder if anyone can help me with my problem. Recently, I've been working on creating a ZOPE product which requires periodic access to my Sybase. I have created a thread process using the Threading module. There is no problem of periodically wake up the thread and print something to the screen. So, I guess I have no problem with thread programming under ZOPE. However, when I add some database related routines to the thread, problems started to occur. I sometimes got '... not connected to the database'. When I did an SQL 'update', nothing has been updated on the database server when I actually looked into the database using isql. After a whole day of trial & error, now I've got 'ZOPE Memory Error'! I just wonder what has gone wrong. I really have no clue and my deadline is pressing :(1) I want to know what is the proper way of using thread under ZOPE.2) Is there any critical limitation of SybaseDAv2?3) Can SybaseDAv2 & Threading live together happily?4) What the role of ZODB in such situation?Thanks a million if anyone can help!Regards,Nick