Opened 9 years ago

#4738 new defect

RandomQuote(WikiPage) fails with TypeError: format requires a mapping

Reported by: ilmars@… Owned by: RottenChester
Priority: normal Component: RandomIncludePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


I'm using Trac 0.11 in Ubuntu 8.10.

RandomQuote(WikiPage) macro fails with TypeError: format requires a mapping

The same error happens with RandomItem macro.

TypeError: format requires a mapping

See stack trace below:

2009-03-03 18:16:42,123 Trac[formatter] ERROR: Macro RandomQuote(LitQuotes) failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 166, in _macro_processor
  File "build/bdist.linux-x86_64/egg/randominclude/", line 41, in expand_macro
    pagelist = wikiobj.getentries(sourcepage,1)
  File "build/bdist.linux-x86_64/egg/randominclude/", line 21, in getentries
  File "/usr/lib/python2.5/site-packages/trac/db/", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.5/site-packages/trac/db/", line 56, in execute
    sql = sql % (('?',) * len(args))
TypeError: format requires a mapping

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain RottenChester.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.