collective.formwidget.uberselect-0.1


توضیحات

An uberselection widget for z3c.form.
ویژگی مقدار
سیستم عامل -
نام فایل collective.formwidget.uberselect-0.1
نام collective.formwidget.uberselect
نسخه کتابخانه 0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Malthe Borch
ایمیل نویسنده mborch@gmail.com
آدرس صفحه اصلی UNKNOWN
آدرس اینترنتی https://pypi.org/project/collective.formwidget.uberselect/
مجوز GPL
Overview -------- This package provides a query source compatible with ``z3c.formwidget.query`` which combines to an uberselection widget for the ``z3c.form`` form generation framework. The native value type for the widget is Archetypes UID collections. Example: >>> from collective.formwidget.uberselect.archetypes import \ ... ArchetypesContentSourceBinder >>> class ISelection(interface.Interface): ... items = schema.Set( ... title=u"Selection", ... description=u"Search for content.", ... value_type=schema.Choice( ... source=ArchetypesContentSourceBinder() ... ) ... ) Weak references --------------- A recipe to store references as ``persistent.wref.WeakRef`` instead of UID is to use the ``uid2wref`` adapter between the form and the context. >>> from collective.formwidget.uberselect.wref import uid2wref >>> Factory = uid2wref(ISelection['items']) To store weak references instead of UIDs you would register such a factory as a component adapting the context. The factory automatically provides the interface which defines the field.


نحوه نصب


نصب پکیج whl collective.formwidget.uberselect-0.1:

    pip install collective.formwidget.uberselect-0.1.whl


نصب پکیج tar.gz collective.formwidget.uberselect-0.1:

    pip install collective.formwidget.uberselect-0.1.tar.gz