Streamline template creation flows - update

Update:
1. Disable the "Remote ISO Image" option temporarily.
2. Select ISOs by clicking in the box.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Enable the template_create test with non-root account

Use the "test:///default" as the url to Model object instead
to enable non-root account test

Signed-off-by: Shu Ming <shuming@linux.vnet.ibm.com>
UI: Enable Language Selection

V2 -> V3:
  3a) Move language bar to bottom according to usage frequency.

V1 -> V2:
  2a) Added a missing changed file.

Enable language selection in UI.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Autostart storagepools created from kimchi

V1-V2:
    1. Use boolean type instead of 0/1 as flag.

    2. Add more description in API.md
V1:
    1. Set the autostart flag for storage pools of type 'dir' created from kimchi,
    and disable autostart flag for all other types.

    2. Add Rest API method to toggle autostart flag of storage pool

    3. Add description about this Rest API method in API.md

Signed-off-by: apporc <appleorchard2000@gmail.com>
Align storage header in Storage tab

The storage header was not correctly aligned with the columns in the Storage
tab.
Adjust the width of header elements to fix it.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
Fix bug Regex in checking url

v1-v2
1 Make each regex a var to make it more clear
2 check the url by ip type and domain type
There is an issue in the Regex of checkout url
of missing "+/?" in the end of regex.That make some url very long
can not passed by checking. So send a patch to amend this.To make
url just like:http://download.fedoraproject.org/pub/fedora/linux/
releases/19/Live/x86_64/Fedora-Live-Desktop-x86_64-19-1.iso can be
passed in the front end.
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
UI Template Edit: Hide Unsupported Items

Icon editing is not supported currently so we hide it now. Also, we
adjust the template edit window size accordingly.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Issue #174: error page can not be translated, fix it.

we do not list error.html.tmpl in po/POTFILES.in for a known issue.
issue: https://github.com/kimchi-project/kimchi/issues/174

Wsgiserver will encode the error.html to 'ISO-8859-1'.
But the error.html from cheetah template is unicode.
So we should encode unicode to string before the Wsgiserver
handle it.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
change the login window css to make language selector in the head

The language selector in the footer of the login window, it not a
good ui design. It will reload the window after change the language.
This operation will make the username and password already exsit
gone. That doesn't make sense.

This patch change the language selector to the head.
and Change some css styles to make the login window prefessional.
Add logo to the login window.
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Fix typo on Storage Tab

The column that displays the allocated amount of the storage was named as
"Allocate". Rename it to "Allocated".

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
Update README and packaging files for release

V2->V3:
 - Added libtool dependency for Debian
 - Fixed markdown syntax
 - Added a note about configuring an EPEL repo

V1->V2:
 - Add explicit qemu-kvm dependency for Fedora
 - Change openSUSE dependency from qemu to kvm

Update the README with tested install instructions for the upcoming
release.  Update dependencies list in DEBIAN/control.in,
kimchi.spec.suse.in and kimchi.spec.fedora.in.

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
tests: Add assertIn and assertNotIn for python2.6

Older versions of python do not have implementations of certain assert
statements that are in common use.  Add assertIn and assertNotIn so the
tests will continue to work in python2.6 environments.

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
doc: Restart libvirt after installing packages

On Fedora, libvirtd must be restarted after installing packages in order
for the 'default' network to be created and started.  Update the
documentation accordingly.

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
bug fix: Import missing modules

cherrypy, sys, and logging are being used in Model implementation while
checking for default pool.
Import those modules to avoid errors.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
bug fix: Fix typo while logging information to cherrypy handlers

The cherrypy.log.error function has a parameter called 'severity' instead of
'serverity'. Fix it.
For reference: http://docs.cherrypy.org/dev/refman/_cplogging.html

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
bug fix: Fix log error message when kimchi can not create default pool

The error message had a formatting mask (%s) but it was not being filled up.
Fix it.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
Create default network if it does not exist

The default network must exist and be active in order to Kimchi manage virtual
machines without problems.
So verify if the default network exists and if not create and active it.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
issue #75: Validate parameters when updating a Template

While editing a Template we need to make sure:
     - the template name has at least one character
     - the value specified to memory must be a number
     - the value specified to cpus must be a number

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
tests: Add tests to verify data validation when editing a template

While editing a template verify if template name has at least one character; the
value specified to memory is a number; the value specified to cpus is a number

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
Add spaces around words on "Templates"

The sentence "Templates(2Results)" should have spaces added properly
around the words. With this patch, that sentence will be displayed
"Templates (2 Results)".

Fix issue #179 (No spaces around words on "Templates")

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>