Make application/x-javascript MIME type editable

Bug #143111 reported by Alexander Limi
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
Unassigned

Bug Description

Now that CMF finally converts .js files into application/x-javascript FSFile objects (which is the correct MIME type / object type for JS), it would be nice if the textarea edit mechanism inside FSFile that currently matches text/* could also recognize application/x-javascript as an editable TTW type - so it is editable when customized.

Right now you can't edit JS that has the correct MIME type in Zope, which is a bit annoying. :)

Tags: feature zope
Revision history for this message
Alexander Limi (limi) wrote :

This causes a lot of problems for us since we are trying to keep DTML out of JS, but people can not customize things anymore in the CMF.

See http://collector.zope.org/CMF/183 for more details.

Revision history for this message
Florent Guillaume (efge) wrote :

Status: Pending => Rejected

Please resubmit this in the CMF collector.

Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

Status: Rejected => Accepted

 Supporters added: jens

No, this is a Zope issue. The issue is about OFS.File, which should be editable TTW with the application/x-javascript content type, just like it is with a text/XXX content type right now.

I'll look into it.

Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

Status: Accepted => Resolved

On Zope-HEAD and the Zope-2_7-branch the test for "editability" now looks for content type starting with "text" or those ending with "javascript".

Revision history for this message
Alexander Limi (limi) wrote :

Thanks, Jens - much appreciated.

Revision history for this message
Raven D. (ravendawson17) wrote :

Greeaat, finally got a better understanding of how this <a href="http://mimeapplication.org/x-javascript.html">MIME Application/x-javascript</a> works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.