equal
deleted
inserted
replaced
7 """ |
7 """ |
8 __docformat__ = "restructuredtext en" |
8 __docformat__ = "restructuredtext en" |
9 _ = unicode |
9 _ = unicode |
10 |
10 |
11 from cubicweb.appobject import objectify_selector |
11 from cubicweb.appobject import objectify_selector |
12 from cubicweb.selectors import (EntitySelector, |
12 from cubicweb.selectors import (EntitySelector, yes, |
13 one_line_rset, two_lines_rset, one_etype_rset, relation_possible, |
13 one_line_rset, two_lines_rset, one_etype_rset, relation_possible, |
14 nonempty_rset, non_final_entity, |
14 nonempty_rset, non_final_entity, |
15 authenticated_user, match_user_groups, match_search_state, |
15 authenticated_user, match_user_groups, match_search_state, |
16 has_permission, has_add_permission, |
16 has_permission, has_add_permission, |
17 ) |
17 ) |
361 __select__ = match_user_groups('users','managers') |
361 __select__ = match_user_groups('users','managers') |
362 title = _('info') |
362 title = _('info') |
363 order = 30 |
363 order = 30 |
364 |
364 |
365 |
365 |
|
366 class PoweredByAction(Action): |
|
367 id = 'poweredby' |
|
368 __select__ = yes() |
|
369 |
|
370 category = 'footer' |
|
371 order = 3 |
|
372 title = _('powered by CubicWeb') |
|
373 |
|
374 def url(self): |
|
375 return 'http://www.cubicweb.org' |
|
376 |
|
377 |
366 from logilab.common.deprecation import class_moved |
378 from logilab.common.deprecation import class_moved |
367 from cubicweb.web.views.bookmark import FollowAction |
379 from cubicweb.web.views.bookmark import FollowAction |
368 FollowAction = class_moved(FollowAction) |
380 FollowAction = class_moved(FollowAction) |
369 |
381 |
370 ## default actions ui configuration ########################################### |
382 ## default actions ui configuration ########################################### |