equal
deleted
inserted
replaced
8 self.execute('SET F2 filed_under F1 WHERE F1 eid %(f1)s, F2 eid %(f2)s', |
8 self.execute('SET F2 filed_under F1 WHERE F1 eid %(f1)s, F2 eid %(f2)s', |
9 {'f1' : f1.eid, 'f2' : f2.eid}) |
9 {'f1' : f1.eid, 'f2' : f2.eid}) |
10 self.commit() |
10 self.commit() |
11 childrset = self.execute('Folder F WHERE F eid %s' % f2.eid) |
11 childrset = self.execute('Folder F WHERE F eid %s' % f2.eid) |
12 self.assertEquals(childrset.get_entity(0,0).view('breadcrumbs'), |
12 self.assertEquals(childrset.get_entity(0,0).view('breadcrumbs'), |
13 '<a href="http://testing.fr/cubicweb/folder/715" title="">chi&ld</a>') |
13 '<a href="http://testing.fr/cubicweb/folder/%s" title="">chi&ld</a>' % f1.eid) |
14 ibc = self.vreg['components'].select('breadcrumbs', self.request(), rset=childrset) |
14 ibc = self.vreg['components'].select('breadcrumbs', self.request(), rset=childrset) |
15 self.assertEquals(ibc.render(), |
15 self.assertEquals(ibc.render(), |
16 """<span id="breadcrumbs" class="pathbar"> > <a href="http://testing.fr/cubicweb/Folder">folder_plural</a> > <a href="http://testing.fr/cubicweb/folder/714" title="">par&ent</a> >  |
16 """<span id="breadcrumbs" class="pathbar"> > <a href="http://testing.fr/cubicweb/Folder">folder_plural</a> > <a href="http://testing.fr/cubicweb/folder/%s" title="">par&ent</a> >  |
17 chi&ld</span>""") |
17 chi&ld</span>""" % f2.eid) |