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,7 +318,12 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
for interface in interface_list:
classImplements(klass, interface)
klass.generatePortalTypeAccessors(site)
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)
except Exception:
import traceback; traceback.print_exc()
finally:
......
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