collective.select2-1.1


توضیحات

User token widget
ویژگی مقدار
سیستم عامل -
نام فایل collective.select2-1.1
نام collective.select2
نسخه کتابخانه 1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده UNKNOWN
ایمیل نویسنده UNKNOWN
آدرس صفحه اصلی http://svn.plone.org/svn/collective/
آدرس اینترنتی https://pypi.org/project/collective.select2/
مجوز gpl
.. contents:: Introduction ============ `Select2`_ integration for `Plone`_ and `z3c.form`_ Example:: from zope import schema from zope.interface import Interface from .field import Select2MultiField from .field import Select2Field class ISchema(Interface): users = Select2MultiField( title=u"Users", value_type=schema.Choice( title=u"User ID", source="plone.app.vocabularies.Users" ), search_view=lambda x: '{}/select2-users-search'.format(x), required=True ) user = Select2Field( title=u"Single User", source="plone.app.vocabularies.Users", search_view=lambda x: '{}/select2-users-search'.format(x), placeholder="Search and select a user", required=True ) categories = Select2MultiField( title=u"Categories", value_type=schema.TextLine( title=u"Category" ), search_view=lambda x: '{}/select2-subjects-search'.format(x), required=False ) .. _`Select2`: http://ivaynberg.github.io/select2/ .. _`Plone`: http://plone.org .. _`z3c.form`: https://pypi.python.org/pypi/z3c.form Contributors ============ - Giorgio Borelli [gborelli], Original Author Changelog ========= 1.1 (2014-06-04) ---------------- - Fixed z3c.form meta.zcml include [gborelli] - Restricted demo view to Manager role [gborelli] - Add placeholder attribute on single and multiple selection widgets [jslucas] 1.0b (2014-05-14) ----------------- - Register categories and users search views to INavigationRoot [gborelli] - Add specific fields for single and multiple selection widgets [gborelli] - Improved IUserTokenInputWidget and UserSearch view [gborelli] - Package created using templer [gborelli]


نحوه نصب


نصب پکیج whl collective.select2-1.1:

    pip install collective.select2-1.1.whl


نصب پکیج tar.gz collective.select2-1.1:

    pip install collective.select2-1.1.tar.gz