[Checkins] SVN: zope3org/trunk/src/zorg/wikification/browser/ Fixed a problem with incomplete file uploads and an import error

Uwe Oestermeier uwe_oestermeier at iwm-kmrc.de
Mon Jun 12 04:01:55 EDT 2006


Log message for revision 68595:
  Fixed a problem with incomplete file uploads and an import error

Changed:
  U   zope3org/trunk/src/zorg/wikification/browser/tests.py
  U   zope3org/trunk/src/zorg/wikification/browser/wikilink.py

-=-
Modified: zope3org/trunk/src/zorg/wikification/browser/tests.py
===================================================================
--- zope3org/trunk/src/zorg/wikification/browser/tests.py	2006-06-12 07:59:54 UTC (rev 68594)
+++ zope3org/trunk/src/zorg/wikification/browser/tests.py	2006-06-12 08:01:55 UTC (rev 68595)
@@ -35,11 +35,6 @@
              'TestRequest': zope.publisher.browser.TestRequest}
  
     return unittest.TestSuite((
-        doctest.DocTestSuite("zorg.wikification.browser.comment", 
-                                setUp=setUpBrowserTests, 
-                                tearDown=tearDownBrowserTests,
-                                optionflags=optionflags
-                             ),
                              
         doctest.DocTestSuite("zorg.wikification.browser.wikipage", 
                                 setUp=setUpBrowserTests, 

Modified: zope3org/trunk/src/zorg/wikification/browser/wikilink.py
===================================================================
--- zope3org/trunk/src/zorg/wikification/browser/wikilink.py	2006-06-12 07:59:54 UTC (rev 68594)
+++ zope3org/trunk/src/zorg/wikification/browser/wikilink.py	2006-06-12 08:01:55 UTC (rev 68595)
@@ -767,7 +767,10 @@
 
         if not contenttype :
             contenttype = contenttypes.guess_content_type(filename)[0]
-     
+
+        if data is None :
+            data = ''
+
         return self._addFile(name, data, contenttype)
        
     def _addFile(self, name, data, contenttype) :



More information about the Checkins mailing list