Skip to content

Commit

Permalink
PEP8 Changes and refactoring for Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
struegamer committed Mar 27, 2014
1 parent a8fc2c1 commit 59e6eb9
Show file tree
Hide file tree
Showing 33 changed files with 1,498 additions and 1,871 deletions.
31 changes: 15 additions & 16 deletions components/dc2-admincenter/dc2/admincenter/apps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# -*- coding: utf-8 -*-
#################################################################################
#
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#################################################################################

#from main import Home
#from main import Login
from mainapp import MainAppHandler
from mainapp import MainAppHandler # noqa

Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
# -*- coding: utf-8 -*-
#################################################################################
#
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#################################################################################

from main import MainController
from session import SessionLoginController
from session import SessionLogoutController
from backends import BackendsCtrl
from servers import ServerController
from hosts import HostController
from installstate import InstallStateController
from main import MainController # noqa
from session import SessionLoginController # noqa
from session import SessionLogoutController # noqa
from backends import BackendsCtrl # noqa
from servers import ServerController # noqa
from hosts import HostController # noqa
from installstate import InstallStateController # noqa
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

from backends import BackendsController
from main import MainAdminController
from ribs import AdminRIBController
from interfacetypes import AdminInterfaceTypesController
from inettypes import AdminInetTypesController
from pxe import AdminPXEController
from backends_environments import BackendEnvironmentController
from backends_defaultclasses import BackendDefaultClassesController
from backends_classtemplates import BackendClassTemplatesController
from backends_sysgroups import BackendSysGroupController
from backends_sysusers import BackendSysUserController
from backends_pxemethods import BackendPXEMethodController
from installmethod import AdminInstallMethodController
from backends import BackendsController # noqa
from main import MainAdminController # noqa
from ribs import AdminRIBController # noqa
from interfacetypes import AdminInterfaceTypesController # noqa
from inettypes import AdminInetTypesController # noqa
from pxe import AdminPXEController # noqa
from backends_environments import BackendEnvironmentController # noqa
from backends_defaultclasses import BackendDefaultClassesController # noqa
from backends_classtemplates import BackendClassTemplatesController # noqa
from backends_sysgroups import BackendSysGroupController # noqa
from backends_sysusers import BackendSysUserController # noqa
from backends_pxemethods import BackendPXEMethodController # noqa
from installmethod import AdminInstallMethodController # noqa
Loading

0 comments on commit 59e6eb9

Please sign in to comment.