From: Marcin Koziej Date: Fri, 16 Nov 2012 09:25:11 +0000 (+0100) Subject: Merge branch 'edumed' of github.com:fnp/redakcja into edumed X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/dd0db2db471a6bb8e08ca74c683fbde6b35144a9?ds=inline Merge branch 'edumed' of github.com:fnp/redakcja into edumed --- dd0db2db471a6bb8e08ca74c683fbde6b35144a9 diff --cc apps/catalogue/management/edumed.py index 76d39649,9e90ba7d..c319132a --- a/apps/catalogue/management/edumed.py +++ b/apps/catalogue/management/edumed.py @@@ -258,15 -258,8 +258,12 @@@ dc_fixed = } +class NotFound(Exception): + pass + + def find_block(content, title_re, begin=-1, end=-1): title_re = re.compile(title_re, re.I | re.UNICODE) - ## print "looking for %s" % title_re.pattern - if title_re.pattern[0:6] == 'pomoce': - import pdb; pdb.set_trace() rb = -1 if begin < 0: begin = 0