app/soc/views/models/base.py
changeset 1331 e6fc2238bab0
parent 1326 237d0974654e
child 1339 c007dc7d00ca
equal deleted inserted replaced
1330:fa13d8b45594 1331:e6fc2238bab0
   581     json = simplejson.dumps(to_json)
   581     json = simplejson.dumps(to_json)
   582 
   582 
   583     context = {'json': json}
   583     context = {'json': json}
   584     template = 'soc/json.html'
   584     template = 'soc/json.html'
   585 
   585 
   586     return helper.responses.respond(request, template, context)
   586     response = responses.respond(request, template, context)
       
   587     # TODO IE7 seems to ignore the headers
       
   588     response['Pragma'] = 'no-cache'
       
   589     response['Cache-Control'] = 'no-cache, must-revalidate'
       
   590     return response
   587 
   591 
   588   def _editPost(self, request, entity, fields):
   592   def _editPost(self, request, entity, fields):
   589     """Performs any required processing on the entity to post its edit page.
   593     """Performs any required processing on the entity to post its edit page.
   590 
   594 
   591     Args:
   595     Args: