Giuseppe Scrivano
2751a134f2
virt-manager: do not delete tabs while destroying the details window
...
_close_serial_tab triggers the switch-page event and that can provoke a
refresh of the window. This causes an error everytime the details window
is pointing to a domain that was just deleted.
Solves: https://bugzilla.redhat.com/show_bug.cgi?id=985291
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-08-14 20:04:49 -04:00
Cole Robinson
f220e6778c
Guest: Drop OS listing helpers, and OS_TYPES back compat
2013-08-11 14:52:30 -04:00
Cole Robinson
c426d5a16f
Guest: Drop os_type, just use single os_variant
...
Internally the distinction hasn't been valuable for a long time,
so simplify the API here.
2013-08-11 12:39:36 -04:00
Cole Robinson
3e158b80bf
guest: Move cpuset static functions to DomainNumatune
2013-08-11 12:39:28 -04:00
Cole Robinson
87789548ba
guest: Drop consolecb and wait parameters from start_install
2013-08-11 12:39:28 -04:00
Cole Robinson
7c55cfeb39
virtManager: Drop util, combine it with virtinst.util and uihelpers
2013-08-11 12:39:28 -04:00
Giuseppe Scrivano
ff57d636d7
Drop user back to 'open conn' dialog if connecting fails
...
In case of connection failure, the user can either maintain the connection
or modify it.
Split up `add_connection_to_ui' into `make_conn' and `register_conn'
to handle separately the object creation and its registration in the
list of connections (ui and conf).
Solves: https://bugzilla.redhat.com/show_bug.cgi?id=617386
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-08-08 14:38:31 -04:00
Cole Robinson
7664840e68
createnet: Refresh forward device list when wizard is launched
2013-08-05 17:20:05 -04:00
Giuseppe Scrivano
2a67ec9ed6
ui: allow to set an empty password for graphics
...
Now when a password is used a check box must be explicitely selected.
This enable the possibility to set an empty password "".
Solves: https://bugzilla.redhat.com/show_bug.cgi?id=749718
Signed-off-by: Giuseppe Scrivano <gscrivano@gnu.org>
(crobinso: fix minor pylint violation)
2013-08-01 11:42:08 -04:00
Marc Deslauriers
b9cb73ec47
Switch AppIndicator code to use GObject introspection.
2013-07-29 14:45:06 -04:00
Cole Robinson
bf7773ce58
Guest: Drop add_device set_defaults option
...
Was only used to fix one bug, but has too many side effects. Just
fix it at the caller.
2013-07-25 15:04:47 -04:00
Cole Robinson
695c4b7189
VirtualDisk: Make the driver/type auto changes opt-in
...
It was hard to get this right, so just require that any API users
which are changing the path of an existing disk call sync_path_props()
2013-07-25 15:04:47 -04:00
Cole Robinson
bdfb86fd06
xmlbuilder: Break out much of the xml handling to a separate class
...
Clears things up a bit.
2013-07-25 15:04:47 -04:00
Cole Robinson
3cf7679beb
Guest: Add get_install_xml for install handling
2013-07-24 11:32:30 -04:00
Cole Robinson
2ba3ec2684
Guest: Convert to new style XML prop, drop a bunch of XML infrastructure
...
Now every XML property is new style, without explicit local get/set
handlers. Drop a bunch of XML infrastructure that was helping with the
transition.
2013-07-24 07:54:04 -04:00
Cole Robinson
012d1cdc52
Installer: Drop all XML handling, just have it setup install info
2013-07-23 17:34:33 -04:00
Cole Robinson
14103f175d
VirtualConnection: Allow setting a display name for fake URIs
2013-07-23 17:34:32 -04:00
Cole Robinson
f37d4d010a
virtinst: Drop __init__ params from Guest and Installer
2013-07-23 17:34:32 -04:00
Cole Robinson
d9e82f984c
VirtualDevice: Raise error if parsing addrstr fails
2013-07-23 17:34:32 -04:00
Cole Robinson
524d1047b1
Guest: Make API users opt in for default console/input devices
...
We don't need to maintain API back compat anymore
2013-07-23 17:34:32 -04:00
Cole Robinson
e802eae07b
VirtualCharDevice: Convert to new style XML props, rework API
2013-07-23 17:34:31 -04:00
Cole Robinson
4f7f9e2267
VirtualAudio: Convert to new style XML props
2013-07-15 22:00:08 -04:00
Cole Robinson
a9296ec3ae
VirtualController: Convert to new style XML props
2013-07-15 21:52:18 -04:00
Cole Robinson
9c92d8e092
VirtualFilesystem: Convert to new style XML props
2013-07-15 20:53:46 -04:00
Cole Robinson
dc58d48a33
VirtualGraphics: Drop non-default __init__ params
2013-07-15 20:43:41 -04:00
Leonardo Garcia
40cff67836
virt-manager: Properly handle errors when --show-* options are used.
...
crobinso: Fix some pylint
2013-07-15 16:03:15 -04:00
Leonardo Garcia
e1be39d986
virt-manager: Code cleanup
...
Remove functions not necessary or not being used anywhere.
2013-07-15 16:00:37 -04:00
Cole Robinson
3ae835dc7c
VirtualNetworkInterface: Drop all XML __init__ params
2013-07-15 14:14:05 -04:00
Cole Robinson
a75cb4074c
VirtualPort: Convert to new style xml properties
2013-07-15 13:08:58 -04:00
Cole Robinson
98a4d86d7f
VirtualRedir: Convert to new style XML props
2013-07-15 12:57:37 -04:00
Cole Robinson
b6f2d99db2
VirtualSmartCard: Convert to new style XML props
2013-07-15 12:36:57 -04:00
Cole Robinson
f3a37ba195
VirtualTPM: Convert to new style properties
2013-07-15 12:18:23 -04:00
Cole Robinson
e5a7fe6405
VirtualVideo: Convert to new style xml props
2013-07-15 11:19:18 -04:00
Cole Robinson
c12327cbd1
Guest: Switch memory units to KB to match default XML
2013-07-13 23:07:01 -04:00
Cole Robinson
4ce1774d53
VirtualDisk: Rework provisioning and validation behavior
...
We separate all the provisioning bits to diskbackend.py. VirtualDisk
users now need to explicitly opt in to storage creation by using
set_create_storage().
validation is no longer done automatically, users must call the
validation() command.
__init__ drops all extra parameters.
This will eventually get us to a point where we can unify the manual
XML building and XML parsing machinery, and get consistent validation
behavior between devices.
2013-07-13 16:37:33 -04:00
Cole Robinson
38fa89fe9f
uihelpers: Don't error checking host space if default pool is busy
2013-07-13 16:32:21 -04:00
Cole Robinson
0d5fe93048
Centralize XML helpers in virtinst/util.py
2013-07-12 13:10:23 -04:00
Cole Robinson
534e613d40
VirtualNetworkInterface: Absord MAC generating routines
2013-07-12 13:10:23 -04:00
Cole Robinson
f1b55090d2
VirtualDisk: Drop cache and io from __init__
...
They are barely used and can be specified separately.
2013-07-12 13:10:23 -04:00
Cole Robinson
fcc82e8f9d
virt-manager: Fix --show-* options
2013-07-12 13:10:05 -04:00
Cole Robinson
d09bc39a2b
serialcon: Fix copy+paste
2013-07-11 13:32:41 -04:00
Cole Robinson
318ba7e474
VirtualConnection: Deal with Guest objects, not raw XML
...
We already do XML parsing, no need to open code it elsewhere
2013-07-10 20:09:51 -04:00
Cole Robinson
5f497cba41
console: Don't double create spice display
...
I can't reproduce, but a couple gentoo users have issues that this
fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=981975
2013-07-09 17:50:05 -04:00
Cole Robinson
2ca9e364a5
uihelpers: Drop global error dialog
...
Just have callers pass one in.
2013-07-09 09:20:43 -04:00
Martin Kletzander
f08313513b
Use proper disk targets.
...
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=968878
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2013-07-09 09:12:53 -04:00
Cole Robinson
bbf54d7a08
uihelpers: Fix error showing dialog if default pool isn't started
2013-07-09 09:12:26 -04:00
Cole Robinson
194cb715a3
console: A few tweaks to usbredir code
...
- Make sure to set menu item to unsensitive when console closes
- Avoid dep on latest spice-gtk git for channel_type_from_string
- Create usbwidget every time it's requested, like virt-viewer does
- Minor style fixes
2013-07-08 19:13:52 -04:00
Cole Robinson
e826de7c73
storagebrowse: Only tick if we actually have a pool
2013-07-08 14:20:15 -04:00
Cole Robinson
0ee5ddbf54
create: Drop host storage timer
...
It's kind of needy to be doing a pool.refresh every 3 seconds, and really
I'm fine with telling people they have to close and reopen the wizard to
get up2date host size reporting.
2013-07-07 19:00:57 -04:00
Cole Robinson
7a2caee6e1
VirtualConnection: Allow using virt-manager object caches
...
So when we call into virtinst it doesn't do a whole round of object
lookup and XML fetching.
2013-07-07 18:54:08 -04:00