{
"info": {
"author": "Jan Schrewe",
"author_email": "jan@schafproductions.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python"
],
"description": "django mongodbforms\n===================\n\nThis is an implementation of django's model forms for mongoengine\ndocuments.\n\nRequirements\n------------\n\n- Django >= 1.4\n- `mongoengine `__ >= 0.8.3\n\nSupported field types\n---------------------\n\nMongodbforms supports all the fields that have a simple representation\nin Django's formfields (IntField, TextField, etc). In addition it also\nsupports ``ListFields`` and ``MapFields``.\n\nFile fields\n~~~~~~~~~~~\n\nMongodbforms handles file uploads just like the normal Django forms.\nUploaded files are stored in GridFS using the mongoengine fields.\nBecause GridFS has no directories and stores files in a flat space an\nuploaded file whose name already exists gets a unique filename with the\nform ``_.``.\n\nContainer fields\n~~~~~~~~~~~~~~~~\n\nFor container fields like ``ListFields`` and ``MapFields`` a very simple\nwidget is used. The widget renders the container content in the\nappropriate field plus one empty field. This is mainly done to not\nintroduce any Javascript dependencies, the backend code will happily\nhandle any kind of dynamic form, as long as the field ids are\ncontinuously numbered in the POST data.\n\nYou can use any of the other supported fields inside list or map fields.\nIncluding ``FileFields`` which aren't really supported by mongoengine\ninside container fields.\n\nUsage\n-----\n\nmongodbforms supports forms for normal documents and embedded documents.\n\nNormal documents\n~~~~~~~~~~~~~~~~\n\nTo use mongodbforms with normal documents replace djangos forms with\nmongodbform forms.\n\n.. code:: python\n\n from mongodbforms import DocumentForm\n\n class BlogForm(DocumentForm)\n ...\n\nEmbedded documents\n~~~~~~~~~~~~~~~~~~\n\nFor embedded documents use ``EmbeddedDocumentForm``. The Meta-object of\nthe form has to be provided with an embedded field name. The embedded\nobject is appended to this. The form constructor takes a couple of\nadditional arguments: The document the embedded document gets added to\nand an optional position argument.\n\nIf no position is provided the form adds a new embedded document to the\nlist if the form is saved. To edit an embedded document stored in a list\nfield the position argument is required. If you provide a position and\nno instance to the form the instance is automatically loaded using the\nposition argument.\n\nIf the embedded field is a plain embedded field the current object is\nsimply overwritten.\n\n.. code:: python\n\n # forms.py\n from mongodbforms import EmbeddedDocumentForm\n \n class MessageForm(EmbeddedDocumentForm):\n class Meta:\n document = Message\n embedded_field_name = 'messages'\n \n fields = ['subject', 'sender', 'message',]\n\n # views.py\n\n # create a new embedded object\n form = MessageForm(parent_document=some_document, ...)\n # edit the 4th embedded object\n form = MessageForm(parent_document=some_document, position=3, ...)\n\nDocumentation\n-------------\n\nIn theory the documentation `Django's\nmodelform `__\ndocumentation should be all you need (except for one exception; read\non). If you find a discrepancy between something that mongodbforms does\nand what Django's documentation says, you have most likely found a bug.\nPlease `report\nit `__.\n\nForm field generation\n~~~~~~~~~~~~~~~~~~~~~\n\nBecause the fields on mongoengine documents have no notion of form\nfields mongodbform uses a generator class to generate the form field for\na db field, which is not explicitly set.\n\nTo use your own field generator you can either set a generator for your\nwhole project using ``MONGODBFORMS_FIELDGENERATOR`` in settings.py or\nyou can use the ``formfield_generator`` option on the form's Meta class.\n\nThe default generator is defined in ``mongodbforms/fieldgenerator.py``\nand should make it easy to override form fields and widgets. If you set\na generator on the document form you can also pass two dicts\n``field_overrides`` and ``widget_overrides`` to ``__init__``. For a list\nof valid keys have a look at ``MongoFormFieldGenerator``.\n\n.. code:: python\n\n # settings.py\n\n # set the fieldgeneretor for the whole application\n MONGODBFORMS_FIELDGENERATOR = 'myproject.fieldgenerator.GeneratorClass'\n\n # generator.py\n from mongodbforms.fieldgenerator import MongoFormFieldGenerator\n \n class MyFieldGenerator(MongoFormFieldGenerator):\n ...\n\n # forms.py\n from mongodbforms import DocumentForm\n \n from generator import MyFieldGenerator\n \n class MessageForm(DocumentForm):\n class Meta:\n formfield_generator = MyFieldGenerator",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://www.schafproductions.com/projects/django-mongodb-forms/",
"keywords": null,
"license": "New BSD License",
"maintainer": null,
"maintainer_email": null,
"name": "mongodbforms",
"package_url": "https://pypi.org/project/mongodbforms/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/mongodbforms/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://www.schafproductions.com/projects/django-mongodb-forms/"
},
"release_url": "https://pypi.org/project/mongodbforms/0.3/",
"requires_dist": null,
"requires_python": null,
"summary": "An implementation of django forms using mongoengine.",
"version": "0.3"
},
"last_serial": 879034,
"releases": {
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "9f89ac6b58970a9db8d6d61a6df16d91",
"sha256": "b9817629bd7d494fd2554f1bf2e52b1a68dc06d6d1fdef55ffcfc202705bc847"
},
"downloads": -1,
"filename": "mongodbforms-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "9f89ac6b58970a9db8d6d61a6df16d91",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12698,
"upload_time": "2012-01-02T17:35:12",
"url": "https://files.pythonhosted.org/packages/2a/3a/7533b685db76148d7ace1f0a7c1169fe8142d0b73a080ed999d7a13a8c26/mongodbforms-0.1.2.tar.gz"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "529818ec24368dd7a72daba3aec4564c",
"sha256": "d05c84fb48d3e3126199ab09f205916150ffa1549f4a046ed3a748aaff47609a"
},
"downloads": -1,
"filename": "mongodbforms-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "529818ec24368dd7a72daba3aec4564c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13010,
"upload_time": "2012-01-25T18:01:28",
"url": "https://files.pythonhosted.org/packages/8a/cf/5bf662570c194c1e887aeb7d60644a6b4e5d9ca669d74a348f87dfb89562/mongodbforms-0.1.3.tar.gz"
}
],
"0.1.4": [
{
"comment_text": "",
"digests": {
"md5": "c6573f91588ae0c3e67b5010fab6fefe",
"sha256": "7748f3cb46124e01008207fbe9a36e9c1950f1de2d04726a171323a351ef521a"
},
"downloads": -1,
"filename": "mongodbforms-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "c6573f91588ae0c3e67b5010fab6fefe",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13810,
"upload_time": "2012-03-04T17:11:31",
"url": "https://files.pythonhosted.org/packages/ba/7b/781e0665e377c30e74479b6bf5c15c36ef7dbaaa74387e19af741cf8ca88/mongodbforms-0.1.4.tar.gz"
}
],
"0.1.5": [
{
"comment_text": "",
"digests": {
"md5": "485645ad5e1eb11368ee7f94e362e923",
"sha256": "c3bf9826e794b754267e4ee719229b706d5b68f2383126d5534911fdfe5617df"
},
"downloads": -1,
"filename": "mongodbforms-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "485645ad5e1eb11368ee7f94e362e923",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18223,
"upload_time": "2013-06-10T23:41:53",
"url": "https://files.pythonhosted.org/packages/44/35/50abc778983d4de1113e3a1d6c4d7e213ad9d1b97d587837fb668459d018/mongodbforms-0.1.5.tar.gz"
}
],
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "c743999b8afc035dfccf2d67d10fa868",
"sha256": "b971dd1a03c19182b7791f84f6e1fb225d93e4fc480bce1b4223ae8b8487b628"
},
"downloads": -1,
"filename": "mongodbforms-0.2.tar.gz",
"has_sig": false,
"md5_digest": "c743999b8afc035dfccf2d67d10fa868",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23178,
"upload_time": "2013-06-26T14:34:36",
"url": "https://files.pythonhosted.org/packages/c1/f8/f3f3426249931653b89fce38873b39bf2bf03eedfb31d65f8a676b5011cc/mongodbforms-0.2.tar.gz"
}
],
"0.2.1": [
{
"comment_text": "",
"digests": {
"md5": "1768ea7e6775a36b3c5e71ea7da7840b",
"sha256": "ab356c48be25e146bdb122c26cd67adec8a3c2665d86924a1671798cbdaf1cad"
},
"downloads": -1,
"filename": "mongodbforms-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "1768ea7e6775a36b3c5e71ea7da7840b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23533,
"upload_time": "2013-07-08T23:24:54",
"url": "https://files.pythonhosted.org/packages/e0/74/d3cb08ae92b4ac360b028aa2d2d329696700c5aa703b3b48762e0df56241/mongodbforms-0.2.1.tar.gz"
}
],
"0.2.2": [
{
"comment_text": "",
"digests": {
"md5": "8c608375e66791962966becd62cbaf10",
"sha256": "5161cc76b0b7b6516fb5beb34d3d710021bfde01136a718b32d017afdeb83be7"
},
"downloads": -1,
"filename": "mongodbforms-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "8c608375e66791962966becd62cbaf10",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23985,
"upload_time": "2013-07-10T03:40:34",
"url": "https://files.pythonhosted.org/packages/e3/45/a95aebeb61927b38fad25ff828864db06b2a0ec8688b28813bf3b547d91e/mongodbforms-0.2.2.tar.gz"
}
],
"0.3": [
{
"comment_text": "",
"digests": {
"md5": "e4d1ffb6d22b04efb1d4e2e405cddaa5",
"sha256": "e8e3326f5b689074a443404130c6b780539134049ba985025cf5135a2f642458"
},
"downloads": -1,
"filename": "mongodbforms-0.3.tar.gz",
"has_sig": false,
"md5_digest": "e4d1ffb6d22b04efb1d4e2e405cddaa5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 24743,
"upload_time": "2013-10-02T13:29:23",
"url": "https://files.pythonhosted.org/packages/50/cc/00fa38133b97a4f0a9faa7a92d0f5058713d75c4f58e62be64301e5c2176/mongodbforms-0.3.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "e4d1ffb6d22b04efb1d4e2e405cddaa5",
"sha256": "e8e3326f5b689074a443404130c6b780539134049ba985025cf5135a2f642458"
},
"downloads": -1,
"filename": "mongodbforms-0.3.tar.gz",
"has_sig": false,
"md5_digest": "e4d1ffb6d22b04efb1d4e2e405cddaa5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 24743,
"upload_time": "2013-10-02T13:29:23",
"url": "https://files.pythonhosted.org/packages/50/cc/00fa38133b97a4f0a9faa7a92d0f5058713d75c4f58e62be64301e5c2176/mongodbforms-0.3.tar.gz"
}
]
}