redirect reload cache?

Django, Flask, Bottle, WSGI, CGI…
Antworten
muli
User
Beiträge: 18
Registriert: Montag 20. Oktober 2008, 07:54

Also ich führe auf meiner Seite ein pythonScript aus!

Ich will danach die gleiche Seite aber verändert laden.

Das mache ich so:

return context.REQUEST.RESPONSE.redirect("%s" %context.absolute_url())

Die Seite wird aber erst verändert angezeigt nachdem ich den Browser reload Knopf drücke oder den Browser cache lösche.
Wie kann ich das vermeiden?

muli :?:
Es gibt keine dummen Fragen, nur dumme Antworten!
pagenotfound.de
User
Beiträge: 3
Registriert: Samstag 28. März 2009, 20:08
Kontaktdaten:

Wenn du den FormController verwendest, benutze doch bitte:
setNextAction(self, action)
Set the default next action (this action can be overridden in portal_form_controller). setNextAction can be called either with a dictionary argument of the form {'action_type':action_type, 'args':args} or with a string of the form 'action_type:args'. Here action_type is a string (from form_controller.validActionTypes) and args is a string that will be passed to the constructor when generating an action object

Code: Alles auswählen

return state.setNextAction('redirect_to:string:view')
Gruß, Benjamin
Antworten