[z3-checkins] r5165 - z3/Five/trunk
guido at codespeak.net
guido at codespeak.net
Fri Jun 18 19:34:55 MEST 2004
Author: guido
Date: Fri Jun 18 19:34:44 2004
New Revision: 5165
Modified:
z3/Five/trunk/viewable.py
Log:
Fixed bug that appeared when a view wasn't defined, some code was commented out
in which a variable was defined that code later in the file tried to use.
Modified: z3/Five/trunk/viewable.py
==============================================================================
--- z3/Five/trunk/viewable.py (original)
+++ z3/Five/trunk/viewable.py Fri Jun 18 19:34:44 2004
@@ -32,13 +32,13 @@
except (AttributeError, KeyError):
pass
# XXX not sure this is very useful
- #method = REQUEST.get('REQUEST_METHOD', 'GET')
- #if not method in ('GET', 'POST'):
- # return NullResource(self, name, REQUEST).__of__(self)
+ method = REQUEST.get('REQUEST_METHOD', 'GET')
+ if not method in ('GET', 'POST'):
+ return NullResource(self, name, REQUEST).__of__(self)
# Waaa. See Application.py
try:
- REQUEST.RESPONSE.notFoundError("%sn%s" % (name, method))
+ REQUEST.RESPONSE.notFoundError("%s %s" % (name, method))
except AttributeError:
raise KeyError, name
except:
More information about the z3-checkins
mailing list