From aaad46a5aa6f2894093935125a373ace6c22f425 Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Wed, 25 Sep 2013 09:34:12 +0200 Subject: [output] use more symbol instead of msgid: use them in message occurences report and revert order in message help --- utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils.py b/utils.py index 3dc8410..875ac10 100644 --- a/utils.py +++ b/utils.py @@ -162,9 +162,9 @@ class MessageDefinition(object): self.checker.name title = self.msg if self.symbol: - symbol_part = ' (%s)' % self.symbol + msgid = '%s (%s)' % (self.symbol, self.msgid) else: - symbol_part = '' + msgid = self.msgid if self.minversion or self.maxversion: restr = [] if self.minversion: @@ -179,8 +179,8 @@ class MessageDefinition(object): desc = normalize_text(' '.join(desc.split()), indent=' ') if title != '%s': title = title.splitlines()[0] - return ':%s%s: *%s*\n%s' % (self.msgid, symbol_part, title, desc) - return ':%s%s:\n%s' % (self.msgid, symbol_part, desc) + return ':%s: *%s*\n%s' % (msgid, title, desc) + return ':%s:\n%s' % (msgid, desc) class MessagesHandlerMixIn(object): @@ -402,9 +402,9 @@ class MessagesHandlerMixIn(object): self.stats[msg_cat] += 1 self.stats['by_module'][self.current_name][msg_cat] += 1 try: - self.stats['by_msg'][msgid] += 1 + self.stats['by_msg'][msg_info.symbol] += 1 except KeyError: - self.stats['by_msg'][msgid] = 1 + self.stats['by_msg'][msg_info.symbol] = 1 # expand message ? msg = msg_info.msg if args: -- cgit v1.2.1 From 2773ad46b079cea4aa4b9be461d09964d01c42ab Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Wed, 25 Sep 2013 09:35:13 +0200 Subject: [doc] update documentation outputs and options. Closes #66 --- doc/run.rst | 17 +++----- doc/tutorial.rst | 123 ++++++++++++++++++++++++------------------------------- 2 files changed, 59 insertions(+), 81 deletions(-) diff --git a/doc/run.rst b/doc/run.rst index 7360c3e..5a9085b 100644 --- a/doc/run.rst +++ b/doc/run.rst @@ -97,18 +97,13 @@ hand tune the configuration. Other useful global options include: ---zope Initialize Zope products before starting ---ignore=file Add (may be a directory) to the black - list. It should be a base name, not a path. - You may set this option multiple times. ---statistics=y_or_n Compute statistics on collected data. ---persistent=y_or_n Pickle collected data for later comparisons. ---comment=y_or_n Add a comment according to your evaluation note. ---parseable=y_or_n Use a parseable output format. ---html=y_or_n Use HTML as output format instead of text. +--ignore=file Add (may be a directory) to the black + list. It should be a base name, not a path. + You may set this option multiple times. +--persistent=y_or_n Pickle collected data for later comparisons. +--output-format= Select output format (text, html, custom). +--msg-template=