summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2023-04-09 19:06:32 +0200
committerFrançois Andriot <[email protected]>2023-04-09 19:52:24 +0200
commit3cd0cbde8a3af86c8d72253e4da2a79e22cafee7 (patch)
treef0a79d1161dd1470b8a678ded493f8531387bc0d
parent2b9cf56a7279b00af540ba193f28c8be2c51915f (diff)
downloadkoffice-3cd0cbde8a3af86c8d72253e4da2a79e22cafee7.tar.gz
koffice-3cd0cbde8a3af86c8d72253e4da2a79e22cafee7.zip
Fix python3 indentationr14.1.0
Signed-off-by: François Andriot <[email protected]>
-rw-r--r--kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py6
-rw-r--r--kexi/plugins/scripting/scripts/exportxhtml/ExportXHTML.py6
-rwxr-xr-xkexi/plugins/scripting/scripts/importxhtml/ImportXHTML.py4
3 files changed, 8 insertions, 8 deletions
diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
index ca6a3f6b..8c6c431b 100644
--- a/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
+++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenterPluginKexiDB.py
@@ -185,10 +185,10 @@ class CopyCenterPlugin:
self.copierer.writeSuccess(record, 1)
else:
print("=> insert failed: %s" % self.kexidbconnection.lastError())
- self.copierer.writeFailed(record)
+ self.copierer.writeFailed(record)
#import time
- #time.sleep(1)
- return True
+ #time.sleep(1)
+ return True
def __init__(self, copycenter):
""" Constructor. """
diff --git a/kexi/plugins/scripting/scripts/exportxhtml/ExportXHTML.py b/kexi/plugins/scripting/scripts/exportxhtml/ExportXHTML.py
index eff0e636..2e5fa20e 100644
--- a/kexi/plugins/scripting/scripts/exportxhtml/ExportXHTML.py
+++ b/kexi/plugins/scripting/scripts/exportxhtml/ExportXHTML.py
@@ -147,13 +147,13 @@ class GuiApp:
raise Exception("Import of the Kross GUI module failed.")
self.dialog = gui.Dialog("Export XHTML")
- self.dialog.addLabel(self.dialog, "Export a table- or query-datasource to a XHTML-file.")
+ self.dialog.addLabel(self.dialog, "Export a table- or query-datasource to a XHTML-file.")
datasourceitems = self.datasource.getSources()
- self.datasourcelist = self.dialog.addList(self.dialog, "Datasource:", datasourceitems)
+ self.datasourcelist = self.dialog.addList(self.dialog, "Datasource:", datasourceitems)
styleitems = ["Plain", "Paper", "Blues"]
- self.stylelist = self.dialog.addList(self.dialog, "Style:", styleitems)
+ self.stylelist = self.dialog.addList(self.dialog, "Style:", styleitems)
#queryframe = Tkinter.Frame(frame)
#queryframe.pack()
diff --git a/kexi/plugins/scripting/scripts/importxhtml/ImportXHTML.py b/kexi/plugins/scripting/scripts/importxhtml/ImportXHTML.py
index 03a6772a..e9f33011 100755
--- a/kexi/plugins/scripting/scripts/importxhtml/ImportXHTML.py
+++ b/kexi/plugins/scripting/scripts/importxhtml/ImportXHTML.py
@@ -203,8 +203,8 @@ class KexiDBOutput:
""" Constructor. """
import kexiapp
keximainwindow = kexiapp.get("KexiAppMainWindow")
-
- try:
+
+ try:
self.connection = keximainwindow.getConnection()
except:
raise Exception("No connection established. Please open a project before.")