author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Thu, 09 Jun 2011 12:27:35 +0200 | |
branch | stable |
changeset 7480 | 97a1768bbbaa |
parent 7477 | 3d64867f1019 |
child 7481 | 23ae090fc6a4 |
child 7485 | a18dac758150 |
--- a/sobjects/parsers.py Thu Jun 09 12:20:57 2011 +0200 +++ b/sobjects/parsers.py Thu Jun 09 12:27:35 2011 +0200 @@ -352,7 +352,7 @@ itemurl = item['cwuri'] + '?vid=xml' if add_relations: for rtype, role, _ in self.source.mapping.get(item['cwtype'], ()): - itemurl += '&relation=%s_%s' % (rtype, role) + itemurl += '&relation=%s-%s' % (rtype, role) item_rels = list(self.parse(itemurl)) assert len(item_rels) == 1 return item_rels[0]