@@ -122,7 +122,7 @@ def labels(self):
122
122
def add_label (self , label , user = None ):
123
123
"""Add a label to an object.
124
124
125
- Each entry can have multible labels.
125
+ Each entry can have multiple labels.
126
126
127
127
Args:
128
128
label: Name of the label.
@@ -255,7 +255,7 @@ def remove_comment(self, comment_id):
255
255
return False
256
256
257
257
def get_comment (self , comment_id ):
258
- """Retrives a comment.
258
+ """Retrieves a comment.
259
259
260
260
Args:
261
261
comment_id: Id of the comment.
@@ -382,13 +382,16 @@ def genericattributes(self):
382
382
return relationship (self .GenericAttribute )
383
383
384
384
def add_attribute (self , name , value , ontology = None , user = None , description = None ):
385
- """Add a label to an object.
385
+ """Add a attribute to an object.
386
386
387
- Each entry can have multible labels .
387
+ Each entry can have multiple generic attributes .
388
388
389
389
Args:
390
- label: Name of the label.
391
- user: Optional user that adds the label (sketch.User).
390
+ name: Name of the attribute.
391
+ value: Value of the attribute.
392
+ ontology: Optional ontology of the attribute.
393
+ user: Optional user that adds the attribute (timesketch.models.user.User).
394
+ description: Optional description of the attribute.
392
395
"""
393
396
self .genericattributes .append (
394
397
self .GenericAttribute (
0 commit comments