app/soc/views/models/org_app.py
changeset 1506 b908d671624e
parent 1430 ff8cc6b15e6a
child 1533 50fb3a9b6615
equal deleted inserted replaced
1505:fd6dcb852688 1506:b908d671624e
   206 
   206 
   207     # use the standard JSON template to return our response
   207     # use the standard JSON template to return our response
   208     context = {'json': json}
   208     context = {'json': json}
   209     template = 'soc/json.html'
   209     template = 'soc/json.html'
   210 
   210 
   211     response = responses.respond(request, template, context)
   211     return responses.respond(request, template, context)
   212     
       
   213     # if the browser supports HTTP/1.1
       
   214     # post-check and pre-check and no-store for IE7
       
   215     response['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
       
   216     # if the browser supports HTTP/1.0
       
   217     response['Pragma'] = 'no-cache'
       
   218     
       
   219     return response
       
   220 
   212 
   221 
   213 
   222 view = View()
   214 view = View()
   223 
   215 
   224 admin = view.admin
   216 admin = view.admin