{ "info": { "author": "Christian Klinger", "author_email": "cklinger@novareto.de", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": "=============\r\nmegrok.nozodb\r\n=============\r\n\r\nThe main purpose of this package is to provide support for \r\nenabling Grok applications to be run as aster served WSGI\r\napplications without using the zodb.\r\n\r\n\r\nUsing megrok.nozodb\r\n-------------------\r\n\r\nTo setup a grok environment which works without the zodb you \r\nhave to replace the paster-application-factory which typically is\r\nlocated in the debug.ini and in the deploy.ini: To be concrete\r\nreplace grokcore.startup#... with megrok.nozodb#nozodb\r\n\r\n [app:grok]\r\n use = egg:megrok.nozodb#nozodb\r\n\r\n\r\nThe next you have to do is setting up global utility which\r\nacts as an ApplicationRoot which is a starting point for your application. \r\nmegrok.nozodb has an ungrokked default one. You can subclass from it or \r\nprovide your own stuff which acts as ApplicationRoot.::\r\n\r\n\r\n >>> from megrok.nozodb import ApplicationRoot\r\n\r\n >>> class MyApplicationRoot(ApplicationRoot):\r\n ... pass\r\n\r\n >>> myapp = MyApplicationRoot()\r\n >>> from zope.site.interfaces import IRootFolder\r\n >>> IRootFolder.providedBy(myapp)\r\n True\r\n\r\n >>> from grok.interfaces import IApplication\r\n >>> IApplication.providedBy(myapp)\r\n True\r\n\r\n >>> from zope.location import ILocation\r\n >>> ILocation.providedBy(myapp)\r\n True\r\n\r\n >>> from zope.interface.verify import verifyObject\r\n >>> from zope.component.interfaces import ISite\r\n >>> verifyObject(ISite, myapp)\r\n True\r\n\r\n\r\nAPI Documentation\r\n-----------------\r\n\r\nWe have to create a simple site definition file, which is also quite\r\nplain::\r\n\r\n >>> import os, tempfile\r\n >>> temp_dir = tempfile.mkdtemp()\r\n\r\n >>> sitezcml = os.path.join(temp_dir, 'site.zcml')\r\n >>> open(sitezcml, 'w').write('')\r\n\r\n >>> zope_conf = os.path.join(temp_dir, 'zope.conf')\r\n >>> open(zope_conf, 'wb').write('''\r\n ... site-definition %s\r\n ...\r\n ... \r\n ... \r\n ...\r\n ... \r\n ... \r\n ... path STDOUT\r\n ... \r\n ... \r\n ... ''' %sitezcml)\r\n\r\n\r\n >>> from megrok.nozodb import nozodb_factory\r\n >>> app_factory = nozodb_factory({'zope_conf': zope_conf})\r\n\r\n Clean up the temp_dir\r\n\r\n >>> import shutil\r\n >>> shutil.rmtree(temp_dir)\r\n\r\n\r\n\r\nChangelog\r\n=========\r\n\r\n0.1 (2010-11-04)\r\n----------------\r\n\r\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", "keywords": "grok wsgi zodb", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "megrok.nozodb", "package_url": "https://pypi.org/project/megrok.nozodb/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/megrok.nozodb/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi" }, "release_url": "https://pypi.org/project/megrok.nozodb/0.1/", "requires_dist": null, "requires_python": null, "summary": "This package allows you to run grok without the zodb", "version": "0.1" }, "last_serial": 794647, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6b9e7f62b10c0d121ac6dcd8973494cb", "sha256": "1e81f69cf4b1ba17f34ddbcf772cb72ad7267adbc2d41c06115b069014894ab1" }, "downloads": -1, "filename": "megrok.nozodb-0.1.tar.gz", "has_sig": false, "md5_digest": "6b9e7f62b10c0d121ac6dcd8973494cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8728, "upload_time": "2010-11-04T21:48:15", "url": "https://files.pythonhosted.org/packages/86/05/88d5e4eb037c6574ae556dd05e7fced7656e95ea668b0a3ff07da73c7da2/megrok.nozodb-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b9e7f62b10c0d121ac6dcd8973494cb", "sha256": "1e81f69cf4b1ba17f34ddbcf772cb72ad7267adbc2d41c06115b069014894ab1" }, "downloads": -1, "filename": "megrok.nozodb-0.1.tar.gz", "has_sig": false, "md5_digest": "6b9e7f62b10c0d121ac6dcd8973494cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8728, "upload_time": "2010-11-04T21:48:15", "url": "https://files.pythonhosted.org/packages/86/05/88d5e4eb037c6574ae556dd05e7fced7656e95ea668b0a3ff07da73c7da2/megrok.nozodb-0.1.tar.gz" } ] }