@@ -47,7 +47,7 @@ An unprotected form can be accessed with anonymously:
4747
4848We don't have access, we will not be able to get to the protected add form:
4949
50- >>> browser.open("http://localhost/test_folder_1_/ftf/+/protectedaddform.html")
50+ >>> browser.open("http://localhost/test_folder_1_/ftf/+/protectedaddform.html")
5151 >>> print(browser.headers)
5252 Status: 401 ...
5353 ...
@@ -83,7 +83,7 @@ specified attribute is the default value:
8383 >>> edittest = self.folder.ftf.edittest
8484 >>> str(edittest.title)
8585 'title'
86- >>> edittest.description #XXX shouldn't we get a u '' here???
86+ >>> edittest.description #XXX shouldn't we get a '' here???
8787
8888We can also verify that the IObjectCreatedEvent was fired, and the test
8989subscriber we registered set a flag indicating such:
@@ -124,7 +124,7 @@ We will see that nothing has changed:
124124
125125 >>> str(edittest.title)
126126 'title'
127- >>> edittest.description #XXX shouldn't we get a u '' here???
127+ >>> edittest.description #XXX shouldn't we get a '' here???
128128 >>> getattr(edittest, '_modified_flag', False)
129129 False
130130
@@ -198,12 +198,12 @@ the content, this means that no IObjectModified event should have been fired
198198Unicode-safety of forms
199199-----------------------
200200
201- Automatically generated forms support unicode ( native strings
202- under Python 3 ). Here we will enter the following two
203- chinese sequences (How do you do? and I'm doing good) in forms:
201+ Automatically generated forms support native strings (formerly known as
202+ ``unicode`` ). Here we will enter the following two chinese sequences ("How do
203+ you do?" and " I'm doing good." ) in forms:
204204
205- >>> ni_hao = u '\u4f60\u597d'
206- >>> wo_hen_hao = u '\u6211\u5f88\u597d'
205+ >>> ni_hao = '\u4f60\u597d'
206+ >>> wo_hen_hao = '\u6211\u5f88\u597d'
207207
208208First, it's imaginable that we make a mistake and enter one of the
209209phrases in the integer field:
@@ -316,7 +316,7 @@ element to the list:
316316
317317Now, let's enter some more Chinese:
318318
319- >>> de_guo = u '\u5fb7\u56fd'
319+ >>> de_guo = '\u5fb7\u56fd'
320320
321321 >>> print(http_request(
322322 ... "/test_folder_1_/ftf/unicodetest/@@edit.html", (
0 commit comments