27 |
|
|
28 |
__docformat__ = 'reStructuredText' |
__docformat__ = 'reStructuredText' |
29 |
|
|
30 |
|
""" |
31 |
|
Navidoc debug. |
32 |
|
""" |
33 |
|
|
34 |
class DebugFilter: |
class DebugFilter: |
35 |
""" |
""" |
36 |
Navidoc debug stream handler class. |
Navidoc debug stream handler class. |
50 |
""" |
""" |
51 |
enable(self, dbg_name) |
enable(self, dbg_name) |
52 |
|
|
53 |
Enables output of a named debug stream. |
Enable output of a named debug stream. |
54 |
""" |
""" |
55 |
self.output_enabled[dbg_name] = 1 |
self.output_enabled[dbg_name] = 1 |
56 |
|
|
58 |
""" |
""" |
59 |
mute(self, dbg_name) |
mute(self, dbg_name) |
60 |
|
|
61 |
Mutes output of a named debug stream. |
Mute output of a named debug stream. |
62 |
""" |
""" |
63 |
self.output_enabled[dbg_name] = 0 |
self.output_enabled[dbg_name] = 0 |
64 |
|
|
67 |
out(self, dbg_name, dbg_str) |
out(self, dbg_name, dbg_str) |
68 |
|
|
69 |
Print string to a named debug stream. |
Print string to a named debug stream. |
70 |
If the debug stream is muted, adds string into |
If the debug stream is muted, add string into |
71 |
its buffer. |
its buffer. |
72 |
""" |
""" |
73 |
if self.output_enabled.has_key(dbg_name) \ |
if self.output_enabled.has_key(dbg_name) \ |