Commit 5c1751a4 authored by Nicolas Dumazet's avatar Nicolas Dumazet

avoid creating doNothing methods for Base Types


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42911 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dac80eb4
...@@ -318,6 +318,11 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder): ...@@ -318,6 +318,11 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
for interface in interface_list: for interface in interface_list:
classImplements(klass, interface) classImplements(klass, interface)
if len(base_tuple) > 1:
# skip this during the early Base Type / Types Tool generation
# because they dont have accessors, and will mess up
# workflow methods. We KNOW that we will re-load this type
# anyway
klass.generatePortalTypeAccessors(site) klass.generatePortalTypeAccessors(site)
except Exception: except Exception:
import traceback; traceback.print_exc() import traceback; traceback.print_exc()
......
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