nuxeo-localizer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nuxeo-localizer] Redirects from changeLanguageForm


From: Garikoitz Araolaza
Subject: [Nuxeo-localizer] Redirects from changeLanguageForm
Date: Fri, 05 Apr 2002 17:48:38 +0200

OK, I know... We only do requests and "feedbacks" ;-) Hopefully we can soon help a little bit with icon design and documentation too...


This is a feature request:

We'd like to control the redirect done by changeLanguage in Localizer.py

An example:

My user is in a folder called ShoppingCart where he came from somewhere else adding an article.

....../ShoppingCart/addItems?item:list=book&item:list=CD

If a user decides to use (as they usually do) the changeLanguageForm in this place, the items 'book' and 'CD' will be added again, as method changeLanguage returns the user to the HTTP_REFERRER

So, it would be nice to have this patch or a similar one in changeLanguage method:

def changeLanguage(self, REQUEST, RESPONSE, return_url=REQUEST['HTTP_REFERER']):
....
        RESPONSE.redirect(return_url)

changeLanguageForm should provide the proper value for return_url too:

<dtml-if return_url>
 <dtml-with "_[return_url].absolute_url()">
</dtml-if>

We would just have to create an string property in the ShoppingCart folder with the text 'ShoppingCart'


Is that a very particular interest request, or does anybody else find it useful too?

Gari

_______________________________________
Garikoitz Araolaza
Code&Syntax
address@hidden

BIC-Berrilan
Azitaingo Industrialdea
E-20600-EIBAR
Tel: +34 943 82 06 06





reply via email to

[Prev in Thread] Current Thread [Next in Thread]