[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] navidoc ./config.py ./rst2any.py navidoc/utils/...
From: |
Asko Soukka |
Subject: |
[Gzz-commits] navidoc ./config.py ./rst2any.py navidoc/utils/... |
Date: |
Tue, 18 Mar 2003 09:40:59 -0500 |
CVSROOT: /cvsroot/navidoc
Module name: navidoc
Changes by: Asko Soukka <address@hidden> 03/03/18 09:40:59
Modified files:
. : config.py rst2any.py
navidoc/utils : debug.py
Log message:
Debug fix
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/navidoc/navidoc/config.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/navidoc/navidoc/rst2any.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/navidoc/navidoc/navidoc/utils/debug.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: navidoc/config.py
diff -u navidoc/config.py:1.1 navidoc/config.py:1.2
--- navidoc/config.py:1.1 Tue Mar 18 09:32:53 2003
+++ navidoc/config.py Tue Mar 18 09:40:59 2003
@@ -26,8 +26,6 @@
from navidoc.utils.debug import DebugFilter
# general debug filter
-# example of use:
-# ``dbg = lambda dbg_string: config.dbg.out("general", dbg_string)``
dbg = DebugFilter()
# set the default docutils.conf
@@ -35,13 +33,13 @@
docutils = "./docutils.conf"
else: docutils = ""
-#global settings needed all around
+# global settings needed all around
globals = {'working_directory': './',
'input_filename': './',
'output_filename': './',
}
-#pegs will be sorted after their priority
+# pegs will be sorted after their priority
pegboard_priorities = {'Current': 1,
'Revising': 2,
'Incomplete': 3,
@@ -52,7 +50,7 @@
'Irrelevant': 8,
}
-#Authors and stakeholders to replace with nicknames
+# authors and stakeholders to replace with nicknames
pegboard_authors = {'Tuomas Lukka': 'tjl',
'Tuomas J. Lukka': 'tjl',
'Benja Fallenstein': 'benja',
@@ -70,5 +68,5 @@
'Vesa Kaihlavirta': 'vegai',
}
-#status for pegs without rst or with failing rst
+# status for pegs without rst or with failing rst
pegboard_undefined = 'Undefined'
Index: navidoc/navidoc/utils/debug.py
diff -u navidoc/navidoc/utils/debug.py:1.1 navidoc/navidoc/utils/debug.py:1.2
--- navidoc/navidoc/utils/debug.py:1.1 Tue Mar 18 09:32:53 2003
+++ navidoc/navidoc/utils/debug.py Tue Mar 18 09:40:59 2003
@@ -42,4 +42,5 @@
if self.output_enabled.has_key(dbg_name):
print "[", dbg_name, "] :", dbg_str
-
+ def shorthand(self, dbg_name):
+ return lambda dbg_string: self.out(dbg_name, dbg_string)
Index: navidoc/rst2any.py
diff -u navidoc/rst2any.py:1.1 navidoc/rst2any.py:1.2
--- navidoc/rst2any.py:1.1 Tue Mar 18 09:32:53 2003
+++ navidoc/rst2any.py Tue Mar 18 09:40:59 2003
@@ -39,7 +39,7 @@
The main frontend for running Navidoc.
"""
-dbg = lambda dbg_string: config.dbg.out("main", dbg_string)
+dbg = config.dbg.shorthand("main")
# XXX: figure out, why docutils want locals to be cleaned
import locale
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] navidoc ./config.py ./rst2any.py navidoc/utils/...,
Asko Soukka <=