Changes between Initial Version and Version 7 of Ticket #10504
- Timestamp:
- Jul 4, 2012, 10:24:14 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10504
- Property Milestone not applicable → 1.0-triage
-
Ticket #10504 – Description
initial v7 2 2 Managed to import my bugs from Bugzilla version 4.0.1 into Trac version 0.11.1. 3 3 Changes in the bugzilla2trac.py: 4 1. BZ_VERSION = 4010 4 5 1. BZ_VERSION = 4010 6 {{{ 5 7 Fixed selection of correct query in TracDatabase.getFieldName 6 8 "cursor.execute("SELECT * FROM fielddefs WHERE id = %s",(fieldid))" 7 9 is correct. 8 9 2. In method TracDatabase.addAttachment10 }}} 11 1. In method TracDatabase.addAttachment 10 12 Insert following code to change : TracDatabase.env.path to absolute path 13 {{{ 11 14 mod_env = os.path.abspath(self.env.path). 12 15 self.env.path = mod_env 16 }}} 13 17 Before doing 18 {{{ 14 19 "attachment = Attachment(self.env, 'ticket', id)" 20 }}} 21 This fixed an assertion error in attachment.py: 22 {{{ 23 " assert commonprefix == attachments_dir " 24 }}} 15 25 16 This fixed an assertion error in attachment.py: 17 " assert commonprefix == attachments_dir " 18 19 26 {{{ 20 27 System Information: 21 28 Trac: 0.11.1 … … 27 34 Subversion: 1.5.1 (r32289) 28 35 jQuery: 1.2.6 36 }}} 29 37 30 38 P.S: Please note that I have no insight into trac codebase nor am I accustomed to python. The changes to the script are completely symptom-solution based.