Re: TextField's handling of mimetypes is dumb

Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20051226122840.GL11524@cotia>
On Mon, Dec 26, 2005 at 05:00:40AM +0100, Martin Aspeli wrote:
| Why can't it default to the default_content_type? This is a property on  
| the field, not the widget, which implies it should apply at the field  
| level, not just TTW.

Because explicit is better than implicit? Would you like it if you
did setMyField(<content-of-a-word-file>) and it ended up with
'text/x-web-intelligent'? You must think about the other use-cases
behind this, not just yours.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.