equal
deleted
inserted
replaced
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 from cubicweb.web.views import xmlrss |
18 from cubicweb.web.views import xmlrss |
19 xmlrss.RSSIconBox.visible = True |
19 xmlrss.RSSIconBox.visible = True |
|
20 |
|
21 |
|
22 from cubicweb.predicates import match_user_groups |
|
23 from cubicweb.server import Service |
|
24 |
|
25 |
|
26 class TestService(Service): |
|
27 __regid__ = 'test_service' |
|
28 __select__ = Service.__select__ & match_user_groups('managers') |
|
29 passed_here = [] |
|
30 |
|
31 def call(self, msg): |
|
32 self.passed_here.append(msg) |
|
33 return 'babar' |