zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #02323
[Merge] lp:~kamstrup/zeitgeist/extra-mimes into lp:zeitgeist
Mikkel Kamstrup Erlandsen has proposed merging lp:~kamstrup/zeitgeist/extra-mimes into lp:zeitgeist.
Requested reviews:
Zeitgeist Framework Team (zeitgeist)
Related bugs:
#626492 Log rar and zip files as archives
https://bugs.launchpad.net/bugs/626492
Adds a bunch of extra mimetype mappings and an URI scheme for ftp://. Please see commit log for details.
--
https://code.launchpad.net/~kamstrup/zeitgeist/extra-mimes/+merge/40421
Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~kamstrup/zeitgeist/extra-mimes into lp:zeitgeist.
=== modified file 'zeitgeist/mimetypes.py'
--- zeitgeist/mimetypes.py 2010-09-04 08:10:11 +0000
+++ zeitgeist/mimetypes.py 2010-11-09 12:23:45 +0000
@@ -3,6 +3,7 @@
# Zeitgeist
#
# Copyright © 2010 Markus Korn <thekorn@xxxxxx>
+# 2010 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
@@ -123,7 +124,6 @@
"application/javascript": Interpretation.SOURCE_CODE,
"application/x-csh": Interpretation.SOURCE_CODE,
"application/x-designer": Interpretation.SOURCE_CODE,
- "application/x-desktop": Interpretation.SOURCE_CODE,
"application/x-dia-diagram": Interpretation.SOURCE_CODE,
"application/x-fluid": Interpretation.SOURCE_CODE,
"application/x-glade": Interpretation.SOURCE_CODE,
@@ -167,6 +167,28 @@
"text/x-vala": Interpretation.SOURCE_CODE,
"text/x-vhdl": Interpretation.SOURCE_CODE,
"text/x-m4": Interpretation.SOURCE_CODE,
+
+ # Arhcives
+ "application/zip": Interpretation.ARCHIVE,
+ "application/x-gzip": Interpretation.ARCHIVE,
+ "application/x-bzip": Interpretation.ARCHIVE,
+ "application/x-lzma": Interpretation.ARCHIVE,
+ "application/x-archive": Interpretation.ARCHIVE,
+ "application/x-7z-compressed": Interpretation.ARCHIVE,
+ "application/x-bzip-compressed-tar": Interpretation.ARCHIVE,
+ "application/x-lzma-compressed-tar": Interpretation.ARCHIVE,
+ "application/x-compressed-tar": Interpretation.ARCHIVE,
+
+ # Software and packages
+ "application/x-deb": Interpretation.SOFTWARE,
+ "application/x-rpm": Interpretation.SOFTWARE,
+ "application/x-ms-dos-executable": Interpretation.SOFTWARE,
+ "application/x-executable": Interpretation.SOFTWARE,
+ "application/x-desktop": Interpretation.SOFTWARE,
+
+ # File systems
+ "application/x-cd-image": Interpretation.FILESYSTEM_IMAGE,
+
}
MIMES_REGEX = make_regex_tuple(
@@ -197,4 +219,5 @@
("https://", Manifestation.FILE_DATA_OBJECT.REMOTE_DATA_OBJECT),
("ssh://", Manifestation.FILE_DATA_OBJECT.REMOTE_DATA_OBJECT),
("sftp://", Manifestation.FILE_DATA_OBJECT.REMOTE_DATA_OBJECT),
+ ("ftp://", Manifestation.FILE_DATA_OBJECT.REMOTE_DATA_OBJECT),
))