[07:51] good morning === davidcalle_afk is now known as davidcalle [08:41] mhall119: wow, very nice :) [09:02] dholbach: do you want a second pair of eyes on the links bug? [09:02] davidcalle, I'll put together a minimal test case and let you know [09:02] thanks! [09:03] ok :à) [09:49] davidcalle, http://pad.ubuntu.com/oRcuTY5ZJ3 [09:49] sorry it took a bit longer to put it together [09:49] the test case is actually quite close to what I test on the live system, so I'm not quite sure yet what the issue is :) [10:07] * davidcalle looks [10:14] davidcalle, when I add some print() statements in article.rewrite_links(), it looks like the link is changed, but maybe it's not saved correctly? [10:14] dholbach: still branching pips... :p [10:14] sure sure, take your time [10:58] dholbach: that's weird [10:58] I think I'm getting closer [10:59] dholbach: looks like the self.html changed in replace_links is not the one used at the publication step [11:00] yep, I'm looking into that now [11:00] /o\ [11:19] davidcalle, ok, looks like that was it - I'll need to fix a few bits around it again, but I'm on the right track [11:19] thanks for your help [11:19] we arrived at the same conclusion, at the same time :-) [11:52] lunch time, bbiab [12:05] morning all [12:05] anybody having problems with wiki.ubuntu.com? [13:10] davidcalle, I pushed a bunch of changes the the links are now correct... a new problem I'm seeing now is a broken test and some escaped html, ie <body> [13:10] but I'll figure that out [13:10] dholbach: escaped html would suggest the doc is passed twice through the md->html function [13:13] I'll take a look, it could also be something in beautifulsoup(?) or the clean_html from djangocms_text_ckeditor.html we use [13:13] just wanted to let you know how things are going [13:18] ah, I know what it is - we prettify the HTML, so our regex in _remove_body_and_html_tags is broken :) [13:18] Oh right! [13:19] getting there :-D [13:25] dholbach: one thing I've noticed after pulling your branch, replaced links should start with a "/" [13:27] ok... I'll note this down [14:12] it was beautifulsoup's prettify :) [14:12] now the broken test [16:59] davidcalle, the last issue I'm chasing is that a second import (with same content) seems to result in a new publish cycle (which would break the translations dashboard as we discussed before) [16:59] I'm closer already, but haven't 100% figure it out yet :-/ [17:01] dholbach: bzr (well, git) status and only work on modified and new docs? (just throwing out the first idea that comes)