SQLSession help needed!
I did get my SQLSession installed. Thank you Harry. However, I am having trouble getting the SESSION.set(...) to work. Here is the code I am using. <html> ZipCode = <dtml-var ZipCode> Distance = <dtml-var Distance> <dtml-var "SESSION.set('myZipCode', ZipCode)"> <dtml-var "SESSION.set('myDistance', Distance)"> <frameset cols="30%,70%"> <frame src="<dtml-var Root>/Menu" name="Menu"> <frame src="<dtml-var Root>/Main" name="Main"> </frameset> </html> Here is the error I am getting: ! Temporarily Unavailable The resource you requested is temporarily unavailable - please try again later. (116) unable to connect, fd=5 If I <dtml-comment> out the SESSSION.sets on down. I do see the values of Zipcode and Distance working correctly. I am connecting to a Postgresql database. Zope/Apache/Postgresql are all running on my Linux box. I have created the Sessions and Session_data tables as prescribed. I have included a <dtml-call Session> in my standard_header_html file. Just to see if the code was working at all, I modified the SQLSession.py:__init__ routine to put the sessionName into the Session_data table. I can see this information just fine using a <dtml-var "REQUEST['SESSION']"> command. This shows one key called session (this is the name I gave it in __init__) and the value of sessionName (the value I assigned). This is the type of error I have received plenty of times when the SQL statement was incorrect somehow. Just how do you debug this error? I looked at standard_error_html and I do not see this error text. How do you find out which object /line is causing the problem? Thank you for the help. Clayton.
How are you launching Zope? I ran into a similar error this past week, and it nearly drove me nuts before I found a workaround. In my case, at least, it seemed due to Zope occasionally emitting warning messages. When I started it from an initscript (daemon ./start &> /dev/nul) Zope would go down *hard* every time it tried to emit a warning. If I started it from a shell with ./start, it worked flawlessly. root wrote:
Here is the error I am getting: !
Temporarily Unavailable
The resource you requested is temporarily unavailable - please try again later.
(116) unable to connect, fd=5
If I <dtml-comment> out the SESSSION.sets on down. I do see the values of Zipcode and Distance working correctly.
I am connecting to a Postgresql database. Zope/Apache/Postgresql are all
Cheers, Evan @ 4-am
On Sat, Nov 20, 1999, root wrote:
I did get my SQLSession installed. Thank you Harry. However, I am having trouble getting the SESSION.set(...) to work. Here is the code I am using.
[...] <dtml-var "SESSION.set('myZipCode', ZipCode)"> <dtml-var "SESSION.set('myDistance', Distance)">
The README says <dtml-call ..> not <dtml-var ..>, isn't that your problem? -- Farzad FARID <farzy@via.ecp.fr> Ingénieur Informatique Libre Alcôve - http://www.alcove.fr/
participants (3)
-
Evan Simpson -
Farzad Farid -
root