PEP-8-ified the work of the last days.
Renamed methods in class Alias:
addDestination() -> add_destination()
delDestination() -> del_destination()
getDestinations() -> get_destinations()
Renamed methods in class Relocated:
setDestination() -> set_destination()
getInfo() -> get_info()
Renamed VMM/constants/VERSION.py -> VMM/constants/version.py
Adjusted relevant parts of the documentation.
#!/usr/bin/env python# -*- coding: utf-8 -*-# Copyright 2007 - 2010, Pascal Volk# See COPYING for distribution information.importosfromdistutils.coreimportsetupfromdistutils.distimportDistributionMetadataVERSION='0.5.2'descr='Tool to manage mail domains/accounts/aliases for Dovecot and Postfix'long_description="""vmm, a virtual mail manager, is a command line tool foradministrators/postmasters to manage (alias-)domains, accounts,aliases and relocated users.It is designed for Dovecot and Postfix with a PostgreSQL backend."""packages=['VirtualMailManager','VirtualMailManager.ext','VirtualMailManager.constants']classifiers=['Development Status :: 5 - Production/Stable','Environment :: Console','Intended Audience :: System Administrators','License :: OSI Approved :: BSD License','Natural Language :: Dutch','Natural Language :: English','Natural Language :: French','Natural Language :: German','Operating System :: POSIX','Operating System :: POSIX :: BSD','Operating System :: POSIX :: Linux','Operating System :: POSIX :: Other','Programming Language :: Python','Topic :: Communications :: Email','Topic :: System :: Systems Administration','Topic :: Utilities']# sucessfuly tested on:platforms=['freebsd7','linux2','openbsd4']# remove existing MANIFESTifos.path.exists('MANIFEST'):os.remove('MANIFEST')setup_args={'name':'VirtualMailManager','version':VERSION,'description':descr,'long_description':long_description,'packages':packages,'author':'Pascal Volk','author_email':'neverseen@users.sourceforge.net','license':'BSD License','url':'http://vmm.localdomain.org/','download_url':'http://sf.net/projects/vmm/files/','platforms':platforms,'classifiers':classifiers}if'requires'inDistributionMetadata._METHOD_BASENAMES:setup_args['requires']=['pyPgSQL']setup(**setup_args)