server/sources/__init__.py
changeset 2650 18aec79ec3a3
parent 2627 d710278e0c1c
child 2719 6df328b47361
--- 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