app/soc/views/models/base.py
changeset 1098 e5c06755ecd8
parent 1035 04229d710ce9
child 1115 0a723ff3d27c
equal deleted inserted replaced
1097:1f7015b33a0c 1098:e5c06755ecd8
    22   '"Lennard de Rijk" <ljvderijk@gmail.com>',
    22   '"Lennard de Rijk" <ljvderijk@gmail.com>',
    23   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    23   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    24   ]
    24   ]
    25 
    25 
    26 
    26 
    27 import simplejson
       
    28 
       
    29 from django import http
    27 from django import http
       
    28 from django.utils import simplejson
    30 from django.utils.translation import ugettext
    29 from django.utils.translation import ugettext
    31 
    30 
    32 from soc.logic import dicts
    31 from soc.logic import dicts
    33 from soc.views import helper
    32 from soc.views import helper
    34 from soc.views import out_of_band
    33 from soc.views import out_of_band
   566       access_type : the name of the access type which should be checked
   565       access_type : the name of the access type which should be checked
   567       page_name: the page name displayed in templates as page and header title
   566       page_name: the page name displayed in templates as page and header title
   568       params: a dict with params for this View
   567       params: a dict with params for this View
   569     """
   568     """
   570 
   569 
   571     if not simplejson:
       
   572       raise Exception("Simplejson not installed")
       
   573 
       
   574     get_dict = request.GET
   570     get_dict = request.GET
   575 
   571 
   576     # scope_path is not required
   572     # scope_path is not required
   577     scope_path = get_dict.get('scope_path', None)
   573     scope_path = get_dict.get('scope_path', None)
   578     return_url = get_dict['continue']
   574     return_url = get_dict['continue']