Sounds good Andrea, you can also consider simply rejecting the filename in
the event of conflict (and asking the user to rename the file).
--
Jody

Jody Garnett


On Sun, Jun 1, 2014 at 6:19 AM, Andrea Aime <[email protected]>
wrote:

> On Sat, May 31, 2014 at 4:05 PM, Jody Garnett <[email protected]>
> wrote:
>
>> Sorry I assumed we would only let them edit the middle bit, was just
>> thinking that SLD could be our wrapper.
>>
>> Still either way works ... so back on tract:
>>
>> a) can we fix rename?
>> b) can we get down to a single file (either embed SLD, our use SLD as a
>> wrapper)
>>
>
> I would go for a) since I'd need this fix for the stable series, and I had
> made a proposal:
> * rename the sld file as we rename the xml file (as the style name changes)
> * append random numbers between 0 and 1000 to the file name if the target
> file name is already in use (it may happen if we start from a legacy data
> dir, since the file xml and sld names might be out of synch)
>
> Cheers
> Andrea
>
> --
> ==
> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
> for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to