{ "info": { "author": "Daniel Havlik", "author_email": "dh@gocept.com", "bugtrack_url": null, "classifiers": [], "description": "A country widget for Archetypes\n\nAdds a new tool, ``portal_countryutil`` to the Plone root, which lets\nyou manage a list of areas which may contain several countries from the\nofficial ISO-country list via the ZMI. A complete list of areas and\ntheir countries is being created at install time.\n\nProvides three widgets which you can use in your own Archetype:\n\nCountryWidget\n the areas and countries defined in the country tool are then rendered as a dropdown (with ).\n\nAreaWidget\n provides a dropdown with all areas you have defined.\n \nMultiCountryWidget\n for use with LinesField, lets you select multiple countries\n\n\nExamples\n--------\n\nHere is some code that demonstrates how to use those widgets::\n\n ---- YourArcheType.py ----\n\n # Import the widget/s:\n from Products.ATCountryWidget.Widget import CountryWidget, AreaWidget\n\n # Define the field/s in your schema:\n [...]\n\n StringField(\n 'country',\n validators=('isValidISOCountry',),\n widget=CountryWidget(label='Country',\n provideNullValue=1, # this is default\n nullValueTitle='-', # this is default\n omitCountries=None, # this is default, can be a \n # list of country codes which \n # are not displayed\n description='Select a country')\n ),\n\n [... and/or ...]\n\n StringField(\n 'area',\n widget=AreaWidget(label='Area',\n provideNullValue=1, # this is default\n nullValueTitle='-', # this is default\n description='Select an area')\n ),\n\n [... and/or ...]\n\n LinesField(\n 'countries',\n widget=MultiCountryWidget(label='Countries',\n omitCountries=None, # this is default, can be a \n # list of country codes which \n # are not displayed\n description='Select countries')\n ),\n\n [...]\n\n\nUse without Archetypes\n----------------------\n\nTo use your countrylist in a custom page template outside of an\nArchetype (e.g. in a search form) you can directly use the API the\ncountry tool provides::\n\n \n\nFor more details on how to customize content-types, add custom fields to\ncontent-types, see Martin's tutorial: http://plone.org/documentation/kb/richdocument/extending-atct\n\nChangelog\n=========\n\n2011-04-11\n - Release Plone 4 compat version\n\n2009-02-21\n - Released as egg.\n\n2006-04-19\n - Added patch from Norman H. Voss (missing country/rearranged default areas)\n - Updated README to cover MultiCountryWidget\n\n2006-03-14\n - Added multiselect widget (MultiCountryWidget)\n\n2005-09-02\n - Compatibility with Plone 2.1 (RC3)\n\n2005-06-29\n - Added parameter 'omitCountries' to CountryWidget. Country ISO\n codes in this list are omitted from display in selection.\n\n2005-02-20\n - added listing of languages and their two letter ISO codes\n\n2004-08-30\n - release 0.2\n - added area-widget\n - provideNullValue & nullValue properties for widgets\n - creation of complete area-country structure in installer\n - migrated to AT 1.3 beta\n\n2004-07-05\n - release 0.1.1\n - added validator\n\n2004-06-29\n - initial release 0.1\n\nAuthors\n=======\n\nChristian Zagrodnick (cz@gocept.com)\nMichael Howitz (mh@gocept.com)\nDaniel Havlik (dh@gocept.com)\n\nAdditional credits:\n-------------------\n\n - Norman H. Voss for a patch (04/2006)\n - Alex Clark for releasing Plone 4 compat version (from gocept trunk\n moved to the collective, 04/2011)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/Products.ATCountryWidget", "keywords": "archetypes plone", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "Products.ATCountryWidget", "package_url": "https://pypi.org/project/Products.ATCountryWidget/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Products.ATCountryWidget/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/Products.ATCountryWidget" }, "release_url": "https://pypi.org/project/Products.ATCountryWidget/0.2.6/", "requires_dist": null, "requires_python": null, "summary": "A country widget for Archetypes", "version": "0.2.6" }, "last_serial": 784958, "releases": { "0.2.5": [ { "comment_text": "", "digests": { "md5": "c403c0ff42bab51fa3a949c73ca9a127", "sha256": "68c8025e545080c8c9635eeb9c31ae07494e5068d68721b6c8fd22c1cd3a4373" }, "downloads": -1, "filename": "Products.ATCountryWidget-0.2.5.tar.gz", "has_sig": false, "md5_digest": "c403c0ff42bab51fa3a949c73ca9a127", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25642, "upload_time": "2009-02-21T20:32:32", "url": "https://files.pythonhosted.org/packages/7a/3e/7ec7dc7d7dd38d05ee10140681e5d0bf1036721beb92cc6477eb00cf1f5c/Products.ATCountryWidget-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "a264e414463e0a892caecd4da50412cc", "sha256": "329600d2778bd3000548710ae5298790850a55aedf1b024021fb5d1287b8b1ac" }, "downloads": -1, "filename": "Products.ATCountryWidget-0.2.6.zip", "has_sig": false, "md5_digest": "a264e414463e0a892caecd4da50412cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46637, "upload_time": "2011-04-12T02:57:45", "url": "https://files.pythonhosted.org/packages/f3/b3/3860289dfd1a5c0d6f864a1f2d90b9651cff9e4c3423d4b4b52dd99afa54/Products.ATCountryWidget-0.2.6.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a264e414463e0a892caecd4da50412cc", "sha256": "329600d2778bd3000548710ae5298790850a55aedf1b024021fb5d1287b8b1ac" }, "downloads": -1, "filename": "Products.ATCountryWidget-0.2.6.zip", "has_sig": false, "md5_digest": "a264e414463e0a892caecd4da50412cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46637, "upload_time": "2011-04-12T02:57:45", "url": "https://files.pythonhosted.org/packages/f3/b3/3860289dfd1a5c0d6f864a1f2d90b9651cff9e4c3423d4b4b52dd99afa54/Products.ATCountryWidget-0.2.6.zip" } ] }