Page MenuHome

WindowManager.clipboard missing in Python API documentation
Closed, ResolvedPublicBUG

Description

Blender Version
Broken: 2.83 and above
Worked: 2.82

Short description of error
In the Python API docs, bpy.types.WindowManager.clipboard has disappeared in release 2.83. It is not removed, it can still be used but the documentation is gone.

Here's 2.82 docs: https://docs.blender.org/api/2.82/bpy.types.WindowManager.html#bpy.types.WindowManager.clipboard

Disappeared in 2.83 docs: https://docs.blender.org/api/2.83/bpy.types.WindowManager.html

It's missing in every documentation from version 2.83 to the latest version.

Event Timeline

Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Confirmed.EditedJun 3 2021, 3:39 PM
Pratik Borhade (PratikPB2123) edited projects, added Documentation; removed BF Blender.

Confirming because I could not find this anywhere in the manual.

Will fix that.

Aaron Carlisle (Blendify) changed the subtype of this task from "Report" to "Bug".
Aaron Carlisle (Blendify) moved this task from Backlog to Documentation on the Python API board.

Caused by rB0e0ebdb65c978a22db2bdcc71dd058ec89cac932

I tried

1diff --git a/source/blender/python/intern/bpy_rna_types_capi.c b/source/blender/python/intern/bpy_rna_types_capi.c
2index 2f6e197d1e2..1e02f14163a 100644
3--- a/source/blender/python/intern/bpy_rna_types_capi.c
4+++ b/source/blender/python/intern/bpy_rna_types_capi.c
5@@ -149,12 +149,19 @@ static struct PyMethodDef pyrna_windowmanager_methods[] = {
6 {NULL, NULL, 0, NULL},
7 };
8
9+PyDoc_STRVAR(pyrna_WindowManager_clipboard_doc,
10+ ".. attribute:: clipboard\n"
11+ "\n"
12+ " Clipboard text storage.\n"
13+ "\n"
14+ " :type: string, default "", (never None)\n");
15+
16 static struct PyGetSetDef pyrna_windowmanager_getset[] = {
17 {"clipboard",
18 pyrna_WindowManager_clipboard_get,
19 pyrna_WindowManager_clipboard_set,
20 NULL,
21- NULL},
22+ pyrna_WindowManager_clipboard_doc},
23 {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
24 };
25
but seems I am missing something, cc @Campbell Barton (campbellbarton)