[Checkins] SVN: grokcore.rest/trunk/src/grokcore/rest/ftests/rest/localgrants.py Request should not start with whitespace.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Fri Mar 4 18:03:11 EST 2011


Log message for revision 120750:
  Request should not start with whitespace.

Changed:
  U   grokcore.rest/trunk/src/grokcore/rest/ftests/rest/localgrants.py

-=-
Modified: grokcore.rest/trunk/src/grokcore/rest/ftests/rest/localgrants.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/ftests/rest/localgrants.py	2011-03-04 23:01:29 UTC (rev 120749)
+++ grokcore.rest/trunk/src/grokcore/rest/ftests/rest/localgrants.py	2011-03-04 23:03:10 UTC (rev 120750)
@@ -9,7 +9,7 @@
 For this model we have registered a REST GET view that's protected
 with a permission.  Therefore we can't access it as anonymous:
 
-  >>> print http_call('GET', '/++rest++mammoth/manfred') 
+  >>> print http_call('GET', '/++rest++mammoth/manfred')
   Traceback (most recent call last):
   ...
   Unauthorized: (<grokcore.rest.meta.MammothRest object at 0...>, '__call__', 'mammoth.Touch')
@@ -23,9 +23,7 @@
 
 With the grant in place we can access it as anonymous:
 
-  >>> print http(r'''
-  ... GET /++rest++mammoth/manfred HTTP/1.1
-  ... ''')
+  >>> print http('GET /++rest++mammoth/manfred HTTP/1.1')
   HTTP/1.0 200 Ok
   Content-Length: 7
   Content-Type: text/plain



More information about the checkins mailing list