[Users] adding scripts

Einav Cohen ecohen at redhat.com
Sun Mar 16 14:04:43 EDT 2014


may I ask what is the general purpose of these buttons that you 
would like to add and where (in the GUI) would you like to add 
them?

if you would like to add buttons to existing main-tab(s) / sub-
tab(s), the way to go is to write a UI Plugin that does that 
(especially if you intend these buttons to do something very 
specific for your needs). 

If you would like to add these buttons elsewhere, you will 
need to follow Greg's instructions and dig into the code for 
the specific needed location. 

> I want to commit changes to the engine... 

note that we can push into the code only things that make sense 
to include in oVirt (i.e. things that will be useful for typical 
oVirt users); again, if these buttons will do something very 
specific for your own needs, you should definitely utilize the 
UI Plugins infrastructure instead. 

> ... and make few tweaks for personal use...

if these tweaks are in the "branding" area (i.e. if you want to 
change main color themes, top-left image on the top banner, etc), 
then writing your own branding [1] is the way to go [you can 
override only part of the branding (depending on what you would 
like to tweak), you don't actually need to come up with a 
complete alternative branding].  

----
Thanks,
Einav

[1] http://www.ovirt.org/Feature/Branding

----- Original Message -----
> From: "Greg Sheremeta" <gshereme at redhat.com>
> To: "Aditya Mamidwar" <aditya.mamidwar at gmail.com>
> Cc: engine-devel at ovirt.org, users at ovirt.org
> Sent: Saturday, March 15, 2014 10:15:59 AM
> Subject: Re: [Users] adding scripts
> 
> There's not one html file like that, since we use GWT [1]. However, if you
> search for *.ui.xml files, you'll find all the GWT UIBinder files. That's
> the place to start for simple UI tweaks. The application is partitioned into
> small components, so you'll have to do some digging. For example, each
> dialog has its own ui.xml file -- so if you want to tweak a specific dialog,
> you'll need to find the right file. Feel free to post questions about those
> to engine-devel and we can help you out.
> 
> Greg
> 
> [1] http://www.gwtproject.org/
> 
> 
> 
> 
> From: "Aditya Mamidwar" <aditya.mamidwar at gmail.com>
> To: "Einav Cohen" <ecohen at redhat.com>, "Vojtech Szocs" <vszocs at redhat.com>
> Cc: engine-devel at ovirt.org, users at ovirt.org
> Sent: Saturday, March 15, 2014 8:30:21 AM
> Subject: Re: [Users] adding scripts
> 
> Hey thanks on the previous issue.
> Also is there a way i can access WebAdmin.Html to add custom buttons and make
> few tweaks for personal use?
> I just cant find that file after using git.
> 
> Aditya Mamidwar
> 
> From: Einav Cohen
> Sent: ‎14-‎03-‎2014 01:21
> To: aditya mamidwar ; Vojtech Szocs
> Cc: users at ovirt.org ; engine-devel at ovirt.org
> Subject: Re: [Users] adding scripts
> 
> if you are trying to hook into UI-specific events, it sounds
> like you will need to write an oVirt UI Plugin [1] in order to
> do that. However, I believe that the oVirt UI Plugins
> infrastructure doesn't support hooking to events such as "tab
> x was selected" and/or "button b was clicked".
> It does allow you to add new (custom) tabs/sub-tabs/buttons of
> your own, and there is a chance that it allows you to hook
> into events such as 'row x was selected in the grid'.
> 
> @Vojtech will know better. Vojtech?
> 
> if you are trying to hook into engine events (e.g. you want to
> run a script every time a VM is started in oVirt, no matter if
> the user started it by clicking the 'run' button in the oVirt-
> engine webadmin, or invoked a REST API request, or an SDK
> command), then it will require some sort of an "engine-plugin"
> infrastructure that we don't have at the moment AFAIK.
> there is a chance that for some of the events you will be able
> to utilize the VDSM hooks (at the Host level) [2].
> 
> ----
> Thanks,
> Einav
> 
> [1] http://www.ovirt.org/Features/UIPlugins
> 
> [2] http://www.ovirt.org/VDSM-Hooks
> 
> 
> ----- Original Message -----
> > From: "aditya mamidwar" <aditya.mamidwar at gmail.com>
> > To: users at ovirt.org, engine-devel at ovirt.org
> > Sent: Thursday, March 13, 2014 11:23:35 AM
> > Subject: [Users] adding scripts
> > 
> > 
> > I want to commit changes to the engine by adding some bash scripts.
> > the scripts should be invoked once a button or tab is selected in the
> > webadmin portal by the user.
> > 
> > can someone guide on achieving this.
> > 
> > --
> > -Aditya Mamidwar
> > 
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> > 
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>


More information about the Users mailing list