URL: https://www.peterbe.com/plog/toggle-zopes-debug-mode/toggledebugmode.py

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

Your email will never ever be published.

Previous:
Jed looking like Emacs September 28, 2005 Linux
Next:
Wanted: good Javascript for handling key events October 4, 2005 Web development
Related by category:
'Cache-Control' or Expires September 16, 2005 Zope
To all Zope developers: Does this sound familiar? March 8, 2011 Zope
IssueTrackerProduct now officially abandoned March 30, 2012 Zope
Sending HTML emails in Zope October 26, 2006 Zope