Modify

Opened 8 years ago

Closed 8 years ago

#13019 closed defect (fixed)

WikiCreateTicketPlugin breaks with Trac > 1.1.2

Reported by: morgana2313 Owned by: Jun Omae
Priority: normal Component: WikiCreateTicketPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

Because it uses get_db_cnx that was removed in version 1.1.2

  File "/usr/local/lib/python2.7/site-packages/WikiCreateTicket-0.1-py2.7.egg/wikicreateticket/__init__.py", line 58, in __update_wiki
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Attached is a patch that fixes this problem.

Attachments (1)

wikicreateticket_trac12.diff (826 bytes) - added by morgana2313 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by morgana2313

comment:1 Changed 8 years ago by Jun Omae

Owner: changed from yosiyuki to Jun Omae
Status: newaccepted
Trac Release: 1.2

Suggested patch would break Trac 0.12 compatibility. I'll add unit tests before fixing it.

comment:2 Changed 8 years ago by Jun Omae

Resolution: fixed
Status: acceptedclosed

In 16171:

WikiCreateTicketPlugin: support Trac 1.2 and add unit tests (closes #13019)

Modify Ticket

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