app/soc/views/models/base.py
changeset 1349 d05a9bf08c11
parent 1342 f8056a197fb8
child 1357 3dd1507aa723
equal deleted inserted replaced
1348:8e3bd495729f 1349:d05a9bf08c11
    33 from soc.views import helper
    33 from soc.views import helper
    34 from soc.views import out_of_band
    34 from soc.views import out_of_band
    35 from soc.views.helper import decorators
    35 from soc.views.helper import decorators
    36 from soc.views.helper import forms
    36 from soc.views.helper import forms
    37 from soc.views.helper import redirects
    37 from soc.views.helper import redirects
       
    38 from soc.views.helper import responses
    38 from soc.views import sitemap
    39 from soc.views import sitemap
    39 
    40 
    40 import soc.logic
    41 import soc.logic
    41 import soc.logic.lists
    42 import soc.logic.lists
    42 import soc.views.helper.lists
    43 import soc.views.helper.lists
   621 
   622 
   622     context = {'json': json}
   623     context = {'json': json}
   623     template = 'soc/json.html'
   624     template = 'soc/json.html'
   624 
   625 
   625     response = responses.respond(request, template, context)
   626     response = responses.respond(request, template, context)
   626     # TODO IE7 seems to ignore the headers
   627     # if the browser supports HTTP/1.1
       
   628     # post-check and pre-check and no-store for IE7
       
   629     response['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
       
   630     # if the browser supports HTTP/1.0
   627     response['Pragma'] = 'no-cache'
   631     response['Pragma'] = 'no-cache'
   628     response['Cache-Control'] = 'no-cache, must-revalidate'
   632     
   629     return response
   633     return response
   630 
   634 
   631   def _editPost(self, request, entity, fields):
   635   def _editPost(self, request, entity, fields):
   632     """Performs any required processing on the entity to post its edit page.
   636     """Performs any required processing on the entity to post its edit page.
   633 
   637