On 8/9/07, Marcos Sánchez Provencio <[EMAIL PROTECTED]> wrote: > It seems to be related to the fact that the connection is opened only > once. is it possible to force reopening database connections? I am going > to try using clone().
Clone makes a deep copy of the object, so it is not useful in your case. Try to put the string in quotes (no double quotes, just two single quotes), ie: self.capa.filteritem=''escala'' Umberto > > El jue, 09-08-2007 a las 11:21 +0200, Marcos Sánchez Provencio escribió: > > Good morning (in Spain). This is my first post to the list. > > > > I have set up a django app that uses mapscript to serve maps (not using > > http://code.djangoproject.com/wiki/GeoDjango whatsoever). > > > > I have a shp file with several layers of detail (wind predictions, > > aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter > > to show only the level of desired detail. > > > > If I put > > FILTERITEM escala > > FILTER "16" > > in a mapfile, it works as expected. > > > > but > > > > self.capa.filteritem='escala' > > self.capa.setFilter('16') > > does not. > > > > Any hint why? >
