Skip to content

Commit a665d8c

Browse files
committed
Merge branch 'develop'
2 parents a9dbdc2 + 6f8d1c1 commit a665d8c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

LiveObjects/Connection.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,23 @@ def getParameter(self,name):
204204

205205
def addToPayload(self, name, val):
206206
self.__payload[self.__value][name] = val
207+
208+
def setObjectAsPayload(self, val):
209+
self.__payload[self.__value] = val
210+
211+
def addModel(self, model):
212+
self.__payload["model"] = model
213+
214+
def addTag(self, tag):
215+
if not "tags" in self.__payload:
216+
self.__payload["tags"]=[]
217+
self.__payload["tags"].append(tag)
218+
219+
def addTags(self, tags):
220+
if not "tags" in self.__payload:
221+
self.__payload["tags"]=[]
222+
for tag in tags:
223+
self.__payload["tags"].append(tag)
207224

208225
def sendData(self):
209226
if self.quit:

0 commit comments

Comments
 (0)