[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/ - backport for bug #201 from trunk

Christian Theune ct at gocept.com
Thu Jun 10 09:05:49 EDT 2004


Log message for revision 25328:
- backport for bug #201 from trunk




-=-
Modified: Zope3/branches/ZopeX3-3.0/doc/CHANGES.txt
===================================================================
--- Zope3/branches/ZopeX3-3.0/doc/CHANGES.txt	2004-06-10 11:51:22 UTC (rev 25327)
+++ Zope3/branches/ZopeX3-3.0/doc/CHANGES.txt	2004-06-10 13:05:49 UTC (rev 25328)
@@ -12,6 +12,9 @@
 
     Bug fixes
 
+      - Fixed the default 'text/*' content type for file objects.
+        Backport of the fix for bug 201.
+
       - A monkey patch to cope with weakref problems in Python 2.3.3
         was removed, so Python 2.3.4 is required now.
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/file/interfaces.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/file/interfaces.py	2004-06-10 11:51:22 UTC (rev 25327)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/file/interfaces.py	2004-06-10 13:05:49 UTC (rev 25328)
@@ -24,13 +24,14 @@
     contentType = BytesLine(
         title = _(u'Content Type'),
         description=_(u'The content type identifies the type of data.'),
-        default = 'text/plain',
-        required=False
+        default='',
+        required=False,
+        missing_value=''
         )
 
     data = Bytes(
-        title = _(u'Data'),
-        description = _(u'The actual content of the object.'),
+        title=_(u'Data'),
+        description=_(u'The actual content of the object.'),
         default='',
         required=False,
         )




More information about the Zope3-Checkins mailing list