Bug #86306 Workbench plugin contribution not shown
Submitted: 12 May 2017 18:07 Modified: 22 Nov 2017 14:50
Reporter: Marco Descher Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.3.9 OS:Any
Assigned to: CPU Architecture:Any

[12 May 2017 18:07] Marco Descher
Description:
I’ve been really trying to get a plugin working with pluginMenu= “SQL/Resultset“. 
But whatever I do, I can not get to see the resp. menu entry when using this pluginMenu setting – using „SQL/Utilities“ or „SQL/Editor“ works, but not Resultset as documented in http://mysqlworkbench.org/workbench/doc/ – I also tried the interal „New script“ with provides the resultset option – I can not see the menu entry no matter what I do!

How to repeat:
Please try using the following script, the resp. menu entry will not be visible in the context menu of a result set.

from wb import *
import grt

# create a module information descriptor. The variable name must be ModuleInfo
ModuleInfo = DefineModule(name= "Elexis Utils", author= "MEDEVIT", version="1.1")

@ModuleInfo.plugin("Show BLOB Content", caption= "Show BLOB Content", description="Description", input= [wbinputs.currentResultset(), wbinputs.clickedRow(), wbinputs.clickedColumn()], pluginMenu= "SQL/Resultset")
@ModuleInfo.export(grt.INT, grt.classes.db_query_Resultset, grt.INT, grt.INT)
def show_blob_content(rs, row, column):
  #do stuff
  return 0
[17 May 2017 12:17] Chiranjeevi Battula
Hello  Marco Descher,

Thank you for the bug report.
Verified this behavior on MySQL Workbench in 6.3.9 version.

Thanks,
Chiranjeevi.
[22 Nov 2017 14:50] Marco Descher
Are there any plans on fixing this?