Discussion:
[Erp5-dev] Error on creating new module (ValueError: No such content type: Base Type)
Chetan Kumar
2009-10-16 17:08:30 UTC
Permalink
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
Muhamad Reza
2009-10-16 17:32:41 UTC
Permalink
Please Update your ERP5's. Restart your server. and then "recreate your
business template"
Post by Chetan Kumar
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
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
-------------
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
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
exodream - beyond a dream
Everyone has rights to get what they expect.

----Free Software is better than Open Source----
Why ? See www.gnu.org/philosophy/free-software-for-freedom.html

Join Free Software Foundation at
https://my.fsf.org/associate/support_freedom/join_fsf?
Take all of advantages by Joining FSF. Join Now !!

i n f i n i t y . s o l u t i o n (www.infi-nity.com) - pt. vikasa infinity
anugrah
bsd city sektor 14 - ruko golden madrid g/9 - tangerang 15321 - indonesia
t: +62 (21) 5316 4796 f: +62 (21) 5316 4797 m:+62 816 956207
Contact me at + 62 878 3229 5036
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20091017/198e6cf1/attachment.htm>
Loading...