10
10
from office365 .sharepoint .fields .lookup_value import FieldLookupValue
11
11
from office365 .sharepoint .fields .multi_lookup_value import FieldMultiLookupValue
12
12
from office365 .sharepoint .likes .liked_by_information import LikedByInformation
13
+ from office365 .sharepoint .listitems .compliance_info import ListItemComplianceInfo
13
14
from office365 .sharepoint .listitems .form_update_value import ListItemFormUpdateValue
14
15
from office365 .sharepoint .listitems .version import ListItemVersion
15
16
from office365 .sharepoint .permissions .securable_object import SecurableObject
@@ -350,6 +351,8 @@ def field_values(self):
350
351
@property
351
352
def comments_disabled (self ):
352
353
"""
354
+ Indicates whether comments for this item are disabled or not.
355
+
353
356
:rtype: bool or None
354
357
"""
355
358
return self .properties .get ("CommentsDisabled" , None )
@@ -358,6 +361,7 @@ def comments_disabled(self):
358
361
def file_system_object_type (self ):
359
362
"""
360
363
Gets a value that specifies whether the list item is a file or a list folder.
364
+
361
365
:rtype: str or None
362
366
"""
363
367
return self .properties .get ("FileSystemObjectType" , None )
@@ -366,15 +370,19 @@ def file_system_object_type(self):
366
370
def id (self ):
367
371
"""
368
372
Gets a value that specifies the list item identifier.
373
+
369
374
:rtype: int
370
375
"""
371
376
return self .properties .get ("Id" , None )
372
377
378
+ @property
379
+ def compliance_info (self ):
380
+ return self .properties .get ("ComplianceInfo" , ListItemComplianceInfo ())
381
+
373
382
@property
374
383
def liked_by_information (self ):
375
384
"""
376
385
Gets a value that specifies the list item identifier.
377
- :rtype: LikedByInformation
378
386
"""
379
387
return self .properties .get ("LikedByInformation" ,
380
388
LikedByInformation (self .context ,
@@ -392,6 +400,7 @@ def get_property(self, name, default_value=None):
392
400
property_mapping = {
393
401
"AttachmentFiles" : self .attachment_files ,
394
402
"ContentType" : self .content_type ,
403
+ "ComplianceInfo" : self .compliance_info ,
395
404
"EffectiveBasePermissions" : self .effective_base_permissions ,
396
405
"LikedByInformation" : self .liked_by_information ,
397
406
"ParentList" : self .parent_list ,
0 commit comments