app/soc/views/models/role.py
changeset 543 280a1ac6bcc1
parent 542 7cc99461b64d
child 560 a32be584ee04
equal deleted inserted replaced
542:7cc99461b64d 543:280a1ac6bcc1
    31 from soc.models import request as request_model
    31 from soc.models import request as request_model
    32 from soc.logic import dicts
    32 from soc.logic import dicts
    33 from soc.logic.models import request as request_logic
    33 from soc.logic.models import request as request_logic
    34 from soc.logic.models import user as user_logic
    34 from soc.logic.models import user as user_logic
    35 from soc.views import helper
    35 from soc.views import helper
       
    36 from soc.views import out_of_band
    36 from soc.views.models import base
    37 from soc.views.models import base
    37 from soc.views.models import user as user_view
    38 from soc.views.models import user as user_view
    38 
    39 
    39 import soc.models.request
    40 import soc.models.request
    40 import soc.views.helper.widgets
    41 import soc.views.helper.widgets
   101 
   102 
   102     params = dicts.merge(params, new_params)
   103     params = dicts.merge(params, new_params)
   103 
   104 
   104     try:
   105     try:
   105       self.checkAccess('invite', request)
   106       self.checkAccess('invite', request)
   106     except soc.views.out_of_band.AccessViolationResponse, alt_response:
   107     except out_of_band.Error, error:
   107       return alt_response.response()
   108       return error.response(request)
   108 
   109 
   109     return user_view.list(request, page_name=page_name, params=params)
   110     return user_view.list(request, page_name=page_name, params=params)
   110 
   111 
   111   def promote(self, request, page_name=None, **kwargs):
   112   def promote(self, request, page_name=None, **kwargs):
   112     """Displays the promote to Role page.
   113     """Displays the promote to Role page.