~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to res/scripts/script_templates/eer_model_object_grt.py.txt

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## EER Model Utility
 
2
# MySQL Workbench Plugin
 
3
# <description>
 
4
# Written in MySQL Workbench %wbversion%
 
5
 
 
6
from wb import *
 
7
import grt
 
8
#import mforms
 
9
 
 
10
ModuleInfo = DefineModule(%modulename%, author="Author Name", version="1.0", description="Contains Plugin %pluginname%")
 
11
 
 
12
# This plugin takes the EER Model as an argument and will appear in the Plugins -> Utilities menu
 
13
@ModuleInfo.plugin(%pluginname%, caption="Caption", description="description", input=[wbinputs.currentModel()], pluginMenu="Utilities")
 
14
@ModuleInfo.export(grt.INT, grt.classes.workbench_physical_Model)
 
15
def %functionname%(model):
 
16
    # Put plugin contents here
 
17
    return 0
 
18