[chirp_devel] [PATCH 1 of 2] [hmk] Fix regression introduced with CSV dialog detection. #617
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1361904666 28800 # Node ID 1b2ec3a7cdab9efcf2a769ec3c9abb6eaaa85ff3 # Parent eaca60f43728b33978fa03763fb7e82af786b03d [hmk] Fix regression introduced with CSV dialog detection. #617
diff -r eaca60f43728 -r 1b2ec3a7cdab chirp/kenwood_hmk.py --- a/chirp/kenwood_hmk.py Mon Feb 25 14:51:54 2013 -0800 +++ b/chirp/kenwood_hmk.py Tue Feb 26 10:51:06 2013 -0800 @@ -120,3 +120,8 @@ if not good: print self.errors raise errors.InvalidDataError("No channels found") + + @classmethod + def match_model(cls, filedata, filename): + """Match files ending in .hmk""" + return filename.lower().endswith("." + cls.FILE_EXTENSION)
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1361905763 28800 # Node ID d0b13442d02542e5ecd298c206f5ab8e409a8c0d # Parent 1b2ec3a7cdab9efcf2a769ec3c9abb6eaaa85ff3 [tpe] Fix regression introduced with CSV dialog detection. #617
diff -r 1b2ec3a7cdab -r d0b13442d025 chirp/generic_tpe.py --- a/chirp/generic_tpe.py Tue Feb 26 10:51:06 2013 -0800 +++ b/chirp/generic_tpe.py Tue Feb 26 11:09:23 2013 -0800 @@ -44,3 +44,7 @@ FILE_EXTENSION = "tpe"
ATTR_MAP = TpeMap() + + @classmethod + def match_model(cls, filedata, filename): + return filename.lower().endswith("." + cls.FILE_EXTENSION)
participants (1)
-
Tom Hayward