
------=_Part_29440_1042558721.1394892959317 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 t= he 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 dia= log has its own ui.xml file -- so if you want to tweak a specific dialog, y= ou'll need to find the right file. Feel free to post questions about those = to engine-devel and we can help you out.=20 Greg=20 [1] http://www.gwtproject.org/=20 ----- Original Message -----
From: "Aditya Mamidwar" <aditya.mamidwar@gmail.com> To: "Einav Cohen" <ecohen@redhat.com>, "Vojtech Szocs" <vszocs@redhat.com=
Cc: engine-devel@ovirt.org, users@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: =E2=80=8E14-=E2=80=8E03-=E2=80=8E2014 01:21 To: aditya mamidwar ; Vojtech Szocs Cc: users@ovirt.org ; engine-devel@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
----- Original Message -----
From: "aditya mamidwar" <aditya.mamidwar@gmail.com> To: users@ovirt.org, engine-devel@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
<div><br></div><div><div style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sa= ns-serif" data-mce-style=3D"font-size: 11pt; font-family: Calibri,sans-seri= f;">Hey thanks on the previous issue.<br>Also is there a way i can access W= ebAdmin.Html to add custom buttons and make few tweaks for personal use?<br= I just cant find that file after using git.<br><div><br></div>Aditya Mamid= war</div></div><div dir=3D"ltr"><hr><span style=3D"FONT-SIZE: 11pt; FONT-FA= MILY: Calibri,sans-serif; FONT-WEIGHT: bold" data-mce-style=3D"font-size: 1= 1pt; font-family: Calibri,sans-serif; font-weight: bold;">From: </span><spa= n style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif" data-mce-style= =3D"font-size: 11pt; font-family: Calibri,sans-serif;"><a href=3D"mailto:ec= ohen@redhat.com" target=3D"_blank" data-mce-href=3D"mailto:ecohen@redhat.co= m">Einav Cohen</a></span><br><span style=3D"FONT-SIZE: 11pt; FONT-FAMILY: C= alibri,sans-serif; FONT-WEIGHT: bold" data-mce-style=3D"font-size: 11pt; fo= nt-family: Calibri,sans-serif; font-weight: bold;">Sent: </span><span style= =3D"FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif" data-mce-style=3D"fon= t-size: 11pt; font-family: Calibri,sans-serif;">=E2=80=8E14-=E2=80=8E03-=E2= =80=8E2014 01:21</span><br><span style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Cal= ibri,sans-serif; FONT-WEIGHT: bold" data-mce-style=3D"font-size: 11pt; font= -family: Calibri,sans-serif; font-weight: bold;">To: </span><span style=3D"= FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif" data-mce-style=3D"font-si= ze: 11pt; font-family: Calibri,sans-serif;"><a href=3D"mailto:aditya.mamidw= ar@gmail.com" target=3D"_blank" data-mce-href=3D"mailto:aditya.mamidwar@gma= il.com">aditya mamidwar</a>; <a href=3D"mailto:vszocs@redhat.com" target=3D= "_blank" data-mce-href=3D"mailto:vszocs@redhat.com">Vojtech Szocs</a></span= <br><span style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-= WEIGHT: bold" data-mce-style=3D"font-size: 11pt; font-family: Calibri,sans-= serif; font-weight: bold;">Cc: </span><span style=3D"FONT-SIZE: 11pt; FONT-= FAMILY: Calibri,sans-serif" data-mce-style=3D"font-size: 11pt; font-family:= Calibri,sans-serif;"><a href=3D"mailto:users@ovirt.org" target=3D"_blank" = data-mce-href=3D"mailto:users@ovirt.org">users@ovirt.org</a>; <a href=3D"ma= ilto:engine-devel@ovirt.org" target=3D"_blank" data-mce-href=3D"mailto:engi= ne-devel@ovirt.org">engine-devel@ovirt.org</a></span><br><span style=3D"FON= T-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold" data-mce-=
engine webadmin, or invoked a REST API request, or an SDK <br>command), th= en it will require some sort of an "engine-plugin" <br>infrastructure that = we don't have at the moment AFAIK. <br>there is a chance that for some of t= he events you will be able <br>to utilize the VDSM hooks (at the Host level= ) [2].<br><div><br></div>----<br>Thanks,<br>Einav<br><div><br></div>[1] htt=
------=_Part_29440_1042558721.1394892959317 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: times new roman, new york, times, se= rif; font-size: 12pt; color: #000000"><div>There's not one html file like t= hat, since we use GWT [1]. However, if you search for *.ui.xml files, you'l= l 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 hav= e to do some digging. For example, each dialog has its own ui.xml file -- s= o if you want to tweak a specific dialog, you'll need to find the right fil= e. Feel free to post questions about those to engine-devel and we can help = you out.</div><div><br></div><div>Greg</div><div><br></div><div>[1] <a= href=3D"http://www.gwtproject.org/" data-mce-href=3D"http://www.gwtproject= .org/">http://www.gwtproject.org/</a></div><div><br></div><hr id=3D"zwchr">= <blockquote style=3D"border-left:2px solid #1010FF;margin-left:5px;padding-= left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:no= ne;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style= =3D"border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; co= lor: #000; font-weight: normal; font-style: normal; text-decoration: none; = font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Ad= itya Mamidwar" <aditya.mamidwar@gmail.com><br><b>To: </b>"Einav Cohen= " <ecohen@redhat.com>, "Vojtech Szocs" <vszocs@redhat.com><br><= b>Cc: </b>engine-devel@ovirt.org, users@ovirt.org<br><b>Sent: </b>Saturday,= March 15, 2014 8:30:21 AM<br><b>Subject: </b>Re: [Users] adding scripts<br= style=3D"font-size: 11pt; font-family: Calibri,sans-serif; font-weight: bol= d;">Subject: </span><span style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sa= ns-serif" data-mce-style=3D"font-size: 11pt; font-family: Calibri,sans-seri= f;">Re: [Users] adding scripts</span><br><div><br></div></div>if you are tr= ying to hook into UI-specific events, it sounds <br>like you will need to w= rite an oVirt UI Plugin [1] in order to <br>do that. However, I believe tha= t the oVirt UI Plugins <br>infrastructure doesn't support hooking to events= such as "tab <br>x was selected" and/or "button b was clicked". <br>It doe= s allow you to add new (custom) tabs/sub-tabs/buttons of <br>your own, and = there is a chance that it allows you to hook <br>into events such as 'row x= was selected in the grid'. <br><div><br></div>@Vojtech will know better. V= ojtech?<br><div><br></div>if you are trying to hook into engine events (e.g= . you want to <br>run a script every time a VM is started in oVirt, no matt= er if <br>the user started it by clicking the 'run' button in the oVirt-<br= p://www.ovirt.org/Features/UIPlugins<br><div><br></div>[2] http://www.ovirt= .org/VDSM-Hooks<br><div><br></div><br>----- Original Message -----<br>> = From: "aditya mamidwar" <aditya.mamidwar@gmail.com><br>> To: users= @ovirt.org, engine-devel@ovirt.org<br>> Sent: Thursday, March 13, 2014 1= 1:23:35 AM<br>> Subject: [Users] adding scripts<br>> <br>> <br>>= ; I want to commit changes to the engine by adding some bash scripts.<br>&g= t; the scripts should be invoked once a button or tab is selected in the<br=
> webadmin portal by the user.<br>> <br>> can someone guide on ac= hieving this.<br>> <br>> --<br>> -Aditya Mamidwar<br>> <br>>= _______________________________________________<br>> Users mailing list= <br>> Users@ovirt.org<br>> http://lists.ovirt.org/mailman/listinfo/us= ers<br>> <br><br>_______________________________________________<br>User= s mailing list<br>Users@ovirt.org<br>http://lists.ovirt.org/mailman/listinf= o/users<br></blockquote><div><br></div></div></body></html> ------=_Part_29440_1042558721.1394892959317--