Skip to content

Commit 42e6720

Browse files
authored
Merge pull request #1872 from gamboz/run-plone__minor-fixes
Run plone minor fixes
2 parents 2f19b44 + e6f95bd commit 42e6720

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/admin-guide/run-plone.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Buildout:
9292

9393
pip:
9494
: ```shell
95-
bin/zconsole debug instance/etc/zope.ini
95+
bin/zconsole debug instance/etc/zope.conf
9696
```
9797

9898
`cookiecutter-plone-starter`:
@@ -101,3 +101,15 @@ 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 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

Comments
 (0)