# HG changeset patch # User Sylvain Thénault # Date 1311691806 -7200 # Node ID e5ba5de1d48537a5de3c74843e43fe9eabe457cf # Parent 0010dde5352a4bc3bf86649e06740df32a8b43d0 [datafeed] case insensitive etype. Closes #1877014 diff -r 0010dde5352a -r e5ba5de1d485 sobjects/parsers.py --- a/sobjects/parsers.py Tue Jul 26 16:50:02 2011 +0200 +++ b/sobjects/parsers.py Tue Jul 26 16:50:06 2011 +0200 @@ -247,7 +247,7 @@ except ValueError: return url + '?' + self._cw.build_url_params(**params) try: - etype = self._cw.vreg.case_insensitive_etypes[etype] + etype = self._cw.vreg.case_insensitive_etypes[etype.lower()] except KeyError: return url + '?' + self._cw.build_url_params(**params) if add_relations: diff -r 0010dde5352a -r e5ba5de1d485 sobjects/test/unittest_parsers.py --- a/sobjects/test/unittest_parsers.py Tue Jul 26 16:50:02 2011 +0200 +++ b/sobjects/test/unittest_parsers.py Tue Jul 26 16:50:06 2011 +0200 @@ -145,6 +145,8 @@ def test_complete_url(self): dfsource = self.repo.sources_by_uri['myfeed'] parser = dfsource._get_parser(self.session) + self.assertEqual(parser.complete_url('http://www.cubicweb.org/CWUser'), + 'http://www.cubicweb.org/CWUser?relation=tags-object&relation=in_group-subject&relation=in_state-subject&relation=use_email-subject&vid=xml') self.assertEqual(parser.complete_url('http://www.cubicweb.org/cwuser'), 'http://www.cubicweb.org/cwuser?relation=tags-object&relation=in_group-subject&relation=in_state-subject&relation=use_email-subject&vid=xml') self.assertEqual(parser.complete_url('http://www.cubicweb.org/cwuser?vid=rdf&relation=hop'),