app/soc/views/models/role.py
changeset 624 811f50717bea
parent 620 e74e0b74625f
child 646 860e17e5118f
equal deleted inserted replaced
623:01757248f7c3 624:811f50717bea
    20 __authors__ = [
    20 __authors__ = [
    21     '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21     '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    22   ]
    22   ]
    23 
    23 
    24 
    24 
    25 from google.appengine.api import users
       
    26 
       
    27 from django import forms
    25 from django import forms
    28 from django import http
       
    29 from django.utils.translation import ugettext_lazy
    26 from django.utils.translation import ugettext_lazy
    30 
    27 
    31 from soc.models import request as request_model
       
    32 from soc.logic import dicts
    28 from soc.logic import dicts
    33 from soc.logic.models import request as request_logic
       
    34 from soc.logic.models import user as user_logic
    29 from soc.logic.models import user as user_logic
    35 from soc.views import helper
    30 from soc.views import helper
    36 from soc.views import out_of_band
    31 from soc.views import out_of_band
    37 from soc.views.helper import access
    32 from soc.views.helper import access
    38 from soc.views.helper import redirects
    33 from soc.views.helper import redirects
   110     content = helper.lists.getListContent(request, params, user_logic.logic)
   105     content = helper.lists.getListContent(request, params, user_logic.logic)
   111     contents = [content]
   106     contents = [content]
   112 
   107 
   113     return self._list(request, params, contents, page_name)
   108     return self._list(request, params, contents, page_name)
   114 
   109 
   115   def getDjangoURLPatterns(self):
   110   def getDjangoURLPatterns(self, params=None):
   116     """See base.View.getDjangoURLPatterns().
   111     """See base.View.getDjangoURLPatterns().
   117     """
   112     """
   118 
   113 
   119     default_patterns = self._params['django_patterns_defaults']
   114     default_patterns = self._params['django_patterns_defaults']
   120     default_patterns += [
   115     default_patterns += [