Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#12195 closed defect (fixed)

[PATCH] Replace deprecated env.get_db_cnx() method

Reported by: mikhael@… Owned by: mikhael@…
Priority: normal Component: DefaultCcPlugin
Severity: normal Keywords: get_db_cnx
Cc: Trac Release: 1.0

Description

Environment.get_db_cnx() method was marked as deprecated in Trac 1.0 and was removed in Trac 1.1.1.

See also: ​http://trac.edgewall.org/ticket/11605

Attachments (1)

remove_get_db_cnx.patch (4.0 KB) - added by mikhael@… 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by mikhael@…

Attachment: remove_get_db_cnx.patch added

comment:1 Changed 10 years ago by Ryan J Ollos

Status: newaccepted

Thanks for the patch. I'll try to get it committed soon.

comment:2 Changed 10 years ago by Ryan J Ollos

In 14502:

0.4dev: Adapted to Trac 1.0 API. Refs #12195.

Initial patch by mikhael@… The trunk is now compatible with Trac 1.0 and later. The plugin should work with the development series of releases (1.1.x) leading up to 1.2. The plugin has been tested with Trac 1.1.4.

Other changes:

  • Fixed traceback on Ticket Admin Components page when attempting to add a component that already exists.
  • Adapted stream filter for Trac 1.1.2 modifications to HTML on the Ticket Admin Components page ([trac 12858]).

comment:3 Changed 10 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

Would you kindly test out that latest version and let me know if you find any issues? I fixed a few other minor problems in addition to what was included in your patch.

comment:4 Changed 10 years ago by Ryan J Ollos

Owner: changed from Ryan J Ollos to mikhael@…

comment:5 Changed 10 years ago by mikhael@…

I tested the recent version of DefaultCc 0.4dev-r14502 on Trac 1.1.5. Admin page works fine. Base functionality (adding CC to tickets) also works as expected.

Modify Ticket

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