-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PEP8 Changes and refactoring for Python3
- Loading branch information
1 parent
a8fc2c1
commit 59e6eb9
Showing
33 changed files
with
1,498 additions
and
1,871 deletions.
There are no files selected for viewing
31 changes: 15 additions & 16 deletions
31
components/dc2-admincenter/dc2/admincenter/apps/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
43 changes: 21 additions & 22 deletions
43
components/dc2-admincenter/dc2/admincenter/apps/controllers/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
55 changes: 27 additions & 28 deletions
55
components/dc2-admincenter/dc2/admincenter/apps/controllers/admin/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.