Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 321af352c0 |
@@ -510,13 +510,13 @@ class SpeckleGIS:
|
||||
stream = validateStream(stream, self.dockwidget)
|
||||
print(stream)
|
||||
if not isinstance(stream, Stream):
|
||||
logToUser(f"Stream invalid", level=2, plugin=self.dockwidget)
|
||||
logToUser(f"Speckle Project invalid", level=2, plugin=self.dockwidget)
|
||||
return
|
||||
|
||||
branch = validateBranch(stream, branchName, False, self.dockwidget)
|
||||
branchId = branch.id
|
||||
if branch == None:
|
||||
logToUser(f"Branch invalid", level=2, plugin=self.dockwidget)
|
||||
logToUser(f"Speckle Model invalid", level=2, plugin=self.dockwidget)
|
||||
return
|
||||
|
||||
transport = validateTransport(client, streamId)
|
||||
|
||||
@@ -86,7 +86,7 @@ def validateStream(stream: Stream, dockwidget) -> Union[Stream, None]:
|
||||
return None
|
||||
|
||||
if stream.branches is None:
|
||||
logToUser("Stream has no branches", level=1, plugin=dockwidget)
|
||||
logToUser("Speckle Project has no Models", level=1, plugin=dockwidget)
|
||||
return None
|
||||
return stream
|
||||
except Exception as e:
|
||||
|
||||
@@ -106,7 +106,7 @@ class SpeckleGISDialog(SpeckleGISDialog_UI):
|
||||
self.streamList.addItems(
|
||||
[
|
||||
(
|
||||
f"Stream not accessible - {stream[0].stream_id}"
|
||||
f"Speckle Project not accessible - {stream[0].stream_id}"
|
||||
if stream[1] is None
|
||||
or isinstance(stream[1], SpeckleException)
|
||||
else f"{stream[1].name}, {stream[1].id} | {stream[0].stream_url.split('/streams')[0].split('/projects')[0]}"
|
||||
@@ -115,7 +115,7 @@ class SpeckleGISDialog(SpeckleGISDialog_UI):
|
||||
)
|
||||
if len(plugin.current_streams) == 0:
|
||||
self.streamList.addItems([""])
|
||||
self.streamList.addItems(["Create New Stream"])
|
||||
self.streamList.addItems(["Create New Project"])
|
||||
set_project_streams(plugin)
|
||||
index = self.streamList.currentIndex()
|
||||
if index == -1:
|
||||
|
||||
Reference in New Issue
Block a user