{ "info": { "author": "Simon Pamies", "author_email": "s.pamies@banality.de", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n------------\n\nThis package provides a complete user interface for ``AdvancedQuery`` by\nDieter Maurer. It enables you to use a powerful language to search for\ncontent. It also provides functionality to save parametrized and conditional\nqueries for later use (predefined queries). Look at the examples for more information.\n\nInstallation\n------------\n\n- Put anthill.querytool in eggs= and zcml=\n- Make sure that AdvancedQuery is installed (works for Plone 3.x)\n\nExample query\n-------------\n\n A query could look like that::\n\n And(\n Eq('SearchableText', '$text'),\n ~Generic('path', {'query':'Members', 'level':-1}),\n\n [[if($allowed_types)]]\n In('portal_types', $allowed_types),\n [[endif]]\n\n [[ifnot($allowed_types)]]\n In('portal_types', ['Folder', 'Document']),\n [[endif]]\n\n Ge('start_date', TODAY)\n )\n\nHere you see that you can parametrize queries (variable expansion enabled\nusing $), you also can use defined constants (only one currently active called TODAY\nwhere TODAY=DateTime()) and you can put conditionals in your queries.\n\nConditionals are a powerful way to enable or disable certain parts of your\nquery. The ``if`` statement checks if a given parameter exists. You can also\nreplace ``if`` with ``ifnot`` that only activates the given part if the\nparameter is not set.\n\nYou can save this query and call it later on like that::\n\n context.query_tool.executePredefinedQuery('contentsearch', text='Test*', allowed_types=['Folder', ])\n\nExtensions\n----------\n\nThis release adds some additional query operators (defined in\nSearchOperators.py). The following operators are currently available:\n\n- ``Count`` counts items in search results. (e.g. Count(Eq('SearchableText', 'moses')) ) \n- ``Sum`` computes sum over int result (e.g. Sum(Ge('commentcount', 10)) )\n- ``Avg`` computes the average over an int result (e.g. Avg(Ge('userviews', 1)) )\n\nLook at SearchOperators.py for examples on how to create your own operators.\n\nSubmit query\n------------\n\n.. image:: http://files.banality.de/public/anthill.querytool.submit.jpg\n\nPredefined queries\n------------------\n\n.. image:: http://files.banality.de/public/anthill.querytool.predefined.jpg\n\nThanks\n------\n\n- Markus Reinsch for coding the predecessor of this package\n- Dieter Maurer for his great implementation of AdvancedQuery\n\nChangelog\n=========\n\n0.2 - 2009/08/21\n----------------\n\n* Revamped documentation [spamsch]\n\n0.1 - 2009/08/20\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://www.banality.de/", "keywords": "anthill plone query advancedquery search", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "anthill.querytool", "package_url": "https://pypi.org/project/anthill.querytool/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/anthill.querytool/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.banality.de/" }, "release_url": "https://pypi.org/project/anthill.querytool/0.2/", "requires_dist": null, "requires_python": null, "summary": "GUI for AdvancedQuery with some extensions - searching the easy way for Plone", "version": "0.2" }, "last_serial": 786298, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8654c338ba66d35a6ce63afdca220f5e", "sha256": "42e4ba3ef5cc1ddf1fac1dbfd9712af1b7f117e18df4d0b201e559de51a96519" }, "downloads": -1, "filename": "anthill.querytool-0.1.tar.gz", "has_sig": false, "md5_digest": "8654c338ba66d35a6ce63afdca220f5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17076, "upload_time": "2009-08-20T01:03:20", "url": "https://files.pythonhosted.org/packages/ce/f3/e8f3cbb636d5f22b443020106d484ecd26e8ae885b62a67e9a9dd6182822/anthill.querytool-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "189e899d1123f4ba9c7fb512acbe0f61", "sha256": "94b89b32220a88c1d84d830438a357e633505354591200145724f34254a3698a" }, "downloads": -1, "filename": "anthill.querytool-0.2.tar.gz", "has_sig": false, "md5_digest": "189e899d1123f4ba9c7fb512acbe0f61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16646, "upload_time": "2009-08-20T12:56:23", "url": "https://files.pythonhosted.org/packages/de/a7/099fb0a54dedd96a827e6559a2b0b3b79dc62ab6950adaea1650d9fd28c7/anthill.querytool-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "189e899d1123f4ba9c7fb512acbe0f61", "sha256": "94b89b32220a88c1d84d830438a357e633505354591200145724f34254a3698a" }, "downloads": -1, "filename": "anthill.querytool-0.2.tar.gz", "has_sig": false, "md5_digest": "189e899d1123f4ba9c7fb512acbe0f61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16646, "upload_time": "2009-08-20T12:56:23", "url": "https://files.pythonhosted.org/packages/de/a7/099fb0a54dedd96a827e6559a2b0b3b79dc62ab6950adaea1650d9fd28c7/anthill.querytool-0.2.tar.gz" } ] }