Skip to content

Commit

Permalink
Pre 3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 14, 2024
1 parent 2860da1 commit 598c202
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libqfieldsync/offliners.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ def convert_to_offline_layer(
)

print(f"Layer data provider: {new_layer.dataProvider()}")
print(f"Layer supports editing: {new_layer.supportsEditing()}")
print(
f"Layer supports editing: {new_layer.supportsEditing() if hasattr(new_layer, 'supportsEditing') else 'NA'}"
)
print(f"Layer edit buffer: {new_layer.editBuffer()}")
print(f"Transaction mode: {new_layer.project().transactionMode()}")
with edit(new_layer):
Expand Down

0 comments on commit 598c202

Please sign in to comment.