[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2011-08-22 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> fixed stage: commit review -> committed/rejected ___ Python tracker ___ ___ Python

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: r87460 -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Got approval from Georg on IRC, so go ahead and commit it, Terry. Or assign it to me if you'd rather I do it. -- ___ Python tracker ___

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray added the comment: No, I don't think it qualifies as a common_type. But since this is technically a feature request we need Georg's approval for the commit. -- ___ Python tracker

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure; the common_types is actually for invalid but used types, like image/jpg (the correct one is image/jpeg and is listed in types_map). The status of IANA registration is unclear (thanks David for looking at that); since common tools understand that m

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I obviously misunderstood the instruction about 'x-' and will remove that. Should I leave the entry where it is or move as Éric suggested? -- Added file: http://bugs.python.org/file20149/mimetypes.svg2.diff ___ Pyth

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread R. David Murray
R. David Murray added the comment: Yes, adding the x- version would probably be pointless as most likely nobody uses it. Has anyone found any definitive info on where exactly in the approval process image/svg+xml is? I think we should probably just go ahead and put it in, but it would be nic

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Éric Araujo
Éric Araujo added the comment: I believe the patch should add the used but non-standard image/svg+xml type to the common_type dictionary, not invent a new x- type. -- ___ Python tracker __

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, the other combined suffixes are not either. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy added the comment: Shouldn't .svgz be also added as 'image/x-svg+xml'? -- ___ Python tracker ___ ___ Python-bugs-l

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch attached. The instructions, after editing the url, are # Before adding new types, make sure they are either registered with IANA, # at http://www.iana.org/assignments/media-types # or extensions, i.e. using the x- prefix Since there is no reg

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-20 Thread Éric Araujo
Éric Araujo added the comment: +1 on adding SVG types in 3.2 or 3.3. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-lis

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: I think a variance from the policy stated in mimetypes is quite possible, and the kind of information you provide, Terry, is a step in that direction. We would need release manager approval, of course, since we are in Beta, but this is a small enough change

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Separate issue: from the mimetypes doc ... "MimeTypes.types_map Dictionary mapping filename extensions to MIME types. This is initially a copy of the global types_map defined in the module." But on Windows, I get a *tuple*, not a dict, of two dicts. The first

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is actually a request to add .svg to the types map and the the abbreviation .svgz for .svg.gx to the suffix_map. I believe Scalable Vector Graphics are well on the way to becoming *the* standard vector graphics format for the web, especially with u

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: This media type does not appear in the official IANA registry. Has it not yet been officially approved? If you want to argue that its use is common enough and its approval immanent enough (I do see that it has been submitted) to warrant inclusion in Python

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy added the comment: *.svg and *.svgz files have image/svg+xml media type. I have following in /etc/mime.types callisto ~ $ grep svg /etc/mime.types image/svg+xml svg svgz -- ___ Python tracker

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: You are correct, I misread your message. However, my point still stands. .svg is not a file extension that appears in the types_map table, so adding the line you request to the suffix_map table is not something we would do by itself. So, to correct my que

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy added the comment: I'm not sure we are talking about the same table. I don't see .mp4 there. suffix_map = { '.tgz': '.tar.gz', '.taz': '.tar.gz', '.tz': '.tar.gz', '.tbz2': '.tar.bz2', } *.svgz is gzipped *.svg files. -- __

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: What are the media types, and are they registered with IANA? A citation from http://www.isi.edu/in-notes/iana/assignments/media-types will be needed in order for this addition to happen if they are not x- types. I checked out of curiousity, and the last tim

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Grygoriy Fuchedzhy
New submission from Grygoriy Fuchedzhy : Please add '.svgz': '.svg.gz' map to mimetypes.suffix_map -- components: Library (Lib) messages: 124282 nosy: gry priority: normal severity: normal status: open title: add .svgz to mimetypes.suffix_map type: feature request __