We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f19b44 + e6f95bd commit 42e6720Copy full SHA for 42e6720
docs/admin-guide/run-plone.md
@@ -92,7 +92,7 @@ Buildout:
92
93
pip:
94
: ```shell
95
- bin/zconsole debug instance/etc/zope.ini
+ bin/zconsole debug instance/etc/zope.conf
96
```
97
98
`cookiecutter-plone-starter`:
@@ -101,3 +101,15 @@ pip:
101
102
103
For any of these commands, press {kbd}`ctrl-d` to stop the process.
104
+
105
+### Set a "fake" request
106
107
+To make sure that the request is fully set up for any code that uses `zope.globalrequest.getRequest`, you might need to use the following code.
108
109
+```python
110
+from Testing.makerequest import makerequest
111
+from zope.globalrequest import setRequest
112
113
+app = makerequest(app)
114
+setRequest(app.REQUEST)
115
+```
0 commit comments