{ "info": { "author": "Bruno Cezar Rocha", "author_email": "rochacbruno@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "opps.polls\n=========\n\nApplication Poll for Opps\n\n\nOpps\n----\n\nVersion: 0.1.x\n\n\nFeatures\n---------\n* Custom urls\n* Custom templates\n* Single or Multiple choice pool\n* Results page\n* Hide/Show results page\n* Block multiple votes by cookie\n* End date and Start date\n* Allow images for each choice\n* Set min and max allowed choices for voting\n\nRequirements\n-----------\nDjango>1.5\nOpps\n\nInstalation\n----------\n``python setup.py install``\n\nor\n\n``pip install opps-polls``\n\nConfiguration\n-------------\n\n**App**\n\nInclude opps.polls on your django settings\n\n```python\nINSTALLED_APPS += (\n 'opps.polls'\n)\n```\n\n**URL**\n\nInclude in your project urls.py before the opps entry\n\n```python\nurlpatterns = patterns('',\n ...\n ...\n url(r'^poll/', include('opps.polls.urls', namespace='polls', app_name='polls')),\n ...\n url(r'^', include('opps.urls')),\n ...\n ...\n)\n```\n\nCreate the tables\n\n```python\npython manage.py syncdb\n```\nYou should see:\n\n```\n...\nCreating table polls_poll\nCreating table polls_pollpost\nCreating table polls_choice\n...\n```\n\nNow **opps.polls** is available on your Django admin and you can access the url *http://..../poll/*\n\nApplication URLs\n----------------\n\n* List all polls\n /poll/\n* List all polls by channel\n /poll/channel/< channel-slug >\n* Poll voting page\n /poll/< poll-slug >\n* Poll results page\n /poll/< poll-slug >/results (you can use any word here i.e: /poll/< poll-slug >/resultados)\n\nApplication Templates\n---------------\n\nFor any template the context has the following objects:\n\n* poll (The poll)\n* voted (The choices when the user has voted)\n* error (A string message when there is some error)\n\n**Default template files**\n\n* polls/pool_list.html (List all polls)\n* polls/pool_detail.html (Show details and voting form)\n* polls/pool_voted.html (Showed after the user has voted)\n* polls/pool_result.html (Results percentage)\n* polls/pool_closed.html (Showed when poll is not opened for voting or results)\n\n\n**Custom template files**\n\npolls will try to find the most specific template to render.\nYou can choose some ways to force a custom template\nIn order of precedence:\n\n1. Set **template_path** in each poll object\n2. Create a **polls/< channel-slug >/< poll-slug >_.html**\n3. Create a **polls/< channel-slug >_< sufix >.html**\n4. Create a **polls/< poll-slug >_< sufix >.html**\n5. Create a **polls/poll_< sufix >.html**\n\nAvailable sufix are: list, detail, voted, result, closed\n\n\nContacts\n========\nThe place to create issues is `polls github issues `_. The more information you send about an issue, the greater the chance it will get fixed fast.\n\nIf you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list `_, or, if you're on FreeNode (IRC), you can join the chat #opps .\n\n\nLicense\n=======\n\nCopyright 2013 `YACOWS `_. and other contributors\n\nLicensed under the `MIT License `_", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/opps/opps-polls/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://oppsproject.org", "keywords": "poll opps cms django apps magazines websites", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "opps-polls", "package_url": "https://pypi.org/project/opps-polls/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/opps-polls/", "project_urls": { "Download": "https://github.com/opps/opps-polls/tarball/master", "Homepage": "http://oppsproject.org" }, "release_url": "https://pypi.org/project/opps-polls/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Poll App for Opps CMS", "version": "0.1.6" }, "last_serial": 1229290, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "2a7b60ba36b3417854aed26c6a6ffc6d", "sha256": "c034afcc5ba96632a62a7ca9477785aefb514998982df91c9be91fc8469ded1b" }, "downloads": -1, "filename": "opps-polls-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2a7b60ba36b3417854aed26c6a6ffc6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11381, "upload_time": "2013-03-18T19:13:07", "url": "https://files.pythonhosted.org/packages/ca/0e/7dd0b08dd76bae902afb515759d46041030fc58f1754ec895227e8ed2e3d/opps-polls-0.1.2.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "0ff5cdf3c283e64d3ce5dd9de09a33a8", "sha256": "f7dd62e8a49f1e7ab3365e21214a9602b62d5eec20c4437aaf5adeb7678fe9f8" }, "downloads": -1, "filename": "opps-polls-0.1.5.tar.gz", "has_sig": false, "md5_digest": "0ff5cdf3c283e64d3ce5dd9de09a33a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16756, "upload_time": "2013-05-29T02:23:17", "url": "https://files.pythonhosted.org/packages/5a/f0/1513fa41ef5c176359bbc639316691d757711ce9a21e7a53c1b7659e5ea1/opps-polls-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "e64701515682735f664f990a01227bcd", "sha256": "c78f3ae6df59e074325ca7e1204cfe2d0e30eb9fde11d00bd1a18e5a0305d785" }, "downloads": -1, "filename": "opps-polls-0.1.6.tar.gz", "has_sig": false, "md5_digest": "e64701515682735f664f990a01227bcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17246, "upload_time": "2013-07-31T14:05:36", "url": "https://files.pythonhosted.org/packages/ec/7a/a5ce59988c7645da534fa146e8d74e2c82dc3a39d361184439d2fd451801/opps-polls-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e64701515682735f664f990a01227bcd", "sha256": "c78f3ae6df59e074325ca7e1204cfe2d0e30eb9fde11d00bd1a18e5a0305d785" }, "downloads": -1, "filename": "opps-polls-0.1.6.tar.gz", "has_sig": false, "md5_digest": "e64701515682735f664f990a01227bcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17246, "upload_time": "2013-07-31T14:05:36", "url": "https://files.pythonhosted.org/packages/ec/7a/a5ce59988c7645da534fa146e8d74e2c82dc3a39d361184439d2fd451801/opps-polls-0.1.6.tar.gz" } ] }