Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#577 closed defect (fixed)

Example causes error in new installations

Reported by: rock@… Owned by: Alec Thomas
Priority: normal Component: PollMacro
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description

The example macro causes an error in new installations. The error message is reproduced below.

Error: Macro Poll(Which of these do you prefer?; #1; #2; #3; query:component-Request-a-Hack&status!=closed; Cheese dip) failed

Ticket 1 does not exist.

Attachments (0)

Change History (3)

comment:1 Changed 18 years ago by rock@…

Replacing #1 with '#1`, etc. produces this error:

Query filter requires field and constraints separated by a "="

comment:2 Changed 18 years ago by rock@…

removing the query option produced this traceback:

09:57:33 Trac[formatter] ERROR: Macro Poll(Which of these do you prefer?; !#1; !
#2; !#3; Cheese dip) failed
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 370, in _
macro_formatter
    return macro.process(self.req, args, 1)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 109, in p
rocess
    text = self.processor(req, text)
  File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 99, in _m
acro_processor
    return macro_provider.render_macro(req, self.name, text)
  File "build/bdist.linux-i686/egg/tracpoll/tracpoll.py", line 140, in render_ma
cro
  File "build/bdist.linux-i686/egg/tracpoll/tracpoll.py", line 183, in render_po
ll
  File "build/bdist.linux-i686/egg/tracpoll/tracpoll.py", line 18, in __init__
  File "build/bdist.linux-i686/egg/tracpoll/tracpoll.py", line 29, in load
AttributeError: keys

comment:3 Changed 18 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

(In [1156]) Skip invalid tickets. Closes #577.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.