[Erp5-dev] Error on creating new module (ValueError: No such content type: Base Type)
Chetan Kumar
chetankumar at vsnl.net
Fri Oct 16 19:08:30 CEST 2009
Hi
This error is seen on typing to create a new module.
---------------------
------
2009-10-16T22:02:47 WARNING Script
(Python):/t/portal_skins/erp5_core/ERP5Site_createModule:10
DeprecationWarning: Please switch to the new format for typeinfo names
"product_id: type_id (meta_type)", the old spelling will disappear in
CMF 1.7
------
2009-10-16T22:02:47 ERROR Zope.SiteErrorLog
http://127.0.0.1:1080/t/ERP5Site_createModule
Traceback (most recent call last):
File
"/home/erp5/Work/SelfC/Devel/parts/zope2/lib/python/ZPublisher/Publish.py",
line 114, in publish
request, bind=1)
File
"/home/erp5/Work/SelfC/Devel/parts/zope2/lib/python/ZPublisher/mapply.py",
line 88, in mapply
if debug is not None: return debug(object,args,context)
File
"/home/erp5/Work/SelfC/Devel/parts/zope2/lib/python/ZPublisher/Publish.py",
line 40, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File
"/home/erp5/Work/SelfC/Devel/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__
return self._bindAndExec(args, kw, None)
File
"/home/erp5/Work/SelfC/Devel/parts/zope2/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File
"/home/erp5/Work/SelfC/Devel/parts/zope2/lib/python/Products/PythonScripts/PythonScript.py",
line 325, in _exec
result = f(*args, **kw)
File "Script (Python)", line 10, in ERP5Site_createModule
File
"/home/erp5/Work/SelfC/Devel/parts/products-erp5/ERP5Type/Tool/TypesTool.py",
line 124, in manage_addTypeInformation
type_info = self.newContent(id, 'Base Type')
File
"/home/erp5/Work/SelfC/Devel/parts/products-erp5/ERP5Type/Core/Folder.py",
line 460, in newContent
return FolderMixIn.newContent(self, *args, **kw)
File
"/home/erp5/Work/SelfC/Devel/parts/products-erp5/ERP5Type/Core/Folder.py",
line 170, in newContent
is_indexable=is_indexable
File
"/home/erp5/Work/SelfC/Devel/parts/cmf15/CMF/CMFCore/TypesTool.py", line
928, in constructContent
raise ValueError('No such content type: %s' % type_name)
ValueError: No such content type: Base Type
-------------
Line 124 of ERP5Type.Tool.TypesTool.py (in manage_addTypeInformation) is:
type_info = self.newContent(id, 'Base Type')
"Base Type" is not present from portal_types.
What needs to be updated to get out of this situation?
TIA
Chetan
More information about the Erp5-dev
mailing list