{ "info": { "author": "Wichert Akkerman", "author_email": "wichert@wiggy.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Plone", "Framework :: Zope2", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\nThis package provides a method to configure an application via standard\n``.ini`` files. This is convenient for site admins since they are more\nlikely to be familiar with ini files than with ZCML.\n\n\nCreating config files\n=====================\nThere are two ways to tell a Zope instance which configuration files to\nload: zcml statements and the APPCONFIG environment variable. zcml statements\nare processed first, making it possible to override standard configuration.\n\nThe zcml syntax looks like this::\n\n \n \n \n \n\nThis will load the contents of ``default.ini`` and merge it into the\napplication configuration.\n\nIf an APPCONFIG environment variable is set and points to a file\nits contents will be merged into the application configuration. This is done\nlast, allowing you to override application defined defaults. For example::\n\n $ APPCONFIG=etc/mysite.ini bin/instance fg\n\n\nAccessing configuration\n=======================\n\nThe configuration data can be accessed from your code via a IAppConfig utility.\nThis utility is essentially a standard python dictionary which stores all\nconfiguration data. For example lets use a very simple configuration file::\n\n [site]\n title = My lovely site\n\nYou can access the title from python with code like this::\n\n from zope.component import getUtility\n from z3c.appconfig.interfaces import IAppConfig\n\n appconfig=getUtility(IAppConfig)\n print \"Site title is: %s\" % appconfig[\"site\"][\"title\"]\n\n\nUtility methods\n===============\n\nAs a convenience a utility method is provided to convert values from a\nconfiguration file to booleans: the ``z3c.appconfig.utils.asBool`` method::\n\n from z3c.appconfig.utils import asBool\n print \"Pants are on: %s\" % asBool(\"true\")\n\n\n\nChangelog\n=========\n\n1.0 (2011-01-24)\n----------------\n\n- Add more trove classifiers.\n [wichert]\n\n- Add a ``asBool`` utility method.\n [wichert]\n\n\n\n1.0b1 (2010-05-17)\n------------------\n\n- Initial release.\n [wichert]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://svn.plone.org/svn/collective/", "keywords": "", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "z3c.appconfig", "package_url": "https://pypi.org/project/z3c.appconfig/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/z3c.appconfig/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/" }, "release_url": "https://pypi.org/project/z3c.appconfig/1.0/", "requires_dist": null, "requires_python": null, "summary": "Simple application configuration system", "version": "1.0" }, "last_serial": 635888, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "84de07244213b7bf4d6bd87b7ee46b93", "sha256": "20164eb39c1bdfbac56d7a52483cc925f603c22df77b947f429537528c0c3f73" }, "downloads": -1, "filename": "z3c.appconfig-1.0.tar.gz", "has_sig": false, "md5_digest": "84de07244213b7bf4d6bd87b7ee46b93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5678, "upload_time": "2011-01-24T10:11:33", "url": "https://files.pythonhosted.org/packages/f9/86/dbdba9b8e0312c2d12f46669e549fca78aaca830a69cc95aa5c5b1b067fd/z3c.appconfig-1.0.tar.gz" } ], "1.0b1": [ { "comment_text": "", "digests": { "md5": "8149008b426e89dd394192e12749df94", "sha256": "d1cf9eedd80f8698a9e611ebda0c2ac8948e588eff86d5844739363cce8c9f61" }, "downloads": -1, "filename": "z3c.appconfig-1.0b1.tar.gz", "has_sig": false, "md5_digest": "8149008b426e89dd394192e12749df94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4853, "upload_time": "2010-05-17T16:20:16", "url": "https://files.pythonhosted.org/packages/95/7f/22e767c9dadfe397aba4ec110aa141ed8f2f0c1c82dbc4d9bd0a723f0f18/z3c.appconfig-1.0b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "84de07244213b7bf4d6bd87b7ee46b93", "sha256": "20164eb39c1bdfbac56d7a52483cc925f603c22df77b947f429537528c0c3f73" }, "downloads": -1, "filename": "z3c.appconfig-1.0.tar.gz", "has_sig": false, "md5_digest": "84de07244213b7bf4d6bd87b7ee46b93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5678, "upload_time": "2011-01-24T10:11:33", "url": "https://files.pythonhosted.org/packages/f9/86/dbdba9b8e0312c2d12f46669e549fca78aaca830a69cc95aa5c5b1b067fd/z3c.appconfig-1.0.tar.gz" } ] }