I would add some sort of message if an old footprint is being loaded. For example, by detecting the import error, or lookup to the old class name, it would trigger a message box pointing to the specific plugin that failed to load, and a link to the instructions to fix it.
But that could be a follow up on this patch. On Tue, Jan 3, 2017 at 4:30 PM, Wayne Stambaugh <stambau...@gmail.com> wrote: > On 1/3/2017 10:08 AM, jp charras wrote: > > Le 03/01/2017 à 15:30, jp charras a écrit : > >> Le 03/01/2017 à 14:03, Miguel Angel Ajo Pelayo a écrit : > >>> Sorry, I just found the email. Sorry for my delayed answer. > >>> > >>> The code looks good to me, I believe it's a good change, it's not > backwards compatible with the > >>> older footprint wizards, but the changes to make them compatible seem > simple enough, and well > >>> documented. > >>> > >>> > >>> If I had comments to make, it'd be why are we using uInteger, uEtc for > parameter types. > >>> > >>> Could we use the python convention to have constants in upcase, and > may be se > >>> > >>> INTEGER_PARAM, .... ETC_PARAM on the python side ? > >>> > >>> this is more nitpicking than anything. > >>> > >>> > >>> Nice work. > >> > >> I agree, and I am willing to commit this change (the API is better), > but because it breaks the > >> compatibility (yes, the changes to make old wizards compatible is > simple and documented) I need the > >> Wayne's opinion before committing the changes. > >> > >> Attached a patch against the lastest kicad version (the initial patch > is not applicable to the > >> current kicad version). > >> > > > > My previous patch is perhaps missing some changes. Here is the full > patch. > > It looks fine to me except for some coding policy issues ( missing > spaces between ( and ) and some trailing white space). The only issue I > see is anyone using the python code in custom scripts may not be very > happy about the changes. It would be nice to hear from the original > author about the changes. If no one has any serious objections, then > feel free to commit the patch. > > Cheers, > > Wayne > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp