1.1 --- a/examples/ModPython/AuthApp/AuthHandler.py Fri Jan 13 17:42:49 2006 +0000 1.2 +++ b/examples/ModPython/AuthApp/AuthHandler.py Fri Jan 13 19:42:36 2006 +0000 1.3 @@ -14,11 +14,9 @@ 1.4 authenticator = AuthAuthenticator() 1.5 1.6 def handler(req): 1.7 - global resource 1.8 return ModPython.respond(req, resource, handle_errors=0) 1.9 1.10 def authenhandler(req): 1.11 - global authenticator 1.12 return ModPython.authenticate(req, authenticator, handle_errors=0) 1.13 1.14 # vim: tabstop=4 expandtab shiftwidth=4
2.1 --- a/examples/ModPython/CalendarApp/CalendarHandler.py Fri Jan 13 17:42:49 2006 +0000 2.2 +++ b/examples/ModPython/CalendarApp/CalendarHandler.py Fri Jan 13 19:42:36 2006 +0000 2.3 @@ -15,7 +15,6 @@ 2.4 #resource = CalendarResource("iso-8859-1") 2.5 2.6 def handler(req): 2.7 - global resource 2.8 return ModPython.respond(req, resource, handle_errors=0) 2.9 2.10 # vim: tabstop=4 expandtab shiftwidth=4
3.1 --- a/examples/ModPython/CookiesApp/CookiesHandler.py Fri Jan 13 17:42:49 2006 +0000 3.2 +++ b/examples/ModPython/CookiesApp/CookiesHandler.py Fri Jan 13 19:42:36 2006 +0000 3.3 @@ -13,7 +13,6 @@ 3.4 resource = CookiesResource() 3.5 3.6 def handler(req): 3.7 - global resource 3.8 return ModPython.respond(req, resource, handle_errors=0) 3.9 3.10 # vim: tabstop=4 expandtab shiftwidth=4
4.1 --- a/examples/ModPython/FormApp/FormHandler.py Fri Jan 13 17:42:49 2006 +0000 4.2 +++ b/examples/ModPython/FormApp/FormHandler.py Fri Jan 13 19:42:36 2006 +0000 4.3 @@ -13,7 +13,6 @@ 4.4 resource = FormResource() 4.5 4.6 def handler(req): 4.7 - global resource 4.8 return ModPython.respond(req, resource, handle_errors=0) 4.9 4.10 # vim: tabstop=4 expandtab shiftwidth=4
5.1 --- a/examples/ModPython/LoginApp/LoginHandler.py Fri Jan 13 17:42:49 2006 +0000 5.2 +++ b/examples/ModPython/LoginApp/LoginHandler.py Fri Jan 13 19:42:36 2006 +0000 5.3 @@ -22,7 +22,6 @@ 5.4 ) 5.5 5.6 def handler(req): 5.7 - global resource 5.8 return ModPython.respond(req, resource, handle_errors=0) 5.9 5.10 # vim: tabstop=4 expandtab shiftwidth=4
6.1 --- a/examples/ModPython/SessionsApp/SessionsHandler.py Fri Jan 13 17:42:49 2006 +0000 6.2 +++ b/examples/ModPython/SessionsApp/SessionsHandler.py Fri Jan 13 19:42:36 2006 +0000 6.3 @@ -13,7 +13,6 @@ 6.4 resource = SessionsResource() 6.5 6.6 def handler(req): 6.7 - global resource 6.8 return ModPython.respond(req, resource, handle_errors=0) 6.9 6.10 # vim: tabstop=4 expandtab shiftwidth=4
7.1 --- a/examples/ModPython/SimpleApp/SimpleHandler.py Fri Jan 13 17:42:49 2006 +0000 7.2 +++ b/examples/ModPython/SimpleApp/SimpleHandler.py Fri Jan 13 19:42:36 2006 +0000 7.3 @@ -13,7 +13,6 @@ 7.4 resource = SimpleResource() 7.5 7.6 def handler(req): 7.7 - global resource 7.8 return ModPython.respond(req, resource, handle_errors=0) 7.9 7.10 # vim: tabstop=4 expandtab shiftwidth=4
8.1 --- a/examples/ModPython/SimpleWithLoginApp/SimpleWithLoginHandler.py Fri Jan 13 17:42:49 2006 +0000 8.2 +++ b/examples/ModPython/SimpleWithLoginApp/SimpleWithLoginHandler.py Fri Jan 13 19:42:36 2006 +0000 8.3 @@ -22,7 +22,6 @@ 8.4 ) 8.5 8.6 def handler(req): 8.7 - global resource 8.8 return ModPython.respond(req, resource, handle_errors=0) 8.9 8.10 # vim: tabstop=4 expandtab shiftwidth=4
9.1 --- a/examples/ModPython/VerySimpleApp/VerySimpleHandler.py Fri Jan 13 17:42:49 2006 +0000 9.2 +++ b/examples/ModPython/VerySimpleApp/VerySimpleHandler.py Fri Jan 13 19:42:36 2006 +0000 9.3 @@ -13,7 +13,6 @@ 9.4 resource = VerySimpleResource() 9.5 9.6 def handler(req): 9.7 - global resource 9.8 return ModPython.respond(req, resource, handle_errors=0) 9.9 9.10 # vim: tabstop=4 expandtab shiftwidth=4