undo_checkout()
Undoes a document checkout via DMS.UndoCheckOutDocument. Releases the lock
placed by checkout() without checking in any changes.
1. Signature
-
Sync
-
Async
ecm.dms.undo_checkout(
model: ECMDocumentModel | int,
object_type_id: int | None = None,
*,
allow_other_station: bool = True,
) -> None
await ecm.dms.undo_checkout(
model: ECMDocumentModel | int,
object_type_id: int | None = None,
*,
allow_other_station: bool = True,
) -> None
2. Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
— |
Either an |
|
|
|
The numeric object type ID. If |
|
|
|
When |
4. Exceptions
| Exception | Condition |
|---|---|
|
|
|
|
|
The document is not currently checked out. |
5. Examples
5.1. Undo checkout of a document
-
Sync
-
Async
ecm.dms.undo_checkout(doc)
await ecm.dms.undo_checkout(doc)
5.2. Undo checkout by plain ID
-
Sync
-
Async
ecm.dms.undo_checkout(12345, object_type_id=327685)
await ecm.dms.undo_checkout(12345, object_type_id=327685)
5.3. Restrict the undo to the checking-out station
By default the checkout may be undone from any station (allow_other_station=True).
To restrict the undo to the station that checked the document out:
-
Sync
-
Async
ecm.dms.undo_checkout(doc, allow_other_station=False)
await ecm.dms.undo_checkout(doc, allow_other_station=False)
6. See also
-
checkout() — Check out a document
-
files() — Download the files of a document