This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

WTForms for Mongoengine documents

Project Description

WTFMongoengine creates WTForms Form classes from Mongoengine Document objects. Example:

from mongoengine import document, fields
from wtfmongoengine.forms import DocumentForm

class User(document.Document):
    first_name = fields.StringField(
        verbose_name='First name',
        max_length=50,
        required=True,
    )
    last_name = fields.StringField(
        verbose_name='Last name',
        max_length=50,
        required=False,
    )
    email = fields.EmailField(
        verbose_name='E-mail address',
        required=True,
    )

class UserForm(DocumentForm):
    class Meta:
        document_class = User

        # In case you only want to include ``first_name`` in the form
        # fields = ('first_name',)

        # In case you want to exclude ``email`` from the form
        # exclude = ('email',)

Changelog

0.1.2

  • Dependency fix (wtforms was in tests_require, needed to be in install_requires).

0.1.1

  • Example updates.
  • Fix: README.rst and LICENSE included in package.

0.1

  • Initial release.
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
WTFMongoengine-0.1.2.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Feb 24, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting