[Qgis-developer] wrapping changeAttributeValue between begin and end EditCommand

Andrew McClure andrew at southweb.co.nz
Mon Mar 16 16:39:17 PDT 2015


+1 for this

I was unaware of the reason for the crashes on Undo I was seeing until this thread. Our approach in Telemetry Layer was to simply end the edit session and commit the changes programmatically denying the possibility of a user undo.  A more elegant approach would be welcomed.

On 17/03/2015, at 9:47 am, Matthias Kuhn <matthias at opengis.ch> wrote:

> 
> 
> On 03/16/2015 09:32 PM, Luigi Pirelli wrote:
>> I used a different approach attaching to end Editing action to do a
>> similar work.
>> The logic is, start editing, do modification, stop editing is
>> intercepted to save EditingBuffer and then roolback all modification.
>> Then process editing buffer to create values basing on a rule and them
>> I can add/change the modified records with a new editing session
>> without user interaction.
>> 
>> 
> It would be so nice to be able to be able to register a trigger that is
> executed to do this kind of things and data validation directly before
> it enters the edit buffer.
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150317/4da15cf0/attachment.html>


More information about the Qgis-developer mailing list