Commit 323cbf63 authored by Tres Seaver's avatar Tres Seaver

Launchpad #373299: Removed bogus string exception in OFS.CopySupport.

parent 43181787
......@@ -8,6 +8,8 @@ Zope Changes
Bugs fixed
- Launchpad #373299: Removed bogus string exception in OFS.CopySupport.
Zope 2.8.10 (2008/10/24)
Bugs fixed
......
......@@ -32,7 +32,8 @@ from zExceptions import Unauthorized, BadRequest
from webdav.Lockable import ResourceLockedError
CopyError='Copy Error'
class CopyError(Exception):
pass
copy_re = re.compile('^copy([0-9]*)_of_(.*)')
......
......@@ -333,7 +333,7 @@ class TestCopySupportSecurity( CopySupportTestBase ):
if ce_regex is not None:
pattern = re.compile( ce_regex, re.DOTALL )
if pattern.search( e ) is None:
if pattern.search(str(e)) is None:
self.fail( "Paste failed; didn't match pattern:\n%s" % e )
else:
......@@ -404,8 +404,6 @@ class TestCopySupportSecurity( CopySupportTestBase ):
def test_copy_cant_create_target_metatype_not_supported( self ):
from OFS.CopySupport import CopyError
folder1, folder2 = self._initFolders()
folder2.all_meta_types = ()
......@@ -435,8 +433,6 @@ class TestCopySupportSecurity( CopySupportTestBase ):
def test_move_cant_read_source( self ):
from OFS.CopySupport import CopyError
folder1, folder2 = self._initFolders()
folder2.all_meta_types = FILE_META_TYPES
......@@ -455,8 +451,6 @@ class TestCopySupportSecurity( CopySupportTestBase ):
def test_move_cant_create_target_metatype_not_supported( self ):
from OFS.CopySupport import CopyError
folder1, folder2 = self._initFolders()
folder2.all_meta_types = ()
......@@ -470,8 +464,6 @@ class TestCopySupportSecurity( CopySupportTestBase ):
def test_move_cant_create_target_metatype_not_allowed( self ):
from OFS.CopySupport import CopyError
folder1, folder2 = self._initFolders()
folder2.all_meta_types = FILE_META_TYPES
......@@ -489,7 +481,6 @@ class TestCopySupportSecurity( CopySupportTestBase ):
def test_move_cant_delete_source( self ):
from OFS.CopySupport import CopyError
from AccessControl.Permissions import delete_objects as DeleteObjects
folder1, folder2 = self._initFolders()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment