Edgewall Software
Modify

Opened 17 years ago

Closed 14 years ago

Last modified 12 years ago

#5855 closed enhancement (wontfix)

Fixed mantis2trac.py

Reported by: licho@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version:
Severity: normal Keywords: mantis2trac mantis
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Adding fixed and upgraded mantis2trac.py

Versions from trac and trac hacks sites were not working properly.

This fixed version was tested extensively against python 2.4, trac 0.11dev, and mantis 1.0.6

Attachments (2)

mantis2py.patch (40.2 KB ) - added by licho@… 17 years ago.
trac.gif (49.1 KB ) - added by dsvensson@… 16 years ago.
mantis converter breaks timeline

Download all attachments as: .zip

Change History (10)

by licho@…, 17 years ago

Attachment: mantis2py.patch added

comment:1 by ThurnerRupert, 17 years ago

could somebody with appropriate rights pls apply this?

comment:2 by Christian Boos, 17 years ago

Milestone: 0.110.11.1

Shouldn't block milestone:0.11.

comment:3 by Christian Boos, 16 years ago

How does this relate to TH:MantisImportScript?

in reply to:  3 comment:4 by dalemiller@…, 16 years ago

Replying to cboos:

How does this relate to TH:MantisImportScript?

I had errors using the mantis2trac.py script that was available in the trac and trac-hacks repositories. They both are v1.3 in the comments at the top of the file. Version 1.3 from the repositories had errors when trying to go to MySQL. Version 1.3 worked when I tried it with PySQLite but I wanted to use MySQL. I am converting from Mantis 1.1.1

The attachment above on this ticket contains a v1.4 that I found worked. It is actually not a patch but the complete file. Someone needs to commit this version into the repository.

I got the file by selecting all the lines of the attachment as it was displayed. Then I pasted it into xemacs and did a "kill-rectangle" on the line numbers. I also had to remove a trailing space behind two continued lines "\ " for it to work.

I added a similar comment to ticket 2009 on the Trac hack page. http://trac-hacks.org/ticket/2009

This is the configuration that I have working:

Trac:   	0.11rc1
Python: 	2.5.1 (r251:54863, Sep 21 2007, 22:46:31) [GCC 4.2.1 (SUSE Linux)]
setuptools: 	0.6c8
MySQL: 	server: "5.0.45", client: "5.0.45", thread-safe: 0
MySQLdb: 	1.2.2
Genshi: 	0.4.4
mod_python: 	3.3.1
Subversion: 	1.4.4 (r25188)
jQuery:	        1.2.3

by dsvensson@…, 16 years ago

Attachment: trac.gif added

mantis converter breaks timeline

comment:5 by dsvensson@…, 16 years ago

The patch is broken. It works better than the one found at track-hacks, but it doesn't handle WTF-8 conversion that well. The converted data breaks the timeline page.

comment:6 by Christian Boos, 15 years ago

Component: generalticket system
Milestone: 0.11-retriage0.13

comment:7 by Remy Blank, 14 years ago

Milestone: next-major-0.1X
Resolution: wontfix
Status: newclosed

We don't (can't?) test the various importers regularly (if at all), so they are better hosted and maintained by somebody who does (can).

comment:8 by anonymous, 12 years ago

I am moving the mantis2trac script to github for easier support, the merged version with restored UTF-8 support is at https://github.com/Aeon/mantis2trac

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.