semvec/pypi-packages huggingface dataset:
django-teamwork 0.2.0
Django app that offers an authorization backend with support for per-object permissions based on combinations of Teams, Roles, and Policies.
License: BSD

django-teamwork is a Django app that offers an authorization backend with
support for per-object permissions based on combinations of Teams, Roles, and
Policies.

- `Build status on travis-ci <http://travis-ci.org/lmorchard/django-teamwork>`_ (|build-status|)
- `Latest documentation on Read The Docs <https://django-teamwork.readthedocs.org/en/latest/>`_
  (`source <https://github.com/lmorchard/django-teamwork/tree/master/docs>`_)


.. |build-status| image:: https://secure.travis-ci.org/lmorchard/django-teamwork.png?branch=master
           :target: http://travis-ci.org/lmorchard/django-teamwork

.. vim:set tw=78 ai fo+=n fo-=l ft=rst:
WTForms-Polyglot 0.2
WTForms companion library to provide polyglot HTML (i.e., XML-compatible) output
License: BSD

WTForms-Polyglot
================

WTForms companion library to provide `polyglot HTML`_ (i.e., XML-compatible)
output.

.. _`polyglot HTML`: http://www.w3.org/TR/html-polyglot/

Polyglot markup is a set of rules for how to write HTML.  A document that uses
polyglot markup is both a valid HTML5 document as well as a well-formed XML
document, that can be served with either a ``text/html`` or an
``application/xhtml+xml`` MIME type.

This package provides the ``PolyglotForm`` class, which is built on top of
WTForms’ default ``Form``.  When using ``PolyglotForm``, fields will be
rendered with polyglot markup.  For example, given the following form::

   from wtf_polyglot import PolyglotForm
   from wtforms import BooleanField

   class MyForm(PolyglotForm):
       foo = BooleanField('foo', default=True)

Rendering ``MyForm.foo`` will result in the following XML-compliant output::

   <input checked="checked" id="foo" name="foo" type="checkbox" value="y" />

In contrast, using WTForms’ default ``Form``, the output would be::

   <input checked id="foo" name="foo" type="checkbox" value="y">

In addition, this package provides a custom implementation of WTForms’
``SubmitField``, which renders as a ``<button>`` instead of an ``<input>``
element.  For example::

   from wtf_polyglot import PolyglotForm, SubmitField

   class MyForm(PolyglotForm):
       foo = SubmitField('Bar')

Produces this output::

   <button id="foo" name="foo" type="submit" value="bar">bar</button>