[Checkins]
SVN: Sandbox/philikon/five.publication/trunk/five/publication/request.py
Move and document a property
Philipp von Weitershausen
philikon at philikon.de
Sun Aug 5 18:02:44 EDT 2007
Log message for revision 78609:
Move and document a property
Changed:
U Sandbox/philikon/five.publication/trunk/five/publication/request.py
-=-
Modified: Sandbox/philikon/five.publication/trunk/five/publication/request.py
===================================================================
--- Sandbox/philikon/five.publication/trunk/five/publication/request.py 2007-08-05 21:57:46 UTC (rev 78608)
+++ Sandbox/philikon/five.publication/trunk/five/publication/request.py 2007-08-05 22:02:43 UTC (rev 78609)
@@ -75,6 +75,13 @@
keys.update(['URL', 'RESPONSE'])
return list(keys)
+ # In zope.publisher's BrowserRequest, request.URL is a special
+ # accessor. We need it to be a string, though (equivalent to
+ # request['URL']).
+ @property
+ def URL(self):
+ return self.getURL()
+
# BBB discouraged methods:
def __setitem__(self, key, value):
@@ -88,10 +95,6 @@
raise AttributeError(key)
return value
- @property
- def URL(self):
- return self.getURL()
-
class BrowserResponse(zope.publisher.browser.BrowserResponse):
@property
More information about the Checkins
mailing list