I have s workflow script that moves an object to certain location when I
publish the object. the script is quite simple and it has a Manager
Proxy Role assigned at installation time with:
script.manage_proxy(roles=('Manager',))
I've wrote a test to verify the script works on certain dates as the
script crates a date based folder structure (eg /2007/09/03):
class TestWorkflow(JuliusLiteTestCase):
""" ensure workflow script works """
def _publish(self):
self.setRoles(['Manager', 'Member'])
self.workflow.doActionFor(self.news1, 'publish')
def afterSetUp(self):
self.workflow = self.portal.portal_workflow
self.folder.invokeFactory('News Item', 'news1')
self.news1 = getattr(self.folder, 'news1')
def testPublishNewsItem(self):
""" test creation of a news item """
self._publish()
...
but when I publish the object, this line:
destination.manage_pasteObjects(obj_parent.manage_cutObjects(object_id))
raises the following error:
raise CopyError, eNotSupported % escape(id)
any idea on how to workaround this?
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers