{ "info": { "author": "Atsushi Odagiri", "author_email": "aodagx@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Pyramid", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": ".. contents::\n\nrebecca.view\n==============\n\n``rebecca.view`` is helper classes for pyramid views.\n\nBasicView methods and properties\n------------------------------------------\n\nproperties\n\n- ``context`` view context passed to constructor\n- ``request`` request passed to constructor\n- ``response`` response attribute of ``request``\n- ``body`` body attribute of ``request``\n\nmethods\n\n- ``redirect(url)`` create HTTPFound object from url\n- ``redirect_route(route_name, **values)`` create HTTPFound object with route_url\n- ``action_dispatch`` call method named ``*_action`` with request param.\n\n\nSoftification\n-------------------------\n\n``Softification`` is context manager to replace Exceptions to the other Exceptions.\n\n::\n\n with Softification(NoResultFound, HTTPNotFound):\n item = DBSession.query(Item).filter(Item.id==id).one()\n\nIf ``one()`` method raises ``NoResultFound`` exception, the context manager catch that \nand raises the HTTPNotFound exception.\nYou can use tuple for target Exception classes.\n\n\nUSAGE\n--------------\n\nBasicView\n++++++++++++++++++\n\nTo use ``BasicView``, inherit that simply.::\n\n class Greeting(BasicView):\n def __call__(self):\n return self.redirect_route('top', v=1)\n\nContributors\n============\n\n- Atsushi Odagiri, Original Author\n\nChangelog\n=========\n\n0.2 (2013-03-11)\n--------------------\n\n- add softification API\n\n\n0.1 (2013-03-10)\n--------------------\n\n- first release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rebeccaframework/rebecca.view", "keywords": "", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "rebecca.view", "package_url": "https://pypi.org/project/rebecca.view/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rebecca.view/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rebeccaframework/rebecca.view" }, "release_url": "https://pypi.org/project/rebecca.view/0.2/", "requires_dist": null, "requires_python": null, "summary": "basic views for pyramid view", "version": "0.2" }, "last_serial": 798620, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "be89ea0137c68f6abd070b2bd6ab3726", "sha256": "d35f45bc7568b095bde25691fed59bde039fbc2284e358917cfb0b2181ecc7ed" }, "downloads": -1, "filename": "rebecca.view-0.1.tar.gz", "has_sig": false, "md5_digest": "be89ea0137c68f6abd070b2bd6ab3726", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3255, "upload_time": "2013-03-10T12:23:28", "url": "https://files.pythonhosted.org/packages/d3/3c/519cf5bd85183c568d3a87361d6fd5365755ca586d3180c37841823211a0/rebecca.view-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6feea6258f86c763ed5982f460eb657c", "sha256": "d128708f7814e397a89adc25300497ab468e5a1a35f1cf74f9f526b80c8438dc" }, "downloads": -1, "filename": "rebecca.view-0.2.tar.gz", "has_sig": false, "md5_digest": "6feea6258f86c763ed5982f460eb657c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3793, "upload_time": "2013-03-11T15:31:53", "url": "https://files.pythonhosted.org/packages/8d/96/4d96dee273f0cfe9bee2f846429c52868474101fd17f2d318230fa3036df/rebecca.view-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6feea6258f86c763ed5982f460eb657c", "sha256": "d128708f7814e397a89adc25300497ab468e5a1a35f1cf74f9f526b80c8438dc" }, "downloads": -1, "filename": "rebecca.view-0.2.tar.gz", "has_sig": false, "md5_digest": "6feea6258f86c763ed5982f460eb657c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3793, "upload_time": "2013-03-11T15:31:53", "url": "https://files.pythonhosted.org/packages/8d/96/4d96dee273f0cfe9bee2f846429c52868474101fd17f2d318230fa3036df/rebecca.view-0.2.tar.gz" } ] }