remove prints

This commit is contained in:
KatKatKateryna
2023-09-07 05:23:15 +01:00
parent 1cfad1ab47
commit 239ca78102
5 changed files with 23 additions and 24 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class DataStorage:
latestActionUnits: str = ""
def __init__(self):
print("hello")
#print("hello")
#self.streamsToFollow.append(("https://speckle.xyz/streams/17b0b76d13/branches/random_tests", "", "09a0f3e41a"))
self.transformsCatalog = ["Convert Raster Elevation to a 3d Mesh",
"Set Raster as a Texture for the Elevation Layer",
+2 -2
View File
@@ -64,12 +64,12 @@ class LogWidget(QWidget):
# overriding the mouseReleaseEvent method
def mouseReleaseEvent(self, event):
print("Mouse Release Event")
#print("Mouse Release Event")
self.hide()
#self.parentWidget.hideError()
def hide(self):
print("___HIDE LOG WIDGET")
#print("___HIDE LOG WIDGET")
self.setGeometry(0, 0, 0, 0)
+9 -9
View File
@@ -276,14 +276,14 @@ class SpeckleQGISDialog(QtWidgets.QDockWidget, FORM_CLASS):
def setupOnFirstLoad(self, plugin):
try:
print("setupOnFirstLoad")
#print("setupOnFirstLoad")
self.msgLog.sendMessage.connect(self.addMsg)
self.setMapping.clicked.connect(self.showMappingDialog)
print("before")
print(self.reportBtn)
print(self.msgLog)
#print("before")
#print(self.reportBtn)
#print(self.msgLog)
self.reportBtn.clicked.connect(self.msgLog.showReport)
print("after")
#print("after")
self.streams_add_button.clicked.connect( plugin.onStreamAddButtonClicked )
self.commit_web_view.clicked.connect( lambda: plugin.openUrl(constructCommitURL(plugin.active_stream, plugin.active_branch.id, plugin.active_commit.id)) )
@@ -495,7 +495,7 @@ class SpeckleQGISDialog(QtWidgets.QDockWidget, FORM_CLASS):
def populateSavedLayerDropdown(self, plugin):
try:
print(self.dataStorage.saved_layers)
#print(self.dataStorage.saved_layers)
if not self: return
self.layersWidget.clear()
@@ -715,11 +715,11 @@ class SpeckleQGISDialog(QtWidgets.QDockWidget, FORM_CLASS):
# set index to current (if added from URL)
if plugin.active_commit is not None and plugin.active_commit in branch.commits.items:
print("set index to current (if added from URL) ")
print(plugin.active_commit)
#print("set index to current (if added from URL) ")
#print(plugin.active_commit)
self.commitDropdown.setCurrentText(f"{plugin.active_commit.id}"+ " | " + f"{plugin.active_commit.sourceApplication}" + " | " + f"{plugin.active_commit.message}")
else: #overwrite active commit if plugin.active_commit is None:
print("set index to 1st")
#print("set index to 1st")
plugin.active_commit = branch.commits.items[0]
else:
plugin.active_commit = None
+2 -3
View File
@@ -18,7 +18,6 @@ def logToUser(msg: str, func=None, level: int = 2, plugin = None, url = "", blue
msg = addLevelSymbol(msg, level)
if func is not None:
msg += "::" + str(func)
if dockwidget is None: return
new_msg = splitTextIntoLines(msg)
@@ -39,7 +38,7 @@ def displayUserMsg(msg: str, func=None, level: int = 2):
except Exception as e: print(e)
def createWindow(msg_old: str, func=None, level: int = 2):
print("Create window")
#print("Create window")
window = None
try:
# https://www.techwithtim.net/tutorials/pyqt5-tutorial/messageboxes/
@@ -69,7 +68,7 @@ def createWindow(msg_old: str, func=None, level: int = 2):
window.setText(str(msg + "\n" + str(func)))
else:
window.setText(str(msg))
print(window)
#print(window)
except Exception as e: print(e)
return window
+9 -9
View File
@@ -92,7 +92,7 @@ class AddStreamModalDialog(QtWidgets.QWidget, FORM_CLASS):
streams = []
branch = None
commit = None
print("_____ onSearchClicked___")
#print("_____ onSearchClicked___")
if "http" in query and len(query.split("/")) >= 3: # URL
sw = StreamWrapper(query)
stream = sw.get_client().stream.get(id = sw.stream_id, branch_limit = 100, commit_limit = 100)
@@ -100,27 +100,27 @@ class AddStreamModalDialog(QtWidgets.QWidget, FORM_CLASS):
streams = [stream]
if "/branches/" in query:
print("branches")
#print("branches")
branch_name = query.split("/branches/")[len(query.split("/branches/"))-1].split("/")[0].split("?")[0].split("&")[0].split("@")[0]
print(branch_name)
print(stream)
print(len(stream.branches.items))
#print(branch_name)
#print(stream)
#print(len(stream.branches.items))
for br in stream.branches.items:
name = urllib.parse.quote(br.name)
print(name)
#print(name)
if name == branch_name:
branch = br
break
elif "/commits/" in query:
print("commits")
#print("commits")
commit_id = query.split("/commits/")[len(query.split("/commits/"))-1].split("/")[0].split("?")[0].split("&")[0].split("@")[0]
for br in stream.branches.items:
for com in br.commits.items:
if com.id == commit_id:
branch = br
commit = com
print(branch)
print(commit)
#print(branch)
#print(commit)
break
elif isinstance(stream, Exception):
print(stream)