Skip to content

Commit 9f30320

Browse files

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/admin-guide/run-plone.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,11 @@ pip:
101101
```
102102

103103
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 do:
108+
: ```python
109+
from zope.globalrequest import setRequest
110+
setRequest(app.REQUEST)
111+
```

0 commit comments

Comments
 (0)