make qa (pep8) fixes for setup.py

setup.py:9:29: E272 multiple spaces before keyword
setup.py:49:34: E712 comparison to True should be 'if cond is True:' or 'if cond:'
setup.py:438:9: E123 closing bracket does not match indentation of opening bracket's line
setup.py:632:33: E127 continuation line over-indented for visual indent
setup.py:637:34: E127 continuation line over-indented for visual indent
make qa (pep8) fixes for bin/cobblerd

bin/cobblerd:61:9: E128 continuation line under-indented for visual indent
bin/cobblerd:63:9: E128 continuation line under-indented for visual indent
bin/cobblerd:65:9: E128 continuation line under-indented for visual indent
bin/cobblerd:67:9: E128 continuation line under-indented for visual indent
make qa (pep8) fixes for bin/services.py

bin/services.py:107:2: E111 indentation is not a multiple of four
make qa (pep8) fixes for cobbler/action_sync.py

cobbler/action_sync.py:188:20: E713 test for membership should be 'not in'
make qa (pep8) fixes for cobbler/api.py

cobbler/api.py:127:90: E502 the backslash is redundant between brackets
cobbler/api.py:128:57: E502 the backslash is redundant between brackets
make qa (pep8) fixes for cobbler/modules/manage_dnsmasq.py

cobbler/modules/manage_dnsmasq.py:136:20: E713 test for membership should be 'not in'
make qa (pep8) fixes for cobbler/template_api.py

cobbler/template_api.py:124:12: E713 test for membership should be 'not in'
cobbler/template_api.py:146:21: E128 continuation line under-indented for visual indent
cobbler/template_api.py:191:20: E713 test for membership should be 'not in'
make qa (pep8) fixes for cobbler/utils.py

cobbler/utils.py:217:8: E713 test for membership should be 'not in'
cobbler/utils.py:622:16: E713 test for membership should be 'not in'
cobbler/utils.py:657:24: E713 test for membership should be 'not in'
cobbler/utils.py:829:8: E713 test for membership should be 'not in'
cobbler/utils.py:870:13: E711 comparison to None should be 'if cond is None:'
cobbler/utils.py:1304:8: E713 test for membership should be 'not in'
cobbler/utils.py:1307:8: E713 test for membership should be 'not in'
cobbler/utils.py:1330:8: E713 test for membership should be 'not in'
cobbler/utils.py:1605:75: E502 the backslash is redundant between brackets
cobbler/utils.py:1609:73: E502 the backslash is redundant between brackets
cobbler/utils.py:1610:71: E502 the backslash is redundant between brackets
cobbler/utils.py:1614:85: E502 the backslash is redundant between brackets
make qa (pep8) fixes for cobbler/yumgen.py

cobbler/yumgen.py:59:12: E713 test for membership should be 'not in'
cobbler/yumgen.py:69:16: E713 test for membership should be 'not in'
cobbler/yumgen.py:75:16: E713 test for membership should be 'not in'
make qa (pep8) fixes for web/cobbler_web/views.py

web/cobbler_web/views.py:190:28: E711 comparison to None should be 'if cond is not None:'
web/cobbler_web/views.py:299:13: E711 comparison to None should be 'if cond is None:'
web/cobbler_web/views.py:448:17: E711 comparison to None should be 'if cond is None:'
web/cobbler_web/views.py:471:17: E711 comparison to None should be 'if cond is None:'
web/cobbler_web/views.py:494:17: E711 comparison to None should be 'if cond is None:'
web/cobbler_web/views.py:684:8: E714 test for object identity should be 'is not'
web/cobbler_web/views.py:718:20: E711 comparison to None should be 'if cond is None:'
web/cobbler_web/views.py:776:8: E714 test for object identity should be 'is not'
web/cobbler_web/views.py:1077:17: E711 comparison to None should be 'if cond is not None:'
web/cobbler_web/views.py:1089:8: E714 test for object identity should be 'is not'
web/cobbler_web/views.py:1133:12: E713 test for membership should be 'not in'
web/cobbler_web/views.py:1239:22: E711 comparison to None should be 'if cond is not None:'
check validity of profile or image before saving

this fixes a bug in the web UI where saving a system silently
failed if neither profile nor image were given. The cli checks
that case and returns an error
Merge pull request #957 from ciupicri/pep8-fixes

make qa (pep8) fixes
Update views.py

forgot to change errormassage before pushing the branch
Merge pull request #962 from klassenpeter/bug_save_system

check validity of profile or image before saving