This is far from rocket science but since I personally many times find it useful I thought I could share it with other Zope developers/users who find themselfs often editing the etc/zope.conf
file to change the debug-mode
key.
This script opens the zope.conf
file and changes it to say debug-mode off
if it said debug-mode on
before and changes it to debug-mode on
if it said debug-mode off
before.
Using it looks like this:
~$ cd zope
~/zope$ wget https://www.peterbe.com/plog/toggle-zopes-debug-mode/toggledebugmode.py
~/zope$ chmod +x toggledebugmode.py
~/zope$ ./toggledebugmode.py
debug-mode switched OFF
~/zope$ ./toggledebugmode.py
debug-mode switched ON
Comments