Skip to content

Commit

Permalink
One more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 14, 2024
1 parent 440270a commit ec77b43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libqfieldsync/offliners.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
QgsOfflineEditing,
QgsProject,
QgsRectangle,
QgsVectorDataProvider,
QgsVectorLayer,
edit,
)
Expand Down Expand Up @@ -273,6 +274,9 @@ def convert_to_offline_layer(
print(
f"Layer supports editing: {new_layer.supportsEditing() if hasattr(new_layer, 'supportsEditing') else 'NA'}"
)
print(
f"Layer has editing capabilities: {new_layer.dataProvider().capabilities() & QgsVectorDataProvider.EditingCapabilities}"
)
print(f"Layer edit buffer: {new_layer.editBuffer()}")
print(
f"Transaction mode: {new_layer.project().transactionMode() if new_layer.project() else 'not activated'}"
Expand Down

0 comments on commit ec77b43

Please sign in to comment.