No, the Set object has to be defined during the same request as the select, 
so you should either define it in a model file (as in the plugin_gmap 
example), or in the /plugin_openplayers/index function (where the select 
happens). Alternatively, you could define a function that does the work of 
/plugin_openplayers/index and put the function in a model file or in a 
module, and then call that function from /default/index after you define the 
Set there (note, if you put the function in a module, you must import it to 
use it, and in order to reference the request variables, you either have to 
pass them explicitly as an argument to the function, or your module has to 
import the 'current' object, and your module code can then reference 
current.request.vars).
 
Anthony

On Wednesday, July 20, 2011 5:52:08 AM UTC-4, Manuele wrote:

> On 20/07/2011 08:44, Manuele Pesenti wrote:
> >
> > ok, in this case I need to pass a db set that cannot be stored in
> > session (right?)... what's the right way to do that? 
>
> would it be the case to use tha "global" declaretion such as is 
> explained here for example? 
>
> http://effbot.org/pyfaq/how-do-you-set-a-global-variable-in-a-function.htm 
>
> >
> > thanks
> >
> >      Manuele 
>
>  

Reply via email to