P4DTI issue job000463

TitleBugzilla integration fails if mx.DateTime module is installed
Assigned userGareth Rees
DescriptionThe Bugzilla integration breaks if the Python mx.DateTime module is installed on the P4DTI server system.
AnalysisThis is essentially the same problem as job000193, but caused by a different packaging of the DateTime module. Early versions of the DateTime module are loaded with "import DateTime". Later versions are loaded with "from mx import DateTime". The MySQLdb interface tries both methods of loading the module, so it works regardless of which packaging; see MySQLdb.py 1.40, lines 64-71. However, the P4DTI only tries the old way of loading the module, so it loses when the newer package is installed.
The fix is to not depend on the form of the DateTime packaging.
How foundcustomer
Observed in1.2.1
Introduced in0.5.0
Created byGareth Rees
Created on2002-02-21 18:34:26
Last modified byGareth Rees
Last modified on2002-02-21 18:34:26
History2002-02-21 GDR Created.


Change Effect Date User Description
26293 closed 2002-01-31 19:04:16 Gareth Rees Added support for MySQLdb 0.9.1.