MCPcopy Index your code
hub / github.com/O365/python-o365 / __init__

Method __init__

O365/drive.py:1010–1027  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1008 """ Photo Object. Inherits from Image but has more attributes """
1009
1010 def __init__(self, **kwargs):
1011 super().__init__(**kwargs)
1012 cloud_data = kwargs.get(self._cloud_data_key, {})
1013
1014 photo = cloud_data.get(self._cc('photo'), {})
1015
1016 taken = photo.get(self._cc('takenDateTime'), None)
1017 local_tz = self.protocol.timezone
1018 self.taken_datetime = parse(taken).astimezone(
1019 local_tz) if taken else None
1020 self.camera_make = photo.get(self._cc('cameraMake'), None)
1021 self.camera_model = photo.get(self._cc('cameraModel'), None)
1022 self.exposure_denominator = photo.get(self._cc('exposureDenominator'),
1023 None)
1024 self.exposure_numerator = photo.get(self._cc('exposureNumerator'), None)
1025 self.fnumber = photo.get(self._cc('fNumber'), None)
1026 self.focal_length = photo.get(self._cc('focalLength'), None)
1027 self.iso = photo.get(self._cc('iso'), None)
1028
1029
1030class Folder(DriveItem):

Callers

nothing calls this directly

Calls 3

_ccMethod · 0.80
__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected