Skip to content

Commit

Permalink
Merge pull request #1872 from gamboz/run-plone__minor-fixes
Browse files Browse the repository at this point in the history
Run plone  minor fixes
  • Loading branch information
davisagli authored Feb 24, 2025
2 parents 2f19b44 + e6f95bd commit 42e6720
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/admin-guide/run-plone.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Buildout:

pip:
: ```shell
bin/zconsole debug instance/etc/zope.ini
bin/zconsole debug instance/etc/zope.conf
```

`cookiecutter-plone-starter`:
Expand All @@ -101,3 +101,15 @@ pip:
```

For any of these commands, press {kbd}`ctrl-d` to stop the process.

### Set a "fake" request

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.

```python
from Testing.makerequest import makerequest
from zope.globalrequest import setRequest

app = makerequest(app)
setRequest(app.REQUEST)
```

0 comments on commit 42e6720

Please sign in to comment.