mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Added object manager samples to doc + fix Certificate.thum[b]print typo
This commit is contained in:
@@ -128,6 +128,26 @@ Output
|
||||
.. literalinclude:: samples_output\event_log_eventlog.txt
|
||||
|
||||
|
||||
.. _sample_object_manager:
|
||||
|
||||
Object manager
|
||||
""""""""""""""
|
||||
|
||||
.. literalinclude:: ..\..\samples\object_manager\object_manager.py
|
||||
|
||||
Output
|
||||
|
||||
.. literalinclude:: samples_output\object_manager_object_manager.txt
|
||||
|
||||
find objects
|
||||
''''''''''''
|
||||
|
||||
|
||||
.. literalinclude:: ..\..\samples\object_manager\findobj.py
|
||||
|
||||
Output
|
||||
|
||||
.. literalinclude:: samples_output\object_manager_findobj.txt
|
||||
|
||||
|
||||
.. _sample_wintrust:
|
||||
|
||||
@@ -12,7 +12,7 @@ The :class:`TaskService` is accessible via :py:attr:`windows.system.task_schedul
|
||||
|
||||
.. warning::
|
||||
|
||||
This API have not been tested on real case yet and may be subject to changes.
|
||||
This API have not been tested on real cases yet and may be subject to changes.
|
||||
|
||||
|
||||
TaskService
|
||||
|
||||
@@ -244,14 +244,14 @@ class Certificate(gdef.CERT_CONTEXT):
|
||||
return buffer[:size.value]
|
||||
|
||||
@property
|
||||
def thumprint(self):
|
||||
"""The thumprint of the certificate (which is the sha1 of the encoded cert).
|
||||
def thumbprint(self):
|
||||
"""The thumbprint of the certificate (which is the sha1 of the encoded cert).
|
||||
|
||||
Example:
|
||||
|
||||
>>> x
|
||||
<Certificate "YOLO2" serial="6f 1d 3e 7d d9 77 59 a9 4c 1c 53 dc 80 db 0c fe">
|
||||
>>> x.thumprint
|
||||
>>> x.thumbprint
|
||||
'E2 A2 DB 76 A1 DD 8E 70 0D C6 9F CB 71 CF 29 12 C6 D9 78 97'
|
||||
|
||||
:type: :class:`str`
|
||||
|
||||
Reference in New Issue
Block a user