# import the wb module from wb import * # import regular expressions module import re # import the mforms module for GUI stuff import mforms # define this Python module as a GRT module ModuleInfo = DefineModule(name = "WbPlugin-test", author = "Igor Gladkov", version = "0.1") # @wbexport exports the function from the module and also describes the return and # argument types of the function @ModuleInfo.plugin("wb.catalog.util.exportToPlugin", caption = "Export Catalog to Schema", type = "standalone", input = [wbinputs.currentCatalog()], pluginMenu = "Catalog") @ModuleInfo.export(grt.INT, grt.classes.db_Catalog) def exportToPlugin(catalog): return 0