diff -r d84b0176452c -r 2b84f4adb6f8 server/sources/native.py --- 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)