[Karrigell-main] Session and counter
Brought to you by:
quentel
From: Patrick I. <P-I...@po...> - 2003-10-22 19:57:45
|
I just try Karrigell (1.3b) for several of days and Python (2.3.2) for a several week, so I a sort of beginner. I wonder why my little script "session_test.py", which just try to count the number of calls, doesn't work. Thanks a lot in advance Patrick Installé Making program foolproof is very difficult because fool are so imaginative (anonymous) #------------------------------------------------------------- sessionObj=Session() print "<html><head></head><body>" print sessionObj.has_component("Compteur") if False == sessionObj.has_component("Compteur"): sessionObj.Compteur = 0 else: sessionObj.Compteur = sessionObj.Compteur + 1 print sessionObj.Compteur print "<form action=\"session_test.py\">" print "<input type=\"submit\" name=\"Test\" value=\"Test\">" print "</form>" print "</body></html>" #------------------------------------------------------------- |