[Zope-Checkins] CVS: Zope2 - form.mpy:1.3 persistent.py:1.3 today.mpy:1.3

andreas@serenade.digicool.com andreas@serenade.digicool.com
Tue, 1 May 2001 07:45:57 -0400


Update of /cvs-repository/Zope2/ZServer/medusa/script_handler_demo
In directory serenade.digicool.com:/tmp/cvs-serv12359/script_handler_demo

Modified Files:
	form.mpy persistent.py today.mpy 
Log Message:
we *hate* tabs - lets get rid of them



--- Updated File form.mpy in package Zope2 --
--- form.mpy	2001/04/25 19:09:52	1.2
+++ form.mpy	2001/05/01 11:45:26	1.3
@@ -14,9 +14,9 @@
 </form></html>"""
 
 if data:
-	import cgi
-	info = '<h2>CGI variables:</h2>%s\r\n' % repr(cgi.parse_qs(data))
+    import cgi
+    info = '<h2>CGI variables:</h2>%s\r\n' % repr(cgi.parse_qs(data))
 else:
-	info = ''
-
+    info = ''
+    
 print form % info

--- Updated File persistent.py in package Zope2 --
--- persistent.py	2001/04/25 19:09:52	1.2
+++ persistent.py	2001/05/01 11:45:26	1.3
@@ -27,17 +27,17 @@
 import string
 
 def html_clean (s):
-	s = string.replace (s, '<', '&lt;')
-	s = string.replace (s, '>', '&gt;')
-	return s
-
+    s = string.replace (s, '<', '&lt;')
+    s = string.replace (s, '>', '&gt;')
+    return s
+    
 def main (request):
-	global count
-	count = count + 1
-	print '<html><h1>Hit Count=%d</h1>' % count
-	print '<h3>Request Attributes:</h3><ul>'
-	print '<li>command : %s'	% request.command
-	print '<li>uri: %s'			% html_clean (request.uri)
-	print '<li>channel: %s'		% html_clean (repr (request.channel))
-	print '</ul>'
-	print '</html>'
+    global count
+    count = count + 1
+    print '<html><h1>Hit Count=%d</h1>' % count
+    print '<h3>Request Attributes:</h3><ul>'
+    print '<li>command : %s'	% request.command
+    print '<li>uri: %s'			% html_clean (request.uri)
+    print '<li>channel: %s'		% html_clean (repr (request.channel))
+    print '</ul>'
+    print '</html>'

--- Updated File today.mpy in package Zope2 --
--- today.mpy	2001/04/25 19:09:52	1.2
+++ today.mpy	2001/05/01 11:45:26	1.3
@@ -4,20 +4,20 @@
 
 import time
 print "<p align=center>It is %s here at <b>nightmare.com</b></p>"% (
-	time.ctime (time.time())
-	)
+        time.ctime (time.time())
+        )
 
 import string
 
 def uptime ():
-	return string.atof (
-		string.split (
-			open ('/proc/uptime', 'r').readline()
-			)[0]
-		)
-
+    return string.atof (
+            string.split (
+                    open ('/proc/uptime', 'r').readline()
+                    )[0]
+            )
+    
 print "<p align=center>This machine has been up since: %s </p>" % (
-	time.ctime (time.time() - uptime())
-	)
+        time.ctime (time.time() - uptime())
+        )
 
 print '</html>'