Commit ec95f322 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Initial import.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1337 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84249e89
from Globals import get_request
from Products.CMFCore.utils import getToolByName
def fixProductNames(self, REQUEST=None):
msg = ''
portal_types = getToolByName(self, 'portal_types')
for contentType in portal_types.listTypeInfo():
if hasattr(contentType, 'product'):
if contentType.product in ('ERP5', 'Coramy', 'Nexedi'):
msg += 'Change the Product Name of %s from %s to ERP5Type\n' % (contentType.getId(), contentType.product)
contentType.product = 'ERP5Type'
return msg
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