Modify

Opened 7 years ago

Closed 7 years ago

#13050 closed task (fixed)

Make compatible with Trac 1.2

Reported by: roger.oberholtzer@… Owned by: Ryan J Ollos
Priority: normal Component: MilestoneQueryMacro
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

Is it possible to make this macro compatible with Trac 1.2? I get this error:

2017-01-18 08:22:58,710 Trac[formatter] ERROR: Macro MilestoneQuery(rc_%) failed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/wiki/formatter.py", line 802, in _macro_formatter
    return macro.ensure_inline(macro.process(args))
  File "/usr/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/wiki/formatter.py", line 379, in process
    text = self.processor(text)
  File "/usr/lib/python2.7/site-packages/Trac-1.2-py2.7.egg/trac/wiki/formatter.py", line 351, in _macro_processor
    text)
  File "build/bdist.linux-x86_64/egg/milestonequery/macro.py", line 35, in expand_macro
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Ryan J Ollos

Owner: changed from Nic Ferrier to Ryan J Ollos
Status: newaccepted

comment:2 Changed 7 years ago by Ryan J Ollos

In 16225:

1.0.1: Require Trac >= 1.0

Refs #13050.

comment:3 Changed 7 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16227:

1.0.2: Support Trac >= 1.2

Fixes #13050.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
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.