[chirp_devel] [PATCH 2 of 2] [tpe] Fix regression introduced with CSV dialog detection. #617

Tom Hayward
Tue Feb 26 11:10:55 PST 2013


# HG changeset patch
# User Tom Hayward <tom at 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)



More information about the chirp_devel mailing list