equal
deleted
inserted
replaced
7 __docformat__ = "restructuredtext en" |
7 __docformat__ = "restructuredtext en" |
8 |
8 |
9 from itertools import chain |
9 from itertools import chain |
10 from os.path import join |
10 from os.path import join |
11 from bisect import bisect_right |
11 from bisect import bisect_right |
12 |
12 from datetime import date |
13 from mx.DateTime import strptime, today |
|
14 |
13 |
15 from logilab.common.changelog import ChangeLog |
14 from logilab.common.changelog import ChangeLog |
16 from logilab.mtconverter import CHARSET_DECL_RGX |
15 from logilab.mtconverter import CHARSET_DECL_RGX |
17 |
16 |
18 from cubicweb.selectors import match_form_params |
17 from cubicweb.selectors import match_form_params |
19 from cubicweb.view import StartupView |
18 from cubicweb.view import StartupView |
|
19 from cubicweb.utils import strptime |
20 from cubicweb.common.uilib import rest_publish |
20 from cubicweb.common.uilib import rest_publish |
21 from cubicweb.web import NotFound |
21 from cubicweb.web import NotFound |
22 |
22 |
23 _ = unicode |
23 _ = unicode |
24 |
24 |
205 w(unicode(line, encoding)) |
205 w(unicode(line, encoding)) |
206 for entry in cl.entries: |
206 for entry in cl.entries: |
207 if entry.date: |
207 if entry.date: |
208 date = strptime(entry.date, '%Y-%m-%d') |
208 date = strptime(entry.date, '%Y-%m-%d') |
209 else: |
209 else: |
210 date = today() |
210 date = date.today() |
211 messages = [] |
211 messages = [] |
212 for msglines, submsgs in entry.messages: |
212 for msglines, submsgs in entry.messages: |
213 msgstr = unicode(' '.join(l.strip() for l in msglines), encoding) |
213 msgstr = unicode(' '.join(l.strip() for l in msglines), encoding) |
214 msgstr += u'\n\n' |
214 msgstr += u'\n\n' |
215 for submsglines in submsgs: |
215 for submsglines in submsgs: |