WindowManager.clipboard missing in Python API documentation #88792

Closed
opened 2021-06-03 13:53:24 +02:00 by Lassi Säike · 8 comments

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.

**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.
Author

Added subscriber: @lasa01

Added subscriber: @lasa01
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

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

Will fix that.

Confirming because I could not find this anywhere in the manual. Will fix that.
Pratik Borhade self-assigned this 2021-06-03 15:40:12 +02:00
Member

Added subscribers: @ideasman42, @Blendify

Added subscribers: @ideasman42, @Blendify
Member

Caused by blender/blender@0e0ebdb65c

I tried P2281: (An Untitled Masterwork)

diff --git a/source/blender/python/intern/bpy_rna_types_capi.c b/source/blender/python/intern/bpy_rna_types_capi.c
index 2f6e197d1e2..1e02f14163a 100644
--- a/source/blender/python/intern/bpy_rna_types_capi.c
+++ b/source/blender/python/intern/bpy_rna_types_capi.c
@@ -149,12 +149,19 @@ static struct PyMethodDef pyrna_windowmanager_methods[] = {
     {NULL, NULL, 0, NULL},
 };
 
+PyDoc_STRVAR(pyrna_WindowManager_clipboard_doc,
+             ".. attribute:: clipboard\n"
+             "\n"
+             "   Clipboard text storage.\n"
+             "\n"
+             "   :type: string, default "", (never None)\n");
+
 static struct PyGetSetDef pyrna_windowmanager_getset[] = {
     {"clipboard",
      pyrna_WindowManager_clipboard_get,
      pyrna_WindowManager_clipboard_set,
      NULL,
-     NULL},
+     pyrna_WindowManager_clipboard_doc},
     {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
 };
 

but seems I am missing something, cc @ideasman42

Caused by blender/blender@0e0ebdb65c I tried [P2281: (An Untitled Masterwork)](https://archive.blender.org/developer/P2281.txt) ``` diff --git a/source/blender/python/intern/bpy_rna_types_capi.c b/source/blender/python/intern/bpy_rna_types_capi.c index 2f6e197d1e2..1e02f14163a 100644 --- a/source/blender/python/intern/bpy_rna_types_capi.c +++ b/source/blender/python/intern/bpy_rna_types_capi.c @@ -149,12 +149,19 @@ static struct PyMethodDef pyrna_windowmanager_methods[] = { {NULL, NULL, 0, NULL}, }; +PyDoc_STRVAR(pyrna_WindowManager_clipboard_doc, + ".. attribute:: clipboard\n" + "\n" + " Clipboard text storage.\n" + "\n" + " :type: string, default "", (never None)\n"); + static struct PyGetSetDef pyrna_windowmanager_getset[] = { {"clipboard", pyrna_WindowManager_clipboard_get, pyrna_WindowManager_clipboard_set, NULL, - NULL}, + pyrna_WindowManager_clipboard_doc}, {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; ``` but seems I am missing something, cc @ideasman42
Pratik Borhade removed their assignment 2021-07-24 05:59:41 +02:00

This issue was referenced by blender/blender@136a06285f

This issue was referenced by blender/blender@136a06285f0e953f65dc432a4dba1ff3d1f781ee

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Campbell Barton self-assigned this 2022-05-18 13:48:41 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#88792
No description provided.