server/sources/native.py
changeset 3399 2b84f4adb6f8
parent 3240 8604a15995d1
child 3503 06bced8edddf
--- a/server/sources/native.py	Wed Sep 23 10:19:35 2009 +0200
+++ b/server/sources/native.py	Wed Sep 23 10:20:51 2009 +0200
@@ -531,7 +531,7 @@
         if extid is not None:
             assert isinstance(extid, str)
             extid = b64encode(extid)
-        attrs = {'type': entity.id, 'eid': entity.eid, 'extid': extid,
+        attrs = {'type': entity.__regid__, 'eid': entity.eid, 'extid': extid,
                  'source': source.uri, 'mtime': datetime.now()}
         session.system_sql(self.sqlgen.insert('entities', attrs), attrs)