Description

If you enter the <<Navigation>> command without the required arg you get this traceback.txt in 1.9 wsgi using german language.

<<Navigation: execution failed [Argument "scheme" is required] (see also the log)>>

Component selection

Details

MoinMoin Version

1.9

OS and Version

Python Version

2.6.2

Server Setup

wsgi

Server Details

apache2

Language you are using the wiki in (set in the browser/UserPreferences)

german

Workaround

Discussion

It tries to print:

<<Navigation: execution failed [Argument "scheme" wird benötigt] (see also the log)>> 

   1 --- a/MoinMoin/macro/__init__.py        Mon Apr 06 12:31:18 2009 +0200
   2 +++ b/MoinMoin/macro/__init__.py        Sun Apr 12 18:02:39 2009 +0200
   3 @@ -130,7 +130,7 @@
   4              _ = self.request.getText
   5              return self.formatter.text(_('<<%(macro_name)s: execution failed [%(error_msg)s] (see also the log)>>') % {
   6                     'macro_name': self.name,
   7 -                   'error_msg': str(err),
   8 +                   'error_msg': err,
   9                   })
  10 
  11      def _m_lang(self, text):

That solution does not work in python 2.4

Review of 1.7

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9_unprintable_ValueError_object (last edited 2009-04-18 22:21:46 by ThomasWaldmann)