Class: QgsVectorLayerUndoPassthroughCommand¶
Undo command for vector layer in transaction group mode.
Class Hierarchy¶
Base classes¶
Base class for undo commands within a   | 
|
Subclasses¶
Undo command for adding attri to a vector layer in transaction group.  | 
|
Undo command for adding a feature to a vector layer in transaction group mode.  | 
|
Undo command for changing attr value from a vector layer in transaction group.  | 
|
Undo command for changing attributes’ values from a vector layer in transaction group.  | 
|
Undo command for changing feature geometry from a vector layer in transaction group.  | 
|
Undo command for deleting attri of a vector layer in transaction group.  | 
|
Undo command for deleting features from a vector layer in transaction group.  | 
|
Undo command for deleting attri of a vector layer in transaction group.  | 
|
Undo command for running a specific sql query in transaction group.  | 
Methods
Returns the error message or an empty string if there's none.  | 
|
Returns error status  | 
|
Rollback command, release savepoint or set error status save point must be set prior to call error satus should be   | 
|
Set error flag and append "failed" to text  | 
|
Sets the error message.  | 
|
Set the command savepoint or set error status.  | 
- class qgis.core.QgsVectorLayerUndoPassthroughCommand[source]¶
 Bases:
QgsVectorLayerUndoCommand- __init__(buffer: QgsVectorLayerEditBuffer | None, text: str | None, autocreate: bool = True)
 Constructor for QgsVectorLayerUndoPassthroughCommand
- Parameters:
 buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer
text (Optional[str]) – text associated with command
autocreate (bool = True) – flag allowing to automatically create a savepoint if necessary
- errorMessage(self) str[source]¶
 Returns the error message or an empty string if there’s none.
- Return type:
 str
- rollBackToSavePoint(self) bool[source]¶
 Rollback command, release savepoint or set error status save point must be set prior to call error satus should be
Falseprior to call- Return type:
 bool
- setErrorMessage(self, errorMessage: str | None)[source]¶
 Sets the error message.
- Parameters:
 errorMessage (Optional[str])
- setSavePoint(self, savePointId: str | None = '') bool[source]¶
 Set the command savepoint or set error status. Error satus should be
Falseprior to call. If the savepoint given in parameter is empty, then a new one is created if none is currently available in the transaction.- Parameters:
 savePointId (Optional[str] = '')
- Return type:
 bool