P4DTI issue job000322

TitleType checking is too strict
Assigned userNick Barnes
DescriptionWhen writing defect_tracker_* classes for a P4DTI extension, you have to return lists, dictionaries and so on when the documentation says to do so. You can't return a class of your own construction which presents a list or dictionary interface: if you do, you get assertion failures.
AnalysisThis is because we check types using instance(variable, type). Perhaps we should check merely that the interface we need is presented, by calling getattr(variable, methodname)?
How foundinspection
Observed in1.1.1
Introduced in1.1.0
Created byGareth Rees
Created on2001-05-17 16:46:47
Last modified byNick Barnes
Last modified on2018-07-05 17:27:37
History2001-05-17 GDR Created.
       2018-07-05 NB Suspended because the P4DTI is obsolete.