summaryrefslogtreecommitdiff
path: root/portato/helper.py
diff options
context:
space:
mode:
authornecoro <>2007-04-20 14:44:45 +0000
committernecoro <>2007-04-20 14:44:45 +0000
commit7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe (patch)
treec14d3a2f65fe0ff5799ba1673a73dc7ff3799d44 /portato/helper.py
parent524f67fb5a96f0f50b595023f46895e741654b59 (diff)
downloadportato-7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe.tar.gz
portato-7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe.tar.bz2
portato-7a6f5b2c1d83fe62c62f0c30cad28eb091d52dfe.zip
Made qt plugin-ready; lots of documentation
Diffstat (limited to 'portato/helper.py')
-rw-r--r--portato/helper.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/helper.py b/portato/helper.py
index cef3537..537d631 100644
--- a/portato/helper.py
+++ b/portato/helper.py
@@ -13,7 +13,6 @@
import traceback, os.path, sys
from itertools import chain
-
DEBUG = True
def set_debug (d):
@@ -32,7 +31,13 @@ def debug(*args, **kwargs):
If debug(obj0, obj1, obj2) is called, the text part of the output
looks like the output from print obj0, obj1, obj2.
- If you pass the optional keyword-argument "name", it is used for the function-name instead of the original one."""
+ Keywords which can be used:
+ - name: Use the given name instead the correct function name.
+ - file: output file to use
+ - minus: The value given is the amount of frames to ignore in the stack to return the correct function call.
+ This should be used if you are wrapping the debug call.
+ - warn: Prints the message as a warning. Value of DEBUG is ignored.
+ - error: Prints the message as an error. Value of DEBUG is ignored."""
if not DEBUG and not ("warn" in kwargs or "error" in kwargs): return