Skip to content

Commit

Permalink
Python - Use camelcase convention for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Sep 5, 2022
1 parent 9c0b73a commit 9c9f5a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cadastre/dialogs/parcelle_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def export_as_pdf(self, key):
return

# Check if PDF must be exported for a third party or not
for_third_party = self.cbForThirdParty.isChecked()
for_third_party = self.combo_for_third_party.isChecked()

if self.feature:
comptecommunal = CadastreCommon.getCompteCommunalFromParcelleId(
Expand Down
4 changes: 2 additions & 2 deletions cadastre/dialogs/search_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def export_proprietaire(self):

# If export are for third-party persons
# we need to remove sensitive data
for_third_party = self.cbForThirdParty.isChecked()
for_third_party = self.combo_for_third_party.isChecked()

qex = CadastreExport(
QgsProject.instance(), layer, 'proprietaire', cc,
Expand Down Expand Up @@ -1268,7 +1268,7 @@ def exportParcelle(self, key):

# If export are for third-party persons
# we need to remove sensitive data
for_third_party = self.cbForThirdParty.isChecked()
for_third_party = self.combo_for_third_party.isChecked()
qex = CadastreExport(
QgsProject.instance(), layer, 'parcelle',
compte_communal, feature['geo_parcelle'],
Expand Down
2 changes: 1 addition & 1 deletion cadastre/forms/cadastre_parcelle_form.ui
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QCheckBox" name="cbForThirdParty">
<widget class="QCheckBox" name="combo_for_third_party">
<property name="toolTip">
<string>Lorsque cette case est cochée, les dates et lieux de naissance des propriétaires ne sont pas exportés dans les relevés PDF.</string>
</property>
Expand Down
2 changes: 1 addition & 1 deletion cadastre/forms/cadastre_search_form.ui
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QCheckBox" name="cbForThirdParty">
<widget class="QCheckBox" name="combo_for_third_party">
<property name="toolTip">
<string>Lorsque cette case est cochée, les dates et lieux de naissance des propriétaires ne sont pas exportés dans les relevés PDF.</string>
</property>
Expand Down

0 comments on commit 9c9f5a0

Please sign in to comment.