Commit 38bbcd13 authored by Vincent Pelletier's avatar Vincent Pelletier

Add some traceback informations in class/accessor generation code.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45534 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc88811a
......@@ -53,7 +53,9 @@ class PropertySheet(Folder):
"""
Create a new accessor holder from the Property Sheet
"""
accessor_holder = AccessorHolderType(self.getId())
my_id = self.getId()
__traceback_info__ = my_id
accessor_holder = AccessorHolderType(my_id)
self.applyOnAccessorHolder(accessor_holder, expression_context, portal)
......@@ -183,6 +185,7 @@ class PropertySheet(Folder):
property_definition_list.append(property_definition)
for property_definition in property_definition_list:
__traceback_info__ = property_definition
try:
property_definition.applyOnAccessorHolder(accessor_holder,
expression_context,
......
......@@ -266,6 +266,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
- mro after:
erp5.portal_type.XXX, *new_bases_fetched_from_ZODB
"""
__traceback_info__ = cls.__name__
# Do not load the class again if it has already been loaded
if not cls.__isghost__:
return
......
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