Commit Graph

2685 Commits

Author SHA1 Message Date
Cole Robinson
ff6fefeecc Use Gtk.Application for uniqueness
And drop all the legacy dbus stuff which isn't really interesting.

We could use gtk.application for more stuff, but for now it's not
too compelling.
2013-04-15 19:27:46 -04:00
Cole Robinson
329edd46cd virtManagerTui: Remove unused file 2013-04-15 14:32:10 -04:00
Cole Robinson
31b303f3b1 Remove unused Tui/importblacklist
We will solve the same problem with unittests
2013-04-15 14:18:33 -04:00
Cole Robinson
71407f3c76 po: Fix error in ja.po 2013-04-15 14:15:47 -04:00
Cole Robinson
f347ab4381 Update README 2013-04-15 14:15:47 -04:00
Cole Robinson
351d690eab todo.txt: Update it 2013-04-15 14:15:46 -04:00
Cole Robinson
aeaa85077f po: Don't track .pot file
Doesn't mesh well with intltool usage. I'll just need to push the file
regularly to transifex.
2013-04-15 14:15:18 -04:00
Cole Robinson
2c6c440988 HACKING: Mini updates 2013-04-15 13:22:19 -04:00
Cole Robinson
1078facce2 console: Fix keycombo menu location in fullscreen mode 2013-04-15 12:38:53 -04:00
Cole Robinson
2d110816d6 autodrawer: Fix centering
child_get_property bindings need a wrapper to make them useful
2013-04-15 12:38:53 -04:00
Cole Robinson
e7fb33e32d autodrawer: Enable a bit that pygtk didn't support 2013-04-15 12:38:21 -04:00
Cole Robinson
fce6d4a6ea autodrawer: Fix drawer from being stuck open on initial fullscreen 2013-04-15 12:38:20 -04:00
Cole Robinson
a102edaa89 console: Fix broken size-allocate signal 2013-04-15 12:37:37 -04:00
Cole Robinson
dd45270ba1 autodrawer: Drop use of cairo bindings
We can use Gdk instead
2013-04-15 12:37:37 -04:00
Cole Robinson
d440ec4d0d console: Fix size_allocate arguments 2013-04-15 12:37:37 -04:00
Cole Robinson
4107646bf3 virtinst: install: simplify has_install_phase() 2013-04-15 12:37:36 -04:00
Cole Robinson
0f57dae8b2 virtinst: Remove not-very-useful post_install_check
It doesn't work in a variety of cases and it's not very useful
to begin with.
2013-04-15 12:37:36 -04:00
Hu Tao
ee7168e6f9 Add and fix test cases for cpu mode attribute
This patch adds and fixes test cases for cpu mode attribute.

Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>

(crobinso: Minor rebase tweaks)
2013-04-14 13:55:26 -04:00
Ken ICHIKAWA
2a72d50477 Add support for cpu mode attribute and cpu host-passthrough
With this patch, users can use cpu host-passthrough like this:

  virt-install --cpu host-passthrough ...

Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>

(crobinso: Add Hu Tao to AUTHORS)
2013-04-14 13:55:06 -04:00
Cole Robinson
a0e07c0f92 virt-manager: Don't double log uncaught startup exception 2013-04-14 13:26:59 -04:00
Cole Robinson
079835bfaf Fix other popup menus after gtk3 conversion 2013-04-14 13:16:02 -04:00
Guannan Ren
0a9f58a064 fix argument error when right-clicking hw list to popup menu
Traceback (most recent call last):
  File "../virt-manager/virtManager/details.py", line 1072, in popup_addhw_menu
    self.addhwmenu.popup(None, None, None, 0, event.time)
TypeError: popup() takes exactly 7 arguments (6 given)
2013-04-14 13:10:19 -04:00
Cole Robinson
cdac966360 setup: Make 'install' work even if 'configure' wasn't run 2013-04-14 12:51:22 -04:00
Cole Robinson
d5f466d558 virtinst: util: Move keymap stuff to its own file 2013-04-13 16:31:13 -04:00
Cole Robinson
abbc828b70 VirtualGraphics: Don't lookup local keymap over and over
Triggered with virt-manager: new vm -> customize before install with a
non qemu. Guest.get_xml_config copies each device so it can set defaults
in a non persistent way. Unfortunately VirtualGraphics was copied before
a keymap lookup was ever done. End result was that we called
util.default_keymap over and over which is slow and floods the logs.
2013-04-13 16:18:03 -04:00
Cole Robinson
94cf9a204b VirtualGraphics: Cache locally keymap 2013-04-13 16:14:14 -04:00
Cole Robinson
02733ecff4 virtinst: util: Simplify randomUUID 2013-04-13 15:48:06 -04:00
Cole Robinson
1771f6a300 tests: Replace 'scriptimports' with a much simpler method 2013-04-13 15:38:53 -04:00
Cole Robinson
0d243983d0 Revive pep8 and clean up the code
autopep8 is pretty cool :)
2013-04-13 15:22:43 -04:00
Cole Robinson
fcc680cae1 Use an RC file for pylint
Will let use tweak things easier in the future
2013-04-13 15:22:29 -04:00
Cole Robinson
f471761ebd Simplify MANIFEST
Seems to give us the same results
2013-04-13 14:17:28 -04:00
Cole Robinson
3f79fa3919 Fix the last of the pylint messages
If using an older pylint, there are still some complaints about hashlib
and Popen, but those aren't our problems.
2013-04-13 13:45:08 -04:00
Cole Robinson
b8f1bbd3de asyncjob: Rename function that collides with gtk method 2013-04-13 13:42:39 -04:00
Cole Robinson
baf531f710 virtinst: Guest: Remove back compat static device lists 2013-04-13 13:40:45 -04:00
Cole Robinson
248a1a509f virtinst: Guest: remove legacy 'boot' handling 2013-04-13 13:40:45 -04:00
Cole Robinson
7a47465ab6 virtinst: Guest: remove back compat graphics handling 2013-04-13 13:40:45 -04:00
Cole Robinson
9359ad2bb6 virtinst: Remove ParaVirt and FullVirtGuest
They were just around for back compat at this point, the tools
have moved on.
2013-04-13 13:40:45 -04:00
Cole Robinson
ae471007fc Tons of misc pylint fixes 2013-04-13 13:40:29 -04:00
Cole Robinson
d323fbbe23 pylint: Disable 'Use of property on old style class' warning
pylint can't handle the fact that our Gtk subclasses _are_ new
style classes.
2013-04-12 08:27:45 -04:00
Cole Robinson
e03f84ac7f autodrawer: Disable pylint warnings caused by gobject introspection 2013-04-12 08:27:45 -04:00
Cole Robinson
c1e0bec220 graphwidgets: Drop cairo import
We only use it for one constant, so just hardcode it.
2013-04-12 08:27:45 -04:00
Cole Robinson
9515a8575d Disable pylint warnings about gi.repository
Since pylint still can't handle the dynamic nature of gobject
introspection.
2013-04-12 08:27:45 -04:00
Cole Robinson
986014ec49 XMLBuilderDomain: Replace 'map' usage
Our usage here was complex and very specific to map() behavior, so
add an explicit function that replicates what we want.
2013-04-12 08:27:44 -04:00
Cole Robinson
a386186c74 Remove most map() and filter() usage
They aren't available on python3 so pylint complains, and list
comprehensions are usually better.
2013-04-12 08:27:44 -04:00
Cole Robinson
c5e45ae448 Remove all relative imports
We also drop VirtualDevice from the 'public' virtinst API, since there
are better ways to get its info.
2013-04-12 08:27:44 -04:00
Cole Robinson
aead0135b0 setup.py: Re-add 'pylint' subcommand
We drop our hacky shell wrappers, and just track it all in setup.py
2013-04-12 08:27:09 -04:00
Cole Robinson
927bcc11cd virtinst: util: Move URI helpers to their own file
Helps us avoid some relative imports, and makes things cleaner.
2013-04-11 12:15:38 -04:00
Cole Robinson
69d3f21da6 virtinst: nic: Don't check MAC collision with host
It was:

- Slow
- Not that useful
- Only worked in the local case

If anyone cares, the proper thing to do is implement it with the iface APIs.
2013-04-11 12:15:37 -04:00
Cole Robinson
e0e3c212e4 virtinst: Remove manual selinux bits
Wasn't very useful to begin with, and modern day svirt correctly
handles things.
2013-04-11 12:15:37 -04:00
Cole Robinson
459cb3de5e util: Remove old default_bridge, rename default_bridge2 2013-04-11 12:15:37 -04:00