web/views/actions.py
branchstable
changeset 3495 438576c5b1d1
parent 3272 f46f2082468b
child 3503 06bced8edddf
child 3689 deb13e88e037
--- a/web/views/actions.py	Mon Sep 28 10:55:36 2009 +0200
+++ b/web/views/actions.py	Mon Sep 28 10:56:37 2009 +0200
@@ -9,7 +9,7 @@
 _ = unicode
 
 from cubicweb.appobject import objectify_selector
-from cubicweb.selectors import (EntitySelector,
+from cubicweb.selectors import (EntitySelector, yes,
     one_line_rset, two_lines_rset, one_etype_rset, relation_possible,
     nonempty_rset, non_final_entity,
     authenticated_user, match_user_groups, match_search_state,
@@ -359,6 +359,18 @@
     __select__ = match_user_groups('users','managers')
 
 
+class PoweredByAction(Action):
+    id = 'poweredby'
+    __select__ = yes()
+
+    category = 'footer'
+    order = 3
+    title = _('powered by CubicWeb')
+
+    def url(self):
+        return 'http://www.cubicweb.org'
+
+
 from logilab.common.deprecation import class_moved
 from cubicweb.web.views.bookmark import FollowAction
 FollowAction = class_moved(FollowAction)