{ "info": { "author": "Atsushi Odagiri", "author_email": "aodagx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Pyramid", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "rebecca.form\n====================\n\n`pyramid `_ view components based on `FormAlchemy `_ .\n\nComponents\n-------------------\n\n- FormView\n- AddFormView\n- EditFormView\n- DisplayView\n\n\nExamples\n--------------------\n\nModel for Example ::\n\n class Item(Base):\n __tablename__ = 'items'\n id = sa.Column(sa.Integer, primary_key=True)\n name = sa.Column(sa.Unicode(255), nullable=False)\n value = sa.Column(sa.Integer, nullable=False)\n\n def __unicode__(self):\n return u\"Item id={id}, name={name}, value={value}\".format(id=self.id, name=self.name, value=self.value)\n\nAddFormView ::\n\n class AddItemView(AddFormView):\n __x_model__ = Item\n __x_session__ = DBSession\n\nEditFormView ::\n\n class EditItemView(EditFormView):\n __x_factory__ = item_finder\n\nDisplayView ::\n\n class DisplayItemView(DisplayView):\n __x_factory__ = item_finder\n\n`__x_factory__` is callable to find model from request.\n\nUtilities\n----------------------\n\n`MatchDictFinder` queries for specified Model with conditions from `Request.matchdict`.\n\nFor example, create finder for ::\n\n item_finder = MatchDictFinder(Item, DBSession, [(Item.id, 'item_id')])\n\nitem_finder executes like this ::\n\n DBSession.query(Item).filter(Item.id==request.matchdict['item_id']).one()\n\n\nContributors\n============\n\n\n- Atsushi Odagiri, original author\n\nChangelog\n=========\n\n0.1\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.form", "keywords": "", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "rebecca.form", "package_url": "https://pypi.org/project/rebecca.form/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rebecca.form/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rebeccaframework/rebecca.form" }, "release_url": "https://pypi.org/project/rebecca.form/0.1/", "requires_dist": null, "requires_python": null, "summary": "pyramid view components based on formalchemy", "version": "0.1" }, "last_serial": 722968, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5a0348bb83f4412bc61f1fbc9e7253f5", "sha256": "7e29a8bffa4e2ecd165a017a16857642ba7f4af98ad6c8660b5fca9d8121610b" }, "downloads": -1, "filename": "rebecca.form-0.1.tar.gz", "has_sig": false, "md5_digest": "5a0348bb83f4412bc61f1fbc9e7253f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3437, "upload_time": "2012-11-17T09:24:40", "url": "https://files.pythonhosted.org/packages/69/19/c93e6182c31a0af51bcb4dd43b69273d67a6b500cb0d7d998d74d761f15c/rebecca.form-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a0348bb83f4412bc61f1fbc9e7253f5", "sha256": "7e29a8bffa4e2ecd165a017a16857642ba7f4af98ad6c8660b5fca9d8121610b" }, "downloads": -1, "filename": "rebecca.form-0.1.tar.gz", "has_sig": false, "md5_digest": "5a0348bb83f4412bc61f1fbc9e7253f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3437, "upload_time": "2012-11-17T09:24:40", "url": "https://files.pythonhosted.org/packages/69/19/c93e6182c31a0af51bcb4dd43b69273d67a6b500cb0d7d998d74d761f15c/rebecca.form-0.1.tar.gz" } ] }