Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
with edit(layer)
raises an error if the commit fails
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8ab69e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool feature!
Just added the example to the cookbook: qgis/QGIS-Documentation@a51243b#diff-97b5c8468b99fafa1c77d39e2960b3c4
8ab69e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @elpaso
I slightly modified it. I wasn't sure about the :func:
with edit(layer)
code. Can we add a :code:with edit(layer)
or similar?The previous version was not accurate because edit is actually an object and not a function, but that will not help the reader to get the concept so I thought it's best to mention it as a complete statement.
8ab69e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-kuhn there is a :code: role for inline code but I don't know if it will be properly formatted, you can try and see what happens.