diff -r 5d4a943695d1 -r 18aec79ec3a3 server/sources/__init__.py --- a/server/sources/__init__.py Mon Aug 03 09:37:13 2009 +0200 +++ b/server/sources/__init__.py Mon Aug 03 10:50:57 2009 +0200 @@ -325,7 +325,7 @@ This method must return the an Entity instance representation of this entity. """ - entity = self.repo.vreg.etype_class(etype)(session, None) + entity = self.repo.vreg['etypes'].etype_class(etype)(session) entity.set_eid(eid) return entity