Cole Robinson
6e2e18ccf8
urlfetcher: Split up SUSE content parsing a bit
...
Add comments for what each parsed line actually looks like
2018-03-28 17:58:11 -04:00
Cole Robinson
35df66c1ed
tests: test_urls: Make fedora distro checking a bit smarter
...
Rather than constantly require updating distro values for latest
Fedora when osinfo-db catches up, build some smarts into the
test suite
2018-03-28 14:56:52 -04:00
Cole Robinson
74f2fb73fd
tests: test_urls: Rename distroobj->testdata
...
Makes it much more clear what it is
2018-03-28 14:40:41 -04:00
Cole Robinson
01b665a6c3
urlfetcher: Throw error if iso _grabber file doesn't exist
...
isoinfo won't error here at least for me on Fedora 28, so
use hasFile to confirm
2018-03-28 14:02:23 -04:00
Cole Robinson
46ec093a28
virt-xml: Make it more clear when changes take effect
...
shutdown could be interpreted as a soft reboot, which won't
apply the changes
2018-03-25 19:22:28 -04:00
Cole Robinson
bd891eb380
virtcli: Add python3 version check
...
Assume 3.4 is needed, we may support earlier but I doubt anyone
is going to get all the deps in place on a distro that old
2018-03-21 18:00:38 -04:00
Cole Robinson
d692b6d51e
spec: Document the explicit dconf dep
2018-03-21 17:10:30 -04:00
Cole Robinson
60888fb7f5
spec: Drop dbus-x11 dep
...
This came from: https://bugzilla.redhat.com/show_bug.cgi?id=1039803
Seems dconf and gconf before it would use dbus-libs which would
in turn try to use dbus-launch from dbus-x11. They didn't have
a dep on dbus-x11 for *reasons*
Nowadays dconf and virt-manager both use gdbus which is a native
dbus implementation and does not use dbus-launch or have any hard
dependency on x11 AFAICT, so this dep is not required.
2018-03-21 17:02:06 -04:00
Cole Robinson
8bca2526ab
spec: Drop gnome-icon-theme dep
...
We don't build for rhel7 anymore, and modern gnome stack has
proper deps on adwaita-icon-theme nowadays
2018-03-21 16:49:00 -04:00
Cole Robinson
b238718347
tests: uitests: Omit /usr for coverage
...
like we do for regular test suite coverage
2018-03-21 16:25:07 -04:00
Cole Robinson
eee1caa946
domain: Drop most device list wrappers
...
There's lots of hacks stuffed into the domain device lists. Formalize
some of it, move some of the specific stuff to details.py, and drop
a lot of the needless API wrappers
2018-03-21 16:10:45 -04:00
Cole Robinson
4b26348290
xmlbuilder: Separate out the property cache
...
Add a few more mappings to simplify certain lookups, and add
some more validation to prevent programming errors
2018-03-21 14:32:47 -04:00
Cole Robinson
5b111b3d9f
guest: Move get_all_devices to devices.get_all
2018-03-21 12:59:46 -04:00
Cole Robinson
7fb1ddbc18
virtinst: s/_XML_ROOT_NAME/XML_NAME/g
...
No reason for it to be privatized, could be useful in some cases
2018-03-21 11:17:36 -04:00
Cole Robinson
3e176f2aa4
xmlbuilder: Remove relative_xpath substitution support
...
This only has one user in interface.py. That case is indeed weird
but we can implement it there, rather than in generic code
2018-03-21 11:17:36 -04:00
Cole Robinson
538ea96116
guest: devices: change XML ordering to match libvirt
2018-03-21 11:17:36 -04:00
Cole Robinson
b7f6e4990e
xmlbuilder: Use OrderedDict for propstore
...
Let's us drop proporder
2018-03-21 11:17:36 -04:00
Cole Robinson
8d0b1f80f1
cli: Have parser classes reference property names, not xmlbuilders
...
propertys already give us ways to access the backing class, and
switching to this method lets us drop some infrastructure in
xmlbuilder
2018-03-21 11:17:36 -04:00
Cole Robinson
256f0df8c2
xmlbuilder: Drop s/child_classes/child_class/
...
The only user was Guest._devices hackery, which has been dropped,
so clean up all this stuff
2018-03-21 11:17:36 -04:00
Cole Robinson
3b88bfb1ee
cli: Drop clear_attr property
...
It slightly complicates the generic machinery, and the one usage we
can handle directly
2018-03-21 11:17:36 -04:00
Cole Robinson
f69b823fad
devices: Switch to normal _XML_PROP_ORDER
...
Drop the register_device stuff, rename virtual_device_type
2018-03-21 11:17:36 -04:00
Cole Robinson
7b61c45d3b
guest: Move all_devices to guest.devices.X
...
The way we enumerate devices doesn't conform with the way all
other XMLBuilder instances expose child objects. Move more towards
that direction.
This requires some virt-xml and cli.py hacks but we will remove those
in future patches
2018-03-21 11:17:36 -04:00
Cole Robinson
fe9ed2340c
virtinst: move <domain> XML files to virtinst/domain
...
And give the classes consistent naming
2018-03-21 11:17:36 -04:00
Cole Robinson
b6dcee8eb7
Use consistent and minimal license header for every file
2018-03-21 07:29:40 -04:00
Cole Robinson
3909c10441
virtinst: Move all devices to virtinst/devices/
2018-03-21 07:29:40 -04:00
Cole Robinson
1c911ce567
virtinst: Give device classes consistent DeviceX naming
...
Previous state was inconsistenty and needlessly wordy. Fix up
a few other class namings that have redundant Virtual in the name
2018-03-21 07:29:40 -04:00
Cole Robinson
93c22eff79
xmlbuilder: Move xml_indent to util
2018-03-20 10:35:22 -04:00
Cole Robinson
3d34f6a231
storage: Fix validating empty hosts value (bz #1557942 )
...
https://bugzilla.redhat.com/show_bug.cgi?id=1557942
2018-03-19 10:29:00 -04:00
Cole Robinson
bf458c2274
kernelupload: Fix it with python3
2018-03-18 11:51:09 -04:00
Cole Robinson
1994b4cf2d
devicedisk: fix _is_dir_searchable
...
And add a test case that would have caught this
2018-03-18 11:51:09 -04:00
Cole Robinson
a55abc8e89
details: Again fix default page showing
2018-03-18 11:36:02 -04:00
Cole Robinson
4d4a07c65b
tests: uitests: Add window cleanup tests
...
And fix some bugs I found as a result
2018-03-17 19:42:19 -04:00
Cole Robinson
259c70a090
error: Drop unused parent callback
2018-03-17 18:49:55 -04:00
Cole Robinson
defdfd4b51
engine: Fix backtrace from manager->exit
2018-03-17 18:47:13 -04:00
Cole Robinson
591dda6d1e
uitests: connect: Test double click to open
2018-03-17 18:46:40 -04:00
Cole Robinson
edc79a3272
uitests: Add VM 'doubleclick' open testing
2018-03-17 18:46:40 -04:00
Cole Robinson
97db1ac18a
manager: Simplify row management a bit
...
Drop the self.rows dict, use more pygobject row[] convenience
helpers, add some helper properties for VM
2018-03-17 18:46:40 -04:00
Cole Robinson
7de9028221
manager: Fix some menu item sensitivity issues
2018-03-17 18:46:40 -04:00
Cole Robinson
b423d8ffe7
uitests: cli: test --connect with a bad URI
2018-03-17 18:46:40 -04:00
Cole Robinson
b5377f8f0f
engine: Make a decorator function for showing startup errors
2018-03-17 18:46:40 -04:00
Cole Robinson
3c1e0a8a12
virtManager/*: Give pylint hints about singleton classes
...
It can't seem to figure out that what 'cls' is in this context,
so make it explicit.
2018-03-17 18:46:39 -04:00
Cole Robinson
7ad15769dc
virt-manager: fix git startup on wayland
...
Apparently we need to do these env settings much earlier...
2018-03-17 13:14:04 -04:00
Cole Robinson
483a8de6c1
systray: Change window tracking a bit
...
We should only prevent app closing if the systray is actually embedded
2018-03-17 12:18:38 -04:00
Cole Robinson
9ec865e4c0
systray: Only create statusicon if showing
...
Since even if it's marked as not visible, it can cause some movement
on the gnome3 topbar with topicons extension
2018-03-17 11:42:12 -04:00
Cole Robinson
dac860e8ce
engine: Show modal startup errors if window open fails
2018-03-16 19:09:55 -04:00
Cole Robinson
ee817c32ce
s/connect_opt_out/connect_once/ for open-completed callback
...
Forgot about that helper function...
2018-03-16 18:05:52 -04:00
Cole Robinson
ad632383c8
virt-manager: if new --connect fails, don't save the URI
2018-03-16 18:05:52 -04:00
Cole Robinson
6969066b9f
cli: Don't double print uncaught exceptions with --debug
...
We have an excepthook that logs uncaught exceptions for good
reason, but if printing --debug to stdout this exception gets
printed twice when we invoke the stock __excepthook__. Skip that
in the debug_stdout case.
2018-03-16 17:56:05 -04:00
Cole Robinson
2f0e730efc
error: Don't double log summary
...
details is often composed of a summary + traceback, so if users copy
it into a bug report we get all the info. But when logging the contents
we don't want to double log the summary, so try to strip it out
2018-03-16 17:30:39 -04:00
Cole Robinson
465b04ea18
Remove gconf->gsettings conversion script
...
It was first released with v1.2.0 in May 2015. I think that's long
enough for people to have run the app and had their settings
converted.
2018-03-16 14:41:53 -04:00