Kwissle

My real-time quiz battle game Kwissle.com

Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Photos

Photoalbum, both old and new.

Twitter

Follow me on Twitter

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 
Zope

Toggle Zope's debug mode

http://www.peterbe.com/plog/toggle-z...ebug-mode/toggledebugmode.py

1st of October 2005

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 http://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



Comment

 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.