Commit 210166d1 authored by Ivan Tyagov's avatar Ivan Tyagov

portal_contributions tool is part of erp5_dms bt5. No need to create it manually.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14443 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7cfe7207
......@@ -121,22 +121,15 @@ class TestIngestion(ERP5TypeTestCase):
def createTools(self):
"""
Set up contribution tool and content type registry
NOTE: portal_contributions is not created yet
by ERP5Site bootstrap. This is why me must create it
here. We also delete it and recreate it in case
it was saved by a previous --save run of the test.
XXX - what about mimetype registry ?
Set up missing portal_mailin tool.
"""
# Delete and create portal_contributions
try:
self.portal._delObject('portal_contributions')
except AttributeError:
pass
addTool = self.portal.manage_addProduct['ERP5'].manage_addTool
addTool('ERP5 Contribution Tool', None)
#try:
# self.portal._delObject('portal_contributions')
#except AttributeError:
# pass
#addTool = self.portal.manage_addProduct['ERP5'].manage_addTool
#addTool('ERP5 Contribution Tool', None)
# Delete and create portal_mailin
try:
self.portal._delObject('portal_mailin')
......
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