switch from ddportfolio to debianmemberportfolio

- change all references from ddportfolio to debianmemberportfolio
- rename debianmemberportfolio.controllers.DDPortfolioController to
  debianmemberportfolio.controllers.Controller
- update documentation
- update copyright years, unify file header formatting
This commit is contained in:
Jan Dittberner 2014-02-08 23:54:51 +01:00
parent 780e10494e
commit b670f58c7a
45 changed files with 1217 additions and 1123 deletions

View file

@ -1,25 +1,24 @@
# -*- python -*-
# -*- coding: utf-8 -*-
#
# Debian Member Portfolio service application key ring analyzer tool
# Debian Member Portfolio Service application key ring analyzer tool
#
# Copyright © 2009-2014 Jan Dittberner <jan@dittberner.info>
#
# This file is part of the Debian Member Portfolio service.
# This file is part of the Debian Member Portfolio Service.
#
# Debian Member Portfolio service is free software: you can redistribute it
# Debian Member Portfolio Service is free software: you can redistribute it
# and/or modify it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# published by the Free Software Foundation, either version 3 of the License,
# or (at your option) any later version.
#
# Debian Member Portfolio service is distributed in the hope that it will be
# Debian Member Portfolio Service 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 Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
This is a tool that analyzes GPG and PGP keyrings and stores the
@ -45,7 +44,7 @@ CONFIG = ConfigParser.SafeConfigParser()
def _get_keyrings():
"""
Gets the available keyring files from the keyring directory
configured in ddportfolio.ini.
configured in portfolio.ini.
"""
keyringdir = os.path.expanduser(CONFIG.get('DEFAULT', 'keyring.dir'))
logging.debug("keyring dir is %s", keyringdir)
@ -175,7 +174,7 @@ def process_keyrings():
if __name__ == '__main__':
logging.basicConfig(stream=sys.stderr, level=logging.WARNING)
CONFIG.readfp(pkg_resources.resource_stream(
__name__, 'ddportfolio.ini'))
__name__, 'portfolio.ini'))
gpghome = os.path.expanduser(CONFIG.get('DEFAULT', 'gnupghome'))
if not os.path.isdir(gpghome):
os.makedirs(gpghome, 0700)