{ "info": { "author": "Martin Aspeli", "author_email": "optilude@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\nThis package provides a queriable sources (vocabularies) that return PAS\nusers, groups or principals (both users and groups).\n\nThey are registered as named vocabularies, so you can do::\n\n class IMyInterface(Interface):\n users = schema.Choice(title=u\"Users\",\n vocabulary=\"plone.principalsource.Users\")\n \n groups = schema.Choice(title=u\"Groups\",\n vocabulary=\"plone.principalsource.Groups\")\n \n principals = schema.Choice(title=u\"Principals\",\n vocabulary=\"plone.principalsource.Principals\")\n\nThe underlying source (see source.py) implements the IQuerySource interface\nfrom z3c.formwidget.query. This means that it can be used for a query-select\nwidget, including the one in plone.formwidget.autocomplete. \n\nA note about unicode\n--------------------\n\nThe source attempts to make it safe to do a __contains__ check, a getTerm()\nlookup, and searches using unicode strings. This is somewhat constrained by\nthe underlying plugins. In particular, the standard ZODBGroups plugin is\nincapable of searching for groups with unicode titles or ids, and returns\na list of *all* groups if passed a unicode string. As such, the source\nforces all unicode strings used to search for groups to UTF-8 (searching for\nusers is unaffected).\n\nAlso, remember that tokens should be 7-bit ASCII strings. getTermByToken() is\nforgiving in that it silently encodes a unicode string to utf-8, but really\nyou should only pass unicode to this method.\n\n\nChangelog\n=========\n\n1.0 - 2013-06-04\n----------------\n\n* Fix compatibility with Plone 4.3.\n [davisagli]\n\n1.0b1 - 2009-04-17\n------------------\n\n* Initial release", "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/plone.principalsource", "keywords": "plone user group principal source", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "plone.principalsource", "package_url": "https://pypi.org/project/plone.principalsource/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/plone.principalsource/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/plone.principalsource" }, "release_url": "https://pypi.org/project/plone.principalsource/1.0/", "requires_dist": null, "requires_python": null, "summary": "A queriable source for accessing users and/or groups", "version": "1.0" }, "last_serial": 796411, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "be1b0e72b3451271693b5b5a567bd77f", "sha256": "3dbf9301c695a37e31b73e940d2bea67d9b0e5177a28ac692384481d54f41c50" }, "downloads": -1, "filename": "plone.principalsource-1.0.zip", "has_sig": false, "md5_digest": "be1b0e72b3451271693b5b5a567bd77f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19056, "upload_time": "2013-06-04T22:45:55", "url": "https://files.pythonhosted.org/packages/b9/b8/86d79f3271b81b4dc47a1b8adcccf6a64b75d601784f2f7e9a60f9d4dac0/plone.principalsource-1.0.zip" } ], "1.0b1": [ { "comment_text": "", "digests": { "md5": "d968aa937edec0c511fa8e0ffae72ca0", "sha256": "52b0c35c330490cee9776a3ad535279bebed679801448f51b40fee63d92b3755" }, "downloads": -1, "filename": "plone.principalsource-1.0b1.tar.gz", "has_sig": false, "md5_digest": "d968aa937edec0c511fa8e0ffae72ca0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13045, "upload_time": "2009-04-17T06:26:06", "url": "https://files.pythonhosted.org/packages/88/ab/13c7dc7d9636848480ecb3ddeda5e7c6ba792987b200ec3b20372291f46d/plone.principalsource-1.0b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "be1b0e72b3451271693b5b5a567bd77f", "sha256": "3dbf9301c695a37e31b73e940d2bea67d9b0e5177a28ac692384481d54f41c50" }, "downloads": -1, "filename": "plone.principalsource-1.0.zip", "has_sig": false, "md5_digest": "be1b0e72b3451271693b5b5a567bd77f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19056, "upload_time": "2013-06-04T22:45:55", "url": "https://files.pythonhosted.org/packages/b9/b8/86d79f3271b81b4dc47a1b8adcccf6a64b75d601784f2f7e9a60f9d4dac0/plone.principalsource-1.0.zip" } ] }