Edgewall Software

Changes between Initial Version and Version 7 of Ticket #10504


Ignore:
Timestamp:
Jul 4, 2012, 10:24:14 PM (12 years ago)
Author:
Ryan J Ollos <ryano@…>
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10504

    • Property Milestone not applicable1.0-triage
  • Ticket #10504 – Description

    initial v7  
    22Managed to import my bugs from Bugzilla version 4.0.1 into Trac version 0.11.1.
    33Changes in the bugzilla2trac.py:
    4 1. BZ_VERSION = 4010
     4
     5 1. BZ_VERSION = 4010
     6{{{
    57Fixed selection of correct query in TracDatabase.getFieldName
    68"cursor.execute("SELECT * FROM fielddefs WHERE id = %s",(fieldid))"
    79is correct.
    8 
    9 2. In method TracDatabase.addAttachment
     10}}}
     11 1. In method TracDatabase.addAttachment
    1012Insert following code to change : TracDatabase.env.path to absolute path
     13{{{
    1114mod_env = os.path.abspath(self.env.path).       
    1215self.env.path = mod_env
     16}}}
    1317Before doing
     18{{{
    1419"attachment = Attachment(self.env, 'ticket', id)"
     20}}}
     21This fixed an assertion error in attachment.py:
     22{{{
     23" assert commonprefix == attachments_dir "
     24}}}
    1525
    16 This fixed an assertion error in attachment.py:
    17 " assert commonprefix == attachments_dir "
    18 
    19 
     26{{{
    2027System Information:
    2128Trac:   0.11.1
     
    2734Subversion:     1.5.1 (r32289)
    2835jQuery: 1.2.6
     36}}}
    2937
    3038P.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.