[Zope3-checkins] SVN: Zope3/branches/Zope-3.1/src/zope/publisher/ 'text/vnd.wap.wml' is a valid content type

Dmitry Vasiliev dima at hlabs.spb.ru
Tue Aug 23 08:51:29 EDT 2005


Log message for revision 38041:
  'text/vnd.wap.wml' is a valid content type
  

Changed:
  U   Zope3/branches/Zope-3.1/src/zope/publisher/contenttype.py
  U   Zope3/branches/Zope-3.1/src/zope/publisher/tests/test_contenttype.py

-=-
Modified: Zope3/branches/Zope-3.1/src/zope/publisher/contenttype.py
===================================================================
--- Zope3/branches/Zope-3.1/src/zope/publisher/contenttype.py	2005-08-23 10:40:59 UTC (rev 38040)
+++ Zope3/branches/Zope-3.1/src/zope/publisher/contenttype.py	2005-08-23 12:51:29 UTC (rev 38041)
@@ -100,7 +100,7 @@
 
 def _token_match(string):
     global _token_match
-    _token_match = re.compile("[^][ \t\n\r()<>@,;:\"/?.=\\\\]+$").match
+    _token_match = re.compile("[^][ \t\n\r()<>@,;:\"/?=\\\\]+$").match
     return _token_match(string)
 
 def _unescape(string):

Modified: Zope3/branches/Zope-3.1/src/zope/publisher/tests/test_contenttype.py
===================================================================
--- Zope3/branches/Zope-3.1/src/zope/publisher/tests/test_contenttype.py	2005-08-23 10:40:59 UTC (rev 38040)
+++ Zope3/branches/Zope-3.1/src/zope/publisher/tests/test_contenttype.py	2005-08-23 12:51:29 UTC (rev 38041)
@@ -39,6 +39,8 @@
                          ("text", "plain", self.empty_params))
         self.assertEqual(self.parse("TeXt / PlaIN"),
                          ("text", "plain", self.empty_params))
+        self.assertEqual(self.parse("text / vnd.wap.wml"),
+                         ("text", "vnd.wap.wml", self.empty_params))
 
     def test_with_empty_params(self):
         self.assertEqual(self.parse("text/plain ; "),



More information about the Zope3-Checkins mailing list