|
Line 5: You declare all incoming requests on port 80 as virtual hosting sites.
|
|
|
行5:声明所有在80端口上进入的请求作为虚拟主机的站点。 |
|
Line 6-14: This is the actual recursive method that searches for all the pending messages.
|
|
|
第6-14行:这其实是递归方法用以搜索所有待审消息。 |
|
Line 7 specifies the DN suffix for queries to pass to this database.
|
|
|
第7行为通往该数据库的查询指定DN后缀。 |
|
Line 7-10: In doc tests it helps very much if you emphasize how you setup your test case.
|
|
|
第7–10行:在文档测试中,强调如何设定你的测试事例是非常有帮助的。 |
|
Line 7-12: Iterate over all message entries and create links to each pending message, displaying its title.
|
|
|
第7-12行:遍历所有消息条目并为每个待审消息创建链接和显示标题。 |
|
Line 8-10: This is some backward compatibility for the messages that were created before we added the workflow feature.
|
|
|
第8-10行:这里为在我们添加工作流功能之前被创建的消息提供向后兼容性。 |
|
Line 8: However, the TextTest base comes with some rules we have to abide to. Specifying this _Field_Factory attribute is required, so that the correct field is tested.
|
|
|
第8行:然而,`TextTest`要求我们必须遵守一些规则,它要求我们必须指定_Field_Factory属性,以致于正确的域能被测试。 |
|
Line 8: This will be the resulting flat list of pending messages.
|
|
|
第6-14行:这其实是递归方法用以搜索所有待审消息。 |
|
Line 9 &12: We simply use the name of the submit button to decide which action the user ntended.
|
|
|
第9&12行:我们简单地使用提交按钮来确定用户想做的操作。 |
|
Line 9-13: Define the Container tests. We only have to provide an instance of the container we would like to be tested as the return value of the makeTestObject() method.
|
|
|
第四行:对于容器,有一些基本的测试,因此我们要把他们导入进来。免费的测试件总是好的。 |
|
Line 9: Make sure the Subscriptions view becomes a tab for the Message object.
|
|
|
第9行:确保订阅视图已经成为一个消息对象标签。 |