[Zope-Coders] failing CMF tests (Copy or Move)
Tres Seaver
tseaver@zope.com
08 Jul 2002 17:11:47 -0400
On Mon, 2002-06-17 at 12:29, Florent Guillaume wrote:
> Trying a fresh CMF/Zope checkout, I have a few failing tests, apparently
> due to the recent addition of the 'Copy or Move' permission.
>
> I'm not sure about it though, this being the first time I try to run CMF
> tests.
I think I nailed these this morning. The bug is not due to the new
permission, but to the fact that CopySupport now expects objects to have
a '_p_jar' which is not 'None' (or have no '_p_jar' at all!); the
PortalFolder tests now fake that (in a pretty ugly way).
>
> Florent
>
>
> Running: /home/guillaum/writable-cvs/Zope/lib/python/Products/all_cmf_tests.py
> ..................E.E..........................................................................................................................................................................................................................
> ======================================================================
> ERROR: test_contentPaste (Products.CMFCore.tests.test_PortalFolder.PortalFolderTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test_PortalFolder.py", line 337, in test_contentPaste
> File "/home/guillaum/writable-cvs/Zope/lib/python/OFS/CopySupport.py", line 69, in manage_cutObjects
> raise CopyError, eNotSupported % id
> Copy Error:
> <HTML>
> <HEAD>
> <TITLE>Not Supported</TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF">
> <FORM ACTION="manage_main" METHOD="GET" >
> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="10">
> <TR>
> <TD VALIGN="TOP">
> <BR>
> <CENTER><B><FONT SIZE="+6" COLOR="#77003B">!</FONT></B></CENTER>
> </TD>
> <TD VALIGN="TOP">
> <BR><BR>
> <CENTER>
> The action against the <em>dummy</em> object could not be carried out. One of the following constraints caused the problem: <br><br>The object does not support this operation.<br><br>-- OR --<br><br>The currently logged-in user does not have the <b>Copy or Move</b> permission respective to the object.
> </CENTER>
> </TD>
> </TR>
> <TR>
> <TD VALIGN="TOP">
> </TD>
> <TD VALIGN="TOP">
> <CENTER>
> <INPUT TYPE="SUBMIT" VALUE=" Ok ">
> </CENTER>
> </TD>
> </TR>
> </TABLE>
> </FORM>
> </BODY></HTML>
> ======================================================================
> ERROR: test_folderMove (Products.CMFCore.tests.test_PortalFolder.PortalFolderTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test_PortalFolder.py", line 197, in test_folderMove
> File "/home/guillaum/writable-cvs/Zope/lib/python/Products/ZCatalog/ZCatalog.py", line 486, in uniqueValuesFor
> return self._catalog.uniqueValuesFor(name)
> File "/home/guillaum/writable-cvs/Zope/lib/python/Products/ZCatalog/Catalog.py", line 396, in uniqueValuesFor
> return self.indexes[name].uniqueValues()
> KeyError: id
> ----------------------------------------------------------------------
> Ran 239 tests in 15.298s
>
> FAILED (errors=2)
>
> ======================================================================
> OVERALL FAILED (total errors=2)
>
> --
> Florent Guillaume, Nuxeo (Paris, France)
> +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
>
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://lists.zope.org/mailman/listinfo/zope-coders
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com