test/data/views.py
changeset 8366 6599f69bb846
parent 5424 8ecbcbff9777
equal deleted inserted replaced
8365:51c390500c63 8366:6599f69bb846
    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'