1. Miki Tebeka
  2. pythonwise

Commits

Miki Tebeka  committed 02fb03c

rename for syntax highlighting

  • Participants
  • Parent commits 84376db
  • Branches default

Comments (0)

Files changed (2)

File websession/index.cgi

-#!/usr/bin/env python
-
-from websession import WebSession
-
-session = WebSession()
-
-key = "key"
-old = session.get(key, 0)
-new = old + 1
-session[key] = new
-
-print session.cookie
-print "Content-Type: text/html"
-print
-
-print "<html><body>"
-print "<pre>"
-print "session id: %s" % session.id
-print "old: %s" % old
-print "new: %s" % new
-print "</pre>"
-print "</body></html>"
-
-session.save()

File websession/index.py

View file
+#!/usr/bin/env python
+
+from websession import WebSession
+
+session = WebSession()
+
+key = "key"
+old = session.get(key, 0)
+new = old + 1
+session[key] = new
+
+print session.cookie
+print "Content-Type: text/html"
+print
+
+print "<html><body>"
+print "<pre>"
+print "session id: %s" % session.id
+print "old: %s" % old
+print "new: %s" % new
+print "</pre>"
+print "</body></html>"
+
+session.save()