Logo Search packages:      
Sourcecode: dblatex version File versions  Download package

def dbtexmf::dblatex::grubber::msg::Message::display (   self,
  kind,
  text,
  info 
)

Print an error or warning message. The argument 'kind' indicates the
kind of message, among "error", "warning", "abort", the argument
'text' is the main text of the message, the other arguments provide
additional information, including the location of the error.

Definition at line 51 of file msg.py.

00051                                           :
        """
        Print an error or warning message. The argument 'kind' indicates the
        kind of message, among "error", "warning", "abort", the argument
        'text' is the main text of the message, the other arguments provide
        additional information, including the location of the error.
        """
        if kind == "error":
            if text[0:13] == "LaTeX Error: ":
                text = text[13:]
            self(0, self.format_pos(info, text))
            if info.has_key("code") and info["code"] and not self.short:
                self(0, self.format_pos(info,
                    _("leading text: ") + info["code"]))

        elif kind == "abort":
            if self.short:
                msg = _("compilation aborted ") + info["why"]
            else:
                msg = _("compilation aborted: %s %s") % (text, info["why"])
            self(0, self.format_pos(info, msg))

        elif kind == "warning":
            self(0, self.format_pos(info, text))

    def error (self, text, **info):


Generated by  Doxygen 1.6.0   Back to index