equal
deleted
inserted
replaced
13 from datetime import date |
13 from datetime import date |
14 |
14 |
15 from logilab.common.changelog import ChangeLog |
15 from logilab.common.changelog import ChangeLog |
16 from logilab.mtconverter import CHARSET_DECL_RGX |
16 from logilab.mtconverter import CHARSET_DECL_RGX |
17 |
17 |
18 from cubicweb.selectors import match_form_params |
18 from cubicweb.selectors import match_form_params, yes |
19 from cubicweb.view import StartupView |
19 from cubicweb.view import StartupView |
20 from cubicweb.utils import strptime, todate |
20 from cubicweb.utils import strptime, todate |
21 from cubicweb.common.uilib import rest_publish |
21 from cubicweb.common.uilib import rest_publish |
22 from cubicweb.web import NotFound |
22 from cubicweb.web import NotFound, action |
23 |
|
24 _ = unicode |
23 _ = unicode |
25 |
24 |
26 # table of content management ################################################# |
25 # table of content management ################################################# |
27 |
26 |
28 try: |
27 try: |
233 i += 1 |
232 i += 1 |
234 if i > self.maxentries: |
233 if i > self.maxentries: |
235 break |
234 break |
236 w('') # blank line |
235 w('') # blank line |
237 self.w(rest_publish(self, '\n'.join(restdata))) |
236 self.w(rest_publish(self, '\n'.join(restdata))) |
|
237 |
|
238 |
|
239 class ChangeLogAction(action.Action): |
|
240 id = 'changelog' |
|
241 __select__ = yes() |
|
242 |
|
243 category = 'footer' |
|
244 order = 1 |
|
245 title = ChangeLogView.title |
|
246 |
|
247 def url(self): |
|
248 return self.req.build_url('changelog') |
|
249 |
|
250 |
|
251 class AboutAction(action.Action): |
|
252 id = 'about' |
|
253 __select__ = yes() |
|
254 |
|
255 category = 'footer' |
|
256 order = 2 |
|
257 title = _('about this site') |
|
258 |
|
259 def url(self): |
|
260 return self.req.build_url('doc/about') |
|
261 |