def get_group_urls(self):
     _urls = []
     for action in self.allowed_actions:
         view_method_name = 'view_%s' % action
         _urls.append(
             url(
                 r'^%s/' % action,
                 PluginGroupEndpoint.as_view(view=getattr(
                     self, view_method_name), ),
             ))
     return _urls
Exemplo n.º 2
0
 def get_group_urls(self):
     _urls = []
     for action in self.allowed_actions:
         view_method_name = 'view_%s' % action
         _urls.append(
             url(r'^%s/' % action,
                 PluginGroupEndpoint.as_view(
                     view=getattr(self, view_method_name),
                 ),
             )
         )
     return _urls