sobjects/cwxmlparser.py
changeset 8900 010a59e12d89
parent 8748 f5027f8d2478
child 9474 dd96b877879d
--- a/sobjects/cwxmlparser.py	Tue Apr 23 15:16:36 2013 +0200
+++ b/sobjects/cwxmlparser.py	Tue Apr 23 15:33:50 2013 +0200
@@ -218,7 +218,7 @@
         return entity
 
     def process_relations(self, entity, rels):
-        etype = entity.__regid__
+        etype = entity.cw_etype
         for (rtype, role, action), rules in self.source.mapping.get(etype, {}).iteritems():
             try:
                 related_items = rels[role][rtype]