--- a/entities/test/unittest_base.py Mon Feb 08 11:08:55 2010 +0100
+++ b/entities/test/unittest_base.py Mon Feb 08 12:01:15 2010 +0100
@@ -107,7 +107,7 @@
class MyUser(CWUser):
__implements__ = (IMileStone,)
self.vreg._loadedmods[__name__] = {}
- self.vreg.register_appobject_class(MyUser)
+ self.vreg.register(MyUser)
self.vreg['etypes'].initialization_completed()
MyUser_ = self.vreg['etypes'].etype_class('CWUser')
# a copy is done systematically
@@ -137,7 +137,7 @@
for etype in ('Company', 'Division', 'SubDivision'):
class Foo(AnyEntity):
__regid__ = etype
- self.vreg.register_appobject_class(Foo)
+ self.vreg.register(Foo)
eclass = self.select_eclass('SubDivision')
self.failUnless(eclass.__autogenerated__)
self.failIf(eclass is Foo)