[Zope] SQLSession and Memory leak

2000-05-26 Thread Hung Jung Lu
Hi, This is just for people's information on my own experience in Zope memory leak. It may not reflect your personal case. But if it does, please post a note to the mailing list. When there is a problem, people have to face it. I really dislike the attitude of people who just shrug their

Re: [Zope] Building ZPyGreSQLDA on Linux

2000-05-27 Thread Hung Jung Lu
ted the author of ZPyGreSQLDA but so far no response... Hung Jung From: "Hung Jung Lu" [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope] Building ZPyGreSQLDA on Linux Date: Fri, 26 May 2000 22:38:41 PDT From: "Cary O

[Zope] Re: [Fwd: Returned mail: Service unavailable]

2000-05-31 Thread Hung Jung Lu
From: Daryl Tester [EMAIL PROTECTED] ... ./configure --prefix=/usr/foo --exec-prefix=/usr/foo make make test make install ... (or, as Aristotle said, "deprecated, my arse"). Tough! :) Best quote in years. Yes, I did not run "make install" in Python, culpa mia. I still haven't been able to

[Zope] HappySession 0.1.0 released!

2000-06-04 Thread Hung Jung Lu
Hi, I have been using RAM-based session management for a while, but never wrote a product for it. Since Graham Chiu has mentioned it again about making a real product, I have taken the time to make one, and called it HappySession. :) Well, in short, it uses cookie for session id, you specify

[Zope] Re: detail record editing

2000-06-05 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Robert Del Huerto [EMAIL PROTECTED] wrote: I can get Zope to generate a table and form like this from an SQL database. I'm stuck after that. The form only has one 'action' so how would I get it to handle the right function depending on the button that was pushed? The

[Zope] www.zope.org cataloging server problem?

2000-06-07 Thread Hung Jung Lu
I have been trying to catalog a "News Item" and a "Product Release" inside www.zope.org, but I get the error === System Unavailable This site is currently experiencing technical difficulties. Please contact the site administrator for more

[Zope] Re: SQLSession and lexical token problems

2000-06-08 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Jason Lee [EMAIL PROTECTED] wrote: I'm trying to use SQLSession, and not having much luck. The other two choices are FSSession and HappySession. FSSession is File-System-based. HappySession is RAM-based. HappySession is very easy to install and use. You don't need to

[Zope] Re: FSSession newbie problem

2000-06-08 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Marcello Lupo [EMAIL PROTECTED] wrote: and macically i obtain the same error. this is the code i used: dtml-call FSSession dtml-unless "FSSession.has_key('cart')" dtml-call "FSSession.set('cart',{})" /dtml-unless dtml-call "FSSession['carrello'].update(REQUEST.form)" I

Re: [Zope] Re: FSSession newbie problem

2000-06-09 Thread Hung Jung Lu
From: Pavlos Christoforou [EMAIL PROTECTED] On Fri, 9 Jun 2000, Marcello Lupo wrote: 1) Is necessary to call FSSession in every document of the site Yes it is neccessary beacuse HTTP is stateless. It will only start a new session if FSSession cannot find a valid UID either through a cookie or

[Zope] Re: user contributions to Zope.org (Mangled text)

2000-06-09 Thread Hung Jung Lu
Not to be picky, Ken, but since you are from Digicool... could you take a look at your own message at: http://www.egroups.com/message/zope/33350?start=33322 (I checked both IE and Netscape, from PC.) Lately there have been quite a few mangled messages at egroups. Could you find out what went

Re: [Zope] Re: FSSession newbie problem

2000-06-12 Thread Hung Jung Lu
From: Marcello Lupo [EMAIL PROTECTED] Have some ideas to let the browser pass the cookie in a right way? I think we can work on the PATH but i don't know how. Okie, you have a cookie problem. You should definitely solve your cookie problem, if you can. But you can also use cookie-less sessions

[Zope] Re: user contributions to Zope.org (Mangled text)

2000-06-13 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Stephen Harrison [EMAIL PROTECTED] wrote: Joe Hewitt wrote: http://marc.theaimsgroup.com/ ... http://zope.nipltd.com/public/lists.html Very cool. Would it be possible for NIP to include a reply feature like in Egroups? I tell you how I operate with the

[Zope] Difference between dtml-myvar; and dtml-var myvar

2000-06-15 Thread Hung Jung Lu
This has been something that I've never been very careful about. Until I got bitten in generating a JavaScript. What is the difference between dtml-var myvar and dtml-myvar; ? I have noticed some differences before, but I don't remember the details, now. I guess one of them mangles

[Zope] Re: get fssession value

2000-06-16 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], "Richard Bartels" [EMAIL PROTECTED] wrote: dtml-call "FSSession['username'].update(REQUEST.form)" ... I get {'username':'something'} Try: dtml-call "FSSession.update(REQUEST.form)" regards, Hung Jung

[Zope] Re: From where does nothing spring from?

2000-06-17 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Graham Chiu [EMAIL PROTECTED] wrote: dtml-var "REQUEST.set('error',f_Email.isNotEmail(f_Email,_))" This mistake happens all the time. :) Instead of "var", use "call". dtml-call "REQUEST.set('error',f_Email.isNotEmail(f_Email,_))" dtml-var "REQUEST.error" (I think

[Zope] Re: programatically generating images

2000-06-17 Thread Hung Jung Lu
Grüß Dich, There are many freeware utilities out there for generating images on-the-fly. I don't know about Zope products, but I guess it's better for you anyway to handle the details by hand. Check out these links. (I saved them recently from the Python list... haven't tried them myself,

[Zope] Re: brain hurts regarding dynamic fcn args in Python

2000-06-19 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], [EMAIL PROTECTED] ("Jeff Sasmor") wrote: dtml-in "Catalog.searchResults(meta_type='EventDoc',event_date=[first,last],event_date_usage='range:min:max',sort_on='event_date ')" Now if the 'moderated' property is active I want to add the keyword arg reviewed='on'

[Zope] SQL security at row level

2000-06-19 Thread Hung Jung Lu
Hi, This is a general question. One can protect the ZSQL methods by employing user folders. This offers table-level protection. But what about protecting database information at row level? (This can come from hackers tweaking form variables.) Currently I store some security information

[Zope] HappySession-0.1.1 available

2000-06-26 Thread Hung Jung Lu
This release fixes a problem with erasing cookie of expired sessions on the Linux platform. Thanks to Felipe Alvarez for pointing out the problem to me. HappySession is an easy-to-use RAM-based session management product. It can be found at:

[Zope] Re: HappySession-0.1.1 available

2000-06-26 Thread Hung Jung Lu
Sorry, the URL should be: http://www.zope.org/Members/hungjunglu/Products/HappySession Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope

RE: [Zope] Kid clicking and Zope thread deadlock

2000-06-30 Thread Hung Jung Lu
From: Brian Lloyd [EMAIL PROTECTED] The quick way to determine this: install a fresh Zope without SybaseDA installed and see if you can reproduce the kid-clicking behavior. Another thing potentially to look at: there is problem with Sybase connections that I have run into before where if you

[Zope] Multiple clicks: how to handle them?

2000-06-30 Thread Hung Jung Lu
Hi, This must be a well-known problem: you click multiple times on a form button, and multiple requests are send to the server. On many websites they ask you not to click on the "confirm purchase" button twice, because otherwise you'll be charged twice. Of course, browsers are to blame for

[Zope] When does Zope become single-threaded?

2000-07-01 Thread Hung Jung Lu
Hi, I seem to remember that in the old days, if one uses Zope with PCGI, it would only run single-threaded. Is the correct? Or is Zope now always multi-threaded? (I know one can control the number of threads via the -t option in the start script.) regards, Hung Jung

[Zope] ZPoPyDA installation: help needed

2000-08-08 Thread Hung Jung Lu
Hi, I have been trying to install ZPoPyDA (database adapter for PostGreSQL.) And I am kind of stuck. I was told to install the RedHat PostGreSQL development RPM first. But I can't even install this RPM. I must be missing something obvious. # rpm --install postgresql-devel-7.0.2-2.i386.rpm

Re: [Zope] ZPoPyDA installation: help needed

2000-08-09 Thread Hung Jung Lu
you stumbled across a tiny problem there :-) Danke. The problem does not seem so tiny, after all. :-) postgres SQL database server itself as well as you are not running a libc6 but mereley a libc5 system ? Correct. RedHat Linux 5.2. try this: rpm -qf /lib/libc.so* glibc-2.0.7-29 Old enough

[Zope] Changing a Z object's __class__ dynamically

2000-08-19 Thread Hung Jung Lu
Hi, One powerful feature of Python is the ease of reloading modules. This makes debugging extremely nice, since you can modify the code, reload the module, and all this while the main program is still running. Moreover, if a particular instance object has been created, you can actually edit

[Zope] _setBasesHoldOnToYourButts()

2000-08-20 Thread Hung Jung Lu
Hi, Can any hardcore Zope developer explain to me what this wonderful little method does? Please? Even if it is just pure voodoo. (I am looking for any voodoo magic that allows me to change a Z Object's ZClass dynamically. You heard me right: after an instance of Z Object is created, I want

Re: [Zope] FSSession problems...

2000-08-30 Thread Hung Jung Lu
Curtis, Could you describe how often does the problem happen? How many session users goes to the site? You mentioned about a month of public usage. During that month, did you have one single incident? How many sessions happened during that month? All key-based session management systems are

Re: [Zope] Apache: mod_perl, mod_rewrite, prefix

2000-08-30 Thread Hung Jung Lu
(1) I have mod_rewrite statically (2) I have mod_perl statically (3) prefix is /usr/mydir Okie, I figured it out. So I'll reply to myself. :) By the way, I am on Linux platform. So the appropriate commands are (1) Download latest apache and mod_perl. Unzip and untar them. (2) Place the

[Zope] Apache: mod_perl, mod_rewrite, prefix

2000-08-30 Thread Hung Jung Lu
Hi, Although this is more an Apache question, I would guess that a lot of Zope users have gone through exactly the same problem I am going through, so I might as well try it out here. As you can probably tell, I am trying to hook up Zope and Apache via PCGI. The thing is, I need also

[Zope] Success in installing ZPoPyDA (after 3 months...)

2000-08-31 Thread Hung Jung Lu
Good news. I finally succeeded in installing ZPoPyDA (PostgreSQL database adapter for Zope.) I think it was more than 3 months ago when I started to try to install ZPoPyDA. The process involved many tricky steps, the most tricky one was, uh, installing a whole new Linux operating system.

[Zope] Re: HappySession

2000-08-31 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Diego Rodrigo Neufert [EMAIL PROTECTED] wrote: I'm making a site with frames with session management. I'm using HappySession to do it... I need to call SESSION['something'] in various frames at the same time, but when a SESSION expire I got a Transaction Error that blow

[Zope] Re: HappySession

2000-08-31 Thread Hung Jung Lu
My conjecture now is that your error-handling HTML might be accessing attributes from Zope server. A more correct way of handling exceptions should have been using the dtml-try...dtml-except.../dtml-try block. But I kind of make a cheat sheet recipe recommendation, tweaking the

[Zope] Re: HappySession

2000-09-01 Thread Hung Jung Lu
From: Diego Rodrigo Neufert [EMAIL PROTECTED] ... too... well, in the standard html header I call call a method that do a call in all my sessions Okie, now I see why you get the Transaction error problem. After an exception is raised, Zope aborts the http request transaction, and any

Re: [Zope] Success in installing ZPoPyDA (after 3 months...)

2000-09-01 Thread Hung Jung Lu
From: "Bak @ kedai" [EMAIL PROTECTED] where did you find linux.h that's needed by PoPy? thtt stump me from continuing. Download postgresql-7.0.2 source (not the RedHat's RPM), unzip and untar it, and the file is located at: postgresql-7.0.2/src/include/port/linux.h What I did was: (1)

Re: [Zope] Lock and Transaction in Zope.

2000-09-08 Thread Hung Jung Lu
Hi Aitor, (I am posting to the Zope mailing list, too.) I have Zope in W2000 Zope 2.2.1 Internet Explorer 5.0 Ok. I just tried with Zope on Linux, after I tried with Zope on Windows 98. RedHat 6.2 Zope 2.1.6 Internet Explorer 5.0 Guess what? The thread did not hang. The long thread

Re: [Zope] Import from file via management-interface

2000-09-08 Thread Hung Jung Lu
I found it very disturbing having to get my .zexp exports into the subdirectory 'import' of the server and then using the management-interface to do the actual import. I found it inconvenient, too. (Not disturbing, though.) And I had to implement my own uploading scheme via web. But as anything

[Zope] ZGDChart/GDChart on Linux

2000-09-11 Thread Hung Jung Lu
Hmmm... I don't remember anymore how to build GDChart on Linux. To simplify the situation, let us say that we want to focus on GDChart alone, not ZGDChart. I downloaded from http://athani.pair.com/msteed/software/gdchart/index.html and did the "make -f makepy.linux" thing. But when I

[Zope] GDChart on Linux

2000-09-11 Thread Hung Jung Lu
PROTECTED] Date: Sat Aug 12, 2000 4:01am Subject: Re: GDChart Hung Jung Lu wrote: Hi, Does anyone have experience with GDChart (Python interface to GD)? http://www.fred.net/brv/chart/ I tried to install it on Linux, the make process seems fine, but I get the following error in Python: import

[Zope] Backslash as line continuation in C (Unix)

2000-09-12 Thread Hung Jung Lu
Hi, This is a Unix C question. But since I am doing something that ultimately results in a Zope product, I might as well ask the question here. :) I am trying to build a third-party utility in Linux. I ran into troubles in the compilation process because of the usage of backslash \ as line

Re: [Zope] checking Zope's version number

2000-09-13 Thread Hung Jung Lu
Use version_txt: from App.version_txt import version_txt version_string = version_txt() In CVS versions of Zope this will return '(unreleased version)' though. You could also test for the existence of registerHelp: if hasattr(context, 'registerHelp'): context.registerHelp()

Re: [Zope] Backslash as line continuation in C (Unix)

2000-09-13 Thread Hung Jung Lu
Or your source files get white space after the "\" only when transported to Linux; this may happen if under Linux the lines of your source files still end with CR-LF (carriage return, line feed) as they do in Windows, instead of only LF (the expected end of line character in Unix). Yeap yeap,

[Zope] Mutiple images don't always show up

2000-09-23 Thread Hung Jung Lu
Hi, I have observed that in some Zope installations (I am using Zope 2.1.6 through PCGI on Linux, my browser is Internet Explorer 5.5), if I have more than 4 or 5 images (currently I have one page with 12 GIF images), sometimes not all the pictures show up. If I reload the page, the problem

Re: [Zope] Mutiple images don't always show up

2000-09-23 Thread Hung Jung Lu
], "Hung Jung Lu" [EMAIL PROTECTED] wrote: Hi, I have observed that in some Zope installations (I am using Zope 2.1.6 through PCGI on Linux, my browser is Internet Explorer 5.5), if I have more than 4 or 5 images (currently I have one page with 12 GIF images), sometimes not all the pictur

[Zope] Java equivalent to WorldPilot?

2000-10-06 Thread Hung Jung Lu
Hi, Does anyone know any Java software (commercial or not) that is equivalent to WorldPilot? regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about

[Zope] HTTP user authentication in Python

2000-10-06 Thread Hung Jung Lu
Hi, Where can I find out more information on HTTP user authentication? I have seen the RFC before, but it's a bit too technical to follow. I think Python does not include the authentication/cookie handling part probably because out of concern about abuses. :) Does anyone know where I can

[Zope] Medusa Monitor

2000-10-10 Thread Hung Jung Lu
Hi, Zope comes with the Medusa monitor (port 8099 by default) which is kind of cute and allows one to get into the guts of Zope. But do people really use it? How do people use it? Is there any document describing the usages of this monitor? Are there some features of this monitor that makes

Re: [Zope] Medusa Monitor

2000-10-12 Thread Hung Jung Lu
Thanks for the follow-ups on Medusa Monitor. But as I can see (after using Zope for 1.5 years, now), few people actually use it. Unless one is really into the guts of Zope itself, the monitor is pretty useless for debugging. It of course could be made more useful, but one must implement some

Re: [Zope] Medusa Monitor

2000-10-12 Thread Hung Jung Lu
can just tap into the monitor console screen (even remotely). A good monitor should actually display hit information, memory usage, etc, and preferably with charts, all in real time. Too much to ask? I don't think so. :) Hung Jung From: Dieter Maurer [EMAIL PROTECTED] To: "Hung Jung Lu&qu

[Zope] Zope declining?

2000-11-11 Thread Hung Jung Lu
Hi, From the mailing list volume in the last 3 months, it is not hard to see that there is a steady decline. This compared to the trend of last two years (doubling volume every year), should probably raise a red flag. I know what many would say: there are now more experts than newbies as

RE: [Zope] Zope declining?

2000-11-13 Thread Hung Jung Lu
From: "Jason C. Leach" [EMAIL PROTECTED] 2. Many of the people are now way past the general skill level in this list and have lost interest. 3. Alt. sources of info like: irc.zope.net #Zope It's obvious when you see companies like www.cbsnewyork.com runing zope that it is gaining in market

[Zope] Python and EJB (J2EE)

2000-11-24 Thread Hung Jung Lu
Python and EJB (J2EE) = Searching through comp.lang.python newsgroup archive ([EMAIL PROTECTED]) and the [EMAIL PROTECTED] mailing list, I have not been able to find much about EJB (Enterprise Java Bean) and Python/Zope comparisons. (J2EE is Java Two Enterprise Edition,

Re: [Zope] Python and EJB (J2EE)

2000-11-25 Thread Hung Jung Lu
From: Ender [EMAIL PROTECTED] ... Thanks for the comments. I'll reply other points in a few more days. as for distributed technologies, while xml-rpc is useful and simple its not useful (IMO) for enterprise programming, its too basic. This maybe true. However, HTML is also basic and simple,

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Hung Jung Lu
1) EJB's are TRANSACTIONAL components (MTS components are also transactional) Thanks for your comments. Transaction certainly is one of the important features of EJB. But my personal opinion is that instance pooling (multi-threading) is even more important. If you have to implement a

Re: [Zope] IP address and US city name

2000-12-02 Thread Hung Jung Lu
From: Bill Anderson [EMAIL PROTECTED] Hung Jung Lu wrote: Hi, I know that IP addresses in the USA follow a strict pattern of geographical locations. (Most other countries don't do that.) Does anyone know where I can get a copy of the table of IP addresses vs. city names? Whomever

Re: [Zope] IP address and US city name

2000-12-02 Thread Hung Jung Lu
From: Michel Pelletier [EMAIL PROTECTED] Actually Hung, on this one he is right. I owned and operated an ... That said, there is a company that has intrusivly scanned the whole ... service is very expensive, not 100% accurate (because neworks move and It happens that I saw with my own eyes in a

[Zope] HTTP status code 302

2000-12-09 Thread Hung Jung Lu
I can view certain document on a Zope site over the web if I use a brower. But for fun I tried to download it by using Python's httplib, and for some Zope sitesgot a status code 302. This probably means I need to use another URL address. The web browser does this automatically so I don't

Re: [Zope] HTTP status code 302

2000-12-10 Thread Hung Jung Lu
From: "Steve Spicklemire" [EMAIL PROTECTED] Did you set a 'Host' header in your request? Is the request going straight to ZServer, or through Apache? (Also... do you have a SiteRoot?) These can all affect how the request is handled by the server... Ahh... that's it. Thank you very much!!

[Zope] Adding content type to internet explorer

2001-01-15 Thread Hung Jung Lu
Hi, Can someone tell me how to add content types (and the associated program) to internet explorer on Windows platform? Is it in the registry? thanks, Hung Jung _ Get your FREE download of MSN Explorer at http://explorer.msn.com

Re: [Zope-dev] Getting SessionUID from FSSession

2000-06-16 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], "Jeff Nielsen" [EMAIL PROTECTED] wrote: How can I gather the current SessionUID from FSSession? From the docs, I gather that dtml-var "FSSession['SessionUID']" should return the SessionUID, but it always returns "None". Can anyone clue me in? Try: dtml-var

Re: [Zope-dev] Using Java-Script with DTML

2000-06-29 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Thomas Weholt [EMAIL PROTECTED] wrote: script language="javascript1.2 function ShowStuff(params){ var text = "dtml-in expr="sqlMethod(some_id=params" !-- this does not work, of course. How I can I pass argument thru Javascript to the sqlMethod ?? ---

Re: [Zope-dev] ODBC Error

2000-09-14 Thread Hung Jung Lu
--- In [EMAIL PROTECTED], Julio Flores Schwarzbeck [EMAIL PROTECTED] wrote: The problem is that no matter what I do, with any valid sql statement like "select * from test1" gives me the following error: Error Type: ValueError Error Value: unpack sequence of wrong size (RoleMgr) Has anyone