Seite 1 von 1

redirect reload cache?

Verfasst: Mittwoch 4. Februar 2009, 14:54
von muli
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 :?:

Verfasst: Samstag 28. März 2009, 20:12
von pagenotfound.de
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