[Testbot] Plone 5.0 - Python 2.7 - Build # 3125 - Still failing! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Tue Aug 26 03:32:27 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 3125 - Still Failing!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/3125/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.app.referenceablebehavior
Branch: refs/heads/master
Date: 2014-08-26T01:15:36+02:00
Author: Gil Forcada (gforcada) <gforcada at gnome.org>
Commit: https://github.com/plone/plone.app.referenceablebehavior/commit/ec469a7ea301d0b5fd33791d6dc6d10ffdc93ac3

Rename .txt to .rst

Files changed:
A plone/app/referenceablebehavior/referenceable.rst
A plone/app/referenceablebehavior/uidcatalog.rst
M plone/app/referenceablebehavior/tests/test_doctest.py
D plone/app/referenceablebehavior/referenceable.txt
D plone/app/referenceablebehavior/uidcatalog.txt

diff --git a/plone/app/referenceablebehavior/referenceable.rst b/plone/app/referenceablebehavior/referenceable.rst
new file mode 100644
index 0000000..9e5cd39
--- /dev/null
+++ b/plone/app/referenceablebehavior/referenceable.rst
@@ -0,0 +1,181 @@
+Referenceable behavior
+======================
+
+Archetypes base classes are Referenceable. To be able to link
+dexterity content types from archetypes content types you need
+to activate that behavior
+
+So first lets create a new dexterity content type
+
+    >>> from plone.dexterity.fti import DexterityFTI
+    >>> fti = DexterityFTI('referenceable_type')
+    >>> fti.behaviors = ('plone.app.dexterity.behaviors.metadata.IDublinCore',
+    ...                  'plone.app.referenceablebehavior.referenceable.IReferenceable')
+    >>> self.portal.portal_types._setObject('referenceable_type', fti)
+    'referenceable_type'
+    >>> schema = fti.lookupSchema()
+
+If we access the site as an admin TTW::
+
+    >>> from Products.Five.testbrowser import Browser
+    >>> browser = Browser()
+    >>> browser.handleErrors = False
+    >>> self.app.acl_users.userFolderAddUser('root', 'secret', ['Manager'], [])
+    >>> browser.addHeader('Authorization', 'Basic root:secret')
+
+We can see this type in the addable types at the root of the site::
+
+    >>> browser.open("http://nohost/plone/folder_factories")
+    >>> "referenceable_type" in browser.contents
+    True
+    >>> browser.getControl("referenceable_type").click()
+    >>> browser.getControl("Add").click()
+    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "My Object"
+    >>> browser.getControl(name="form.widgets.IDublinCore.description").value = "Lorem ipsum"
+    >>> browser.getControl(name="form.buttons.save").click()
+    >>> browser.url
+    'http://nohost/plone/referenceable_type/view'
+
+Now lets check that we have uuid stuff
+
+    >>> item = self.portal.referenceable_type
+    >>> from plone.app.referenceablebehavior.referenceable import IReferenceable
+    >>> IReferenceable.providedBy(item)
+    True
+    >>> from plone.uuid.interfaces import IAttributeUUID
+    >>> IAttributeUUID.providedBy(item)
+    True
+    >>> from plone.uuid.interfaces import ATTRIBUTE_NAME
+    >>> uuid = getattr(item, ATTRIBUTE_NAME, None)
+    >>> uuid is not None
+    True
+
+Now create an archetype content object
+
+    >>> browser.open("http://nohost/plone/createObject?type_name=Document")
+    >>> browser.getControl('Title').value= "archetype page"
+    >>> browser.getControl('Save').click()
+
+Now add the dexterity content as reference in archetype page
+
+It seems there is no way to use related items with functionnal tests
+###    >>> browser.getLink('Edit').click()
+
+    >>> archetypes = getattr(portal,'archetype-page')
+    >>> dexterity = getattr(portal,'referenceable_type')
+    >>> from plone.uuid.interfaces import IUUID
+    >>> uuid = IUUID(dexterity)
+    >>> archetypes.setRelatedItems([uuid])
+    >>> archetypes.reindexObject()
+    >>> archetypes.getRelatedItems()
+    [<Item at /plone/referenceable_type>]
+
+A dexterity could be adapted to Archetypes IReferenceable
+
+    >>> from Products.Archetypes.interfaces import referenceable
+    >>> referenceable_dexterity = referenceable.IReferenceable(dexterity)
+    >>> referenceable_dexterity.isReferenceable
+    1
+    >>> referenceable_dexterity.reference_url()
+    'http://nohost/plone/reference_catalog/lookupObject?uuid=...'
+    >>> referenceable_dexterity.UID() == uuid
+    True
+    >>> IUUID(referenceable_dexterity) == uuid
+    True
+    >>> referenceable_dexterity.getId()
+    'referenceable_type'
+
+Now create another dexterity referenceable object
+
+    >>> browser.open("http://nohost/plone/folder_factories")
+    >>> browser.getControl("referenceable_type").click()
+    >>> browser.getControl("Add").click()
+    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "Another Object"
+    >>> browser.getControl(name="form.widgets.IDublinCore.description").value = "Lorem ipsum"
+    >>> browser.getControl(name="form.buttons.save").click()
+    >>> browser.url
+    'http://nohost/plone/referenceable_type-1/view'
+    >>> dexterity1 = getattr(portal,'referenceable_type-1')
+    >>> referenceable_dexterity1 = referenceable.IReferenceable(dexterity1)
+
+
+    >>> reference_catalog = self.portal.reference_catalog
+    >>> 'relatesTo' in [b.relationship for b in reference_catalog()]
+    True
+    >>> 'isReferencing' in [b.relationship for b in reference_catalog()]
+    False
+
+We can add references between archetypes and dexterity content
+
+    >>> archetypes.addReference(referenceable_dexterity1,
+    ...                         'isReferencing')
+    <Reference... rel:isReferencing>
+    >>> 'relatesTo' in [b.relationship for b in reference_catalog()]
+    True
+    >>> 'isReferencing' in [b.relationship for b in reference_catalog()]
+    True
+
+We can get back references from dexterity content
+
+    >>> referenceable_dexterity1.getBRelationships()
+    ['isReferencing']
+    >>> referenceable_dexterity1.getBRefs()
+    [<ATDocument at /plone/archetype-page>]
+
+We can add references between archetypes and dexterity content
+
+    >>> referenceable_dexterity1.hasRelationshipTo(archetypes)
+    False
+    >>> referenceable_dexterity1.getRelationships()
+    []
+    >>> referenceable_dexterity1.getRefs()
+    []
+    >>> referenceable_dexterity1.addReference(archetypes,
+    ...                         'isReferencing')
+    <Reference... rel:isReferencing>
+    >>> referenceable_dexterity1.hasRelationshipTo(archetypes)
+    True
+    >>> referenceable_dexterity1.getRelationships()
+    ['isReferencing']
+    >>> referenceable_dexterity1.getRefs()
+    [<ATDocument at /plone/archetype-page>]
+    >>> referenceable_dexterity1.getReferenceImpl()
+    [<Reference ... rel:isReferencing>]
+    >>> referenceable_dexterity1.getBackReferenceImpl()
+    [<Reference ... rel:isReferencing>]
+
+We can get back references from archetypes to dexterity content
+
+    >>> archetypes.getBRelationships()
+    ['isReferencing']
+    >>> archetypes.getBRefs()
+    [<Item at /plone/referenceable_type-1>]
+
+We can add references between dexterity objects
+
+    >>> referenceable_dexterity1.hasRelationshipTo(referenceable_dexterity)
+    False
+    >>> referenceable_dexterity1.addReference(referenceable_dexterity,
+    ...                         'isReferencing')
+    <Reference... rel:isReferencing>
+    >>> referenceable_dexterity1.hasRelationshipTo(referenceable_dexterity)
+    True
+    >>> referenceable_dexterity1.getRelationships()
+    ['isReferencing']
+    >>> referenceable_dexterity1.getRefs()
+    [<ATDocument at /plone/archetype-page>, <Item at /plone/referenceable_type>]
+
+We can remove references
+
+    >>> referenceable_dexterity1.deleteReference(referenceable_dexterity)
+    >>> referenceable_dexterity1.hasRelationshipTo(referenceable_dexterity)
+    False
+    >>> referenceable_dexterity1.getRelationships()
+    ['isReferencing']
+    >>> referenceable_dexterity1.getRefs()
+    [<ATDocument at /plone/archetype-page>]
+    >>> referenceable_dexterity1.deleteReferences()
+    >>> referenceable_dexterity1.getRelationships()
+    []
+    >>> referenceable_dexterity1.getRefs()
+    []
diff --git a/plone/app/referenceablebehavior/referenceable.txt b/plone/app/referenceablebehavior/referenceable.txt
deleted file mode 100644
index 9e5cd39..0000000
--- a/plone/app/referenceablebehavior/referenceable.txt
+++ /dev/null
@@ -1,181 +0,0 @@
-Referenceable behavior
-======================
-
-Archetypes base classes are Referenceable. To be able to link
-dexterity content types from archetypes content types you need
-to activate that behavior
-
-So first lets create a new dexterity content type
-
-    >>> from plone.dexterity.fti import DexterityFTI
-    >>> fti = DexterityFTI('referenceable_type')
-    >>> fti.behaviors = ('plone.app.dexterity.behaviors.metadata.IDublinCore',
-    ...                  'plone.app.referenceablebehavior.referenceable.IReferenceable')
-    >>> self.portal.portal_types._setObject('referenceable_type', fti)
-    'referenceable_type'
-    >>> schema = fti.lookupSchema()
-
-If we access the site as an admin TTW::
-
-    >>> from Products.Five.testbrowser import Browser
-    >>> browser = Browser()
-    >>> browser.handleErrors = False
-    >>> self.app.acl_users.userFolderAddUser('root', 'secret', ['Manager'], [])
-    >>> browser.addHeader('Authorization', 'Basic root:secret')
-
-We can see this type in the addable types at the root of the site::
-
-    >>> browser.open("http://nohost/plone/folder_factories")
-    >>> "referenceable_type" in browser.contents
-    True
-    >>> browser.getControl("referenceable_type").click()
-    >>> browser.getControl("Add").click()
-    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "My Object"
-    >>> browser.getControl(name="form.widgets.IDublinCore.description").value = "Lorem ipsum"
-    >>> browser.getControl(name="form.buttons.save").click()
-    >>> browser.url
-    'http://nohost/plone/referenceable_type/view'
-
-Now lets check that we have uuid stuff
-
-    >>> item = self.portal.referenceable_type
-    >>> from plone.app.referenceablebehavior.referenceable import IReferenceable
-    >>> IReferenceable.providedBy(item)
-    True
-    >>> from plone.uuid.interfaces import IAttributeUUID
-    >>> IAttributeUUID.providedBy(item)
-    True
-    >>> from plone.uuid.interfaces import ATTRIBUTE_NAME
-    >>> uuid = getattr(item, ATTRIBUTE_NAME, None)
-    >>> uuid is not None
-    True
-
-Now create an archetype content object
-
-    >>> browser.open("http://nohost/plone/createObject?type_name=Document")
-    >>> browser.getControl('Title').value= "archetype page"
-    >>> browser.getControl('Save').click()
-
-Now add the dexterity content as reference in archetype page
-
-It seems there is no way to use related items with functionnal tests
-###    >>> browser.getLink('Edit').click()
-
-    >>> archetypes = getattr(portal,'archetype-page')
-    >>> dexterity = getattr(portal,'referenceable_type')
-    >>> from plone.uuid.interfaces import IUUID
-    >>> uuid = IUUID(dexterity)
-    >>> archetypes.setRelatedItems([uuid])
-    >>> archetypes.reindexObject()
-    >>> archetypes.getRelatedItems()
-    [<Item at /plone/referenceable_type>]
-
-A dexterity could be adapted to Archetypes IReferenceable
-
-    >>> from Products.Archetypes.interfaces import referenceable
-    >>> referenceable_dexterity = referenceable.IReferenceable(dexterity)
-    >>> referenceable_dexterity.isReferenceable
-    1
-    >>> referenceable_dexterity.reference_url()
-    'http://nohost/plone/reference_catalog/lookupObject?uuid=...'
-    >>> referenceable_dexterity.UID() == uuid
-    True
-    >>> IUUID(referenceable_dexterity) == uuid
-    True
-    >>> referenceable_dexterity.getId()
-    'referenceable_type'
-
-Now create another dexterity referenceable object
-
-    >>> browser.open("http://nohost/plone/folder_factories")
-    >>> browser.getControl("referenceable_type").click()
-    >>> browser.getControl("Add").click()
-    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "Another Object"
-    >>> browser.getControl(name="form.widgets.IDublinCore.description").value = "Lorem ipsum"
-    >>> browser.getControl(name="form.buttons.save").click()
-    >>> browser.url
-    'http://nohost/plone/referenceable_type-1/view'
-    >>> dexterity1 = getattr(portal,'referenceable_type-1')
-    >>> referenceable_dexterity1 = referenceable.IReferenceable(dexterity1)
-
-
-    >>> reference_catalog = self.portal.reference_catalog
-    >>> 'relatesTo' in [b.relationship for b in reference_catalog()]
-    True
-    >>> 'isReferencing' in [b.relationship for b in reference_catalog()]
-    False
-
-We can add references between archetypes and dexterity content
-
-    >>> archetypes.addReference(referenceable_dexterity1,
-    ...                         'isReferencing')
-    <Reference... rel:isReferencing>
-    >>> 'relatesTo' in [b.relationship for b in reference_catalog()]
-    True
-    >>> 'isReferencing' in [b.relationship for b in reference_catalog()]
-    True
-
-We can get back references from dexterity content
-
-    >>> referenceable_dexterity1.getBRelationships()
-    ['isReferencing']
-    >>> referenceable_dexterity1.getBRefs()
-    [<ATDocument at /plone/archetype-page>]
-
-We can add references between archetypes and dexterity content
-
-    >>> referenceable_dexterity1.hasRelationshipTo(archetypes)
-    False
-    >>> referenceable_dexterity1.getRelationships()
-    []
-    >>> referenceable_dexterity1.getRefs()
-    []
-    >>> referenceable_dexterity1.addReference(archetypes,
-    ...                         'isReferencing')
-    <Reference... rel:isReferencing>
-    >>> referenceable_dexterity1.hasRelationshipTo(archetypes)
-    True
-    >>> referenceable_dexterity1.getRelationships()
-    ['isReferencing']
-    >>> referenceable_dexterity1.getRefs()
-    [<ATDocument at /plone/archetype-page>]
-    >>> referenceable_dexterity1.getReferenceImpl()
-    [<Reference ... rel:isReferencing>]
-    >>> referenceable_dexterity1.getBackReferenceImpl()
-    [<Reference ... rel:isReferencing>]
-
-We can get back references from archetypes to dexterity content
-
-    >>> archetypes.getBRelationships()
-    ['isReferencing']
-    >>> archetypes.getBRefs()
-    [<Item at /plone/referenceable_type-1>]
-
-We can add references between dexterity objects
-
-    >>> referenceable_dexterity1.hasRelationshipTo(referenceable_dexterity)
-    False
-    >>> referenceable_dexterity1.addReference(referenceable_dexterity,
-    ...                         'isReferencing')
-    <Reference... rel:isReferencing>
-    >>> referenceable_dexterity1.hasRelationshipTo(referenceable_dexterity)
-    True
-    >>> referenceable_dexterity1.getRelationships()
-    ['isReferencing']
-    >>> referenceable_dexterity1.getRefs()
-    [<ATDocument at /plone/archetype-page>, <Item at /plone/referenceable_type>]
-
-We can remove references
-
-    >>> referenceable_dexterity1.deleteReference(referenceable_dexterity)
-    >>> referenceable_dexterity1.hasRelationshipTo(referenceable_dexterity)
-    False
-    >>> referenceable_dexterity1.getRelationships()
-    ['isReferencing']
-    >>> referenceable_dexterity1.getRefs()
-    [<ATDocument at /plone/archetype-page>]
-    >>> referenceable_dexterity1.deleteReferences()
-    >>> referenceable_dexterity1.getRelationships()
-    []
-    >>> referenceable_dexterity1.getRefs()
-    []
diff --git a/plone/app/referenceablebehavior/tests/test_doctest.py b/plone/app/referenceablebehavior/tests/test_doctest.py
index b20edd8..5fc497c 100644
--- a/plone/app/referenceablebehavior/tests/test_doctest.py
+++ b/plone/app/referenceablebehavior/tests/test_doctest.py
@@ -9,11 +9,11 @@ def test_suite():
     return unittest.TestSuite([
 
         ztc.FunctionalDocFileSuite(
-            'referenceable.txt', package='plone.app.referenceablebehavior',
+            'referenceable.rst', package='plone.app.referenceablebehavior',
             test_class=ReferenceableFunctionalTestCase),
 
         ztc.FunctionalDocFileSuite(
-            'uidcatalog.txt', package='plone.app.referenceablebehavior',
+            'uidcatalog.rst', package='plone.app.referenceablebehavior',
             test_class=ReferenceableFunctionalTestCase),
 
         ])
diff --git a/plone/app/referenceablebehavior/uidcatalog.rst b/plone/app/referenceablebehavior/uidcatalog.rst
new file mode 100644
index 0000000..0b60c3b
--- /dev/null
+++ b/plone/app/referenceablebehavior/uidcatalog.rst
@@ -0,0 +1,95 @@
+Indexation in UIDCatalog
+========================
+
+So first lets create a new dexterity content type
+
+    >>> from plone.dexterity.fti import DexterityFTI
+    >>> fti = DexterityFTI('referenceable_type')
+    >>> fti.behaviors = ('plone.app.dexterity.behaviors.metadata.IDublinCore',
+    ...                  'plone.app.referenceablebehavior.referenceable.IReferenceable')
+    >>> self.portal.portal_types._setObject('referenceable_type', fti)
+    'referenceable_type'
+    >>> schema = fti.lookupSchema()
+
+If we access the site as an admin TTW::
+
+    >>> from Products.Five.testbrowser import Browser
+    >>> browser = Browser()
+    >>> browser.handleErrors = False
+    >>> self.app.acl_users.userFolderAddUser('root', 'secret', ['Manager'], [])
+    >>> browser.addHeader('Authorization', 'Basic root:secret')
+
+We can see this type in the addable types at the root of the site::
+
+    >>> browser.open("http://nohost/plone/folder_factories")
+    >>> "referenceable_type" in browser.contents
+    True
+    >>> browser.getControl("referenceable_type").click()
+    >>> browser.getControl("Add").click()
+    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "My Object"
+    >>> browser.getControl(name="form.widgets.IDublinCore.description").value = "Lorem ipsum"
+    >>> browser.getControl(name="form.buttons.save").click()
+    >>> browser.url
+    'http://nohost/plone/referenceable_type/view'
+
+First check it is indexed in the uid_catalog
+
+    >>> from plone.uuid.interfaces import IUUID
+    >>> uuid = IUUID(portal.referenceable_type)
+    >>> uid_catalog = self.portal.uid_catalog
+    >>> results = uid_catalog(UID=uuid)
+    >>> len(results)
+    1
+    >>> results[0].Title
+    'My Object'
+
+Now let's see that if we modified the object, the catalog is updated
+
+    >>> browser.getLink('Edit').click()
+    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "My Modified Object"
+    >>> browser.getControl(name="form.buttons.save").click()
+    >>> 'Changes saved' in browser.contents
+    True
+
+    >>> results = uid_catalog(UID=uuid)
+    >>> results[0].Title
+    'My Modified Object'
+
+If we move the object, the catalog gets updated
+
+    >>> results[0].getPath()
+    '/plone/referenceable_type'
+
+    >>> browser.getLink("Cut").click()
+
+    >>> browser.open("http://nohost/plone")
+    >>> browser.getLink("Add new").click()
+    >>> browser.getControl("Folder").selected = True
+    >>> browser.getControl("Add").click()
+    >>> browser.getControl("Title").value = "My Folder"
+    >>> browser.getControl("Save").click()
+    >>> browser.getLink("Paste").click()
+
+    >>> results = uid_catalog(UID=uuid)
+    >>> results[0].getPath()
+    '/plone/my-folder/referenceable_type'
+
+If we try to delete, there is a confirmation screen. If we cancel, the item is
+not deleted and the item remains catalogued.
+
+    >>> browser.open("http://nohost/plone/my-folder")
+    >>> browser.getLink("My Modified Object").click()
+    >>> browser.getLink(url='http://nohost/plone/my-folder/referenceable_type/delete_confirmation').click()
+    >>> browser.getControl('Cancel').click()
+    >>> results = uid_catalog(UID=uuid)
+    >>> len(results)
+    1
+
+However, if we confirm the deletion, the item is removed and the UID is no
+longer catalogued.
+
+    >>> browser.getLink(url='http://nohost/plone/my-folder/referenceable_type/delete_confirmation').click()
+    >>> browser.getControl('Delete').click()
+    >>> results = uid_catalog(UID=uuid)
+    >>> len(results)
+    0
diff --git a/plone/app/referenceablebehavior/uidcatalog.txt b/plone/app/referenceablebehavior/uidcatalog.txt
deleted file mode 100644
index 0b60c3b..0000000
--- a/plone/app/referenceablebehavior/uidcatalog.txt
+++ /dev/null
@@ -1,95 +0,0 @@
-Indexation in UIDCatalog
-========================
-
-So first lets create a new dexterity content type
-
-    >>> from plone.dexterity.fti import DexterityFTI
-    >>> fti = DexterityFTI('referenceable_type')
-    >>> fti.behaviors = ('plone.app.dexterity.behaviors.metadata.IDublinCore',
-    ...                  'plone.app.referenceablebehavior.referenceable.IReferenceable')
-    >>> self.portal.portal_types._setObject('referenceable_type', fti)
-    'referenceable_type'
-    >>> schema = fti.lookupSchema()
-
-If we access the site as an admin TTW::
-
-    >>> from Products.Five.testbrowser import Browser
-    >>> browser = Browser()
-    >>> browser.handleErrors = False
-    >>> self.app.acl_users.userFolderAddUser('root', 'secret', ['Manager'], [])
-    >>> browser.addHeader('Authorization', 'Basic root:secret')
-
-We can see this type in the addable types at the root of the site::
-
-    >>> browser.open("http://nohost/plone/folder_factories")
-    >>> "referenceable_type" in browser.contents
-    True
-    >>> browser.getControl("referenceable_type").click()
-    >>> browser.getControl("Add").click()
-    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "My Object"
-    >>> browser.getControl(name="form.widgets.IDublinCore.description").value = "Lorem ipsum"
-    >>> browser.getControl(name="form.buttons.save").click()
-    >>> browser.url
-    'http://nohost/plone/referenceable_type/view'
-
-First check it is indexed in the uid_catalog
-
-    >>> from plone.uuid.interfaces import IUUID
-    >>> uuid = IUUID(portal.referenceable_type)
-    >>> uid_catalog = self.portal.uid_catalog
-    >>> results = uid_catalog(UID=uuid)
-    >>> len(results)
-    1
-    >>> results[0].Title
-    'My Object'
-
-Now let's see that if we modified the object, the catalog is updated
-
-    >>> browser.getLink('Edit').click()
-    >>> browser.getControl(name="form.widgets.IDublinCore.title").value = "My Modified Object"
-    >>> browser.getControl(name="form.buttons.save").click()
-    >>> 'Changes saved' in browser.contents
-    True
-
-    >>> results = uid_catalog(UID=uuid)
-    >>> results[0].Title
-    'My Modified Object'
-
-If we move the object, the catalog gets updated
-
-    >>> results[0].getPath()
-    '/plone/referenceable_type'
-
-    >>> browser.getLink("Cut").click()
-
-    >>> browser.open("http://nohost/plone")
-    >>> browser.getLink("Add new").click()
-    >>> browser.getControl("Folder").selected = True
-    >>> browser.getControl("Add").click()
-    >>> browser.getControl("Title").value = "My Folder"
-    >>> browser.getControl("Save").click()
-    >>> browser.getLink("Paste").click()
-
-    >>> results = uid_catalog(UID=uuid)
-    >>> results[0].getPath()
-    '/plone/my-folder/referenceable_type'
-
-If we try to delete, there is a confirmation screen. If we cancel, the item is
-not deleted and the item remains catalogued.
-
-    >>> browser.open("http://nohost/plone/my-folder")
-    >>> browser.getLink("My Modified Object").click()
-    >>> browser.getLink(url='http://nohost/plone/my-folder/referenceable_type/delete_confirmation').click()
-    >>> browser.getControl('Cancel').click()
-    >>> results = uid_catalog(UID=uuid)
-    >>> len(results)
-    1
-
-However, if we confirm the deletion, the item is removed and the UID is no
-longer catalogued.
-
-    >>> browser.getLink(url='http://nohost/plone/my-folder/referenceable_type/delete_confirmation').click()
-    >>> browser.getControl('Delete').click()
-    >>> results = uid_catalog(UID=uuid)
-    >>> len(results)
-    0




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 23643 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140826/01f061f9/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 119022 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140826/01f061f9/attachment-0003.obj>


More information about the Testbot mailing list