Re: redirect klappt nicht

Thomas Maßmann <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,

wird denn der redirect ausgeführt? Weil die Funktion xyz wird mit dem  
redirect nicht beendet. Die Ausgabe auf der Konsole ist also ok. Es  
fehlt nur das return.

HTH Thomas


Am 17.12.2008 um 11:45 schrieb T.Hinze:

> Hallo,
> ich habe ein Problem mit dem Versuch einen Redirect aus einer
> BrowserView-Methode heraus auszuführen.
>
> Ich lande beim Aufruf meiner Methode xyz() in selbiger und dort steht
> testweise
>
> def xyz(self):
>  self.request.response.redirect('xyz')
>  print 'redirect failed'
>
>
> Rufe ich also diese Methode auf, so erscheint mir in der Console der
> String 'redirect failed'. D.h. der redirect() wird ignoriert.
> Leider erschließt sich mir nicht warum?
>
> Übersehe ich denn etwas grundlegendes?
>
> th
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope

EDV-Beratung Thomas Maßmann
E-Mail: [email protected]
WWW: it-spir.it





_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.