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): ...@@ -53,7 +53,9 @@ class PropertySheet(Folder):
""" """
Create a new accessor holder from the Property Sheet 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) self.applyOnAccessorHolder(accessor_holder, expression_context, portal)
...@@ -183,6 +185,7 @@ class PropertySheet(Folder): ...@@ -183,6 +185,7 @@ class PropertySheet(Folder):
property_definition_list.append(property_definition) property_definition_list.append(property_definition)
for property_definition in property_definition_list: for property_definition in property_definition_list:
__traceback_info__ = property_definition
try: try:
property_definition.applyOnAccessorHolder(accessor_holder, property_definition.applyOnAccessorHolder(accessor_holder,
expression_context, expression_context,
......
...@@ -266,6 +266,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder): ...@@ -266,6 +266,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
- mro after: - mro after:
erp5.portal_type.XXX, *new_bases_fetched_from_ZODB 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 # Do not load the class again if it has already been loaded
if not cls.__isghost__: if not cls.__isghost__:
return 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