Skip to content

Commit b3aad5f

Browse files
committed
addTag addTags and setObjectAsPayload
1 parent 378a7c5 commit b3aad5f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

LiveObjects/Connection.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,20 @@ 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 addTag(self, tag):
212+
if not "tags" in self.__payload:
213+
self.__payload["tags"]=[]
214+
self.__payload["tags"].append(tag)
215+
216+
def addTags(self, tags):
217+
if not "tags" in self.__payload:
218+
self.__payload["tags"]=[]
219+
for tag in tags:
220+
self.__payload["tags"].append(tag)
207221

208222
def sendData(self):
209223
if self.quit:

0 commit comments

Comments
 (0)