/[navidoc]/navidoc/navidoc/__init__.py
ViewVC logotype

Diff of /navidoc/navidoc/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by humppake, Tue Apr 1 09:30:28 2003 UTC revision 1.12 by humppake, Mon Apr 7 15:58:00 2003 UTC
# Line 33  import docutils.core Line 33  import docutils.core
33    
34  # Because docutils' own relative path has problems with  # Because docutils' own relative path has problems with
35  # paths beginning with '../', we use our own :-)  # paths beginning with '../', we use our own :-)
36  import utils.path  import util.path
37  docutils.utils.relative_path = utils.path.relative_path  docutils.utils.relative_path = util.path.relative_path
38    
39    class DocutilsException(Exception):
40        def __init__(self, system_message):
41            self.value = system_message.astext()
42            Exception.__init__(self, self.value)
43        def __str__(self):
44            return self.value
45    
46  def docutils_system_message(self, level, message, *children, **kwargs):  def docutils_system_message(self, level, message, *children, **kwargs):
47      """      """
# Line 69  def docutils_system_message(self, level, Line 76  def docutils_system_message(self, level,
76         self.notify_observers(msg)         self.notify_observers(msg)
77      return msg      return msg
78  docutils.utils.Reporter.system_message = docutils_system_message  docutils.utils.Reporter.system_message = docutils_system_message
79    docutils.utils.SystemMessage = DocutilsException
80    
81  class Element:  class Element:
82      """      """

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26