widgets.objectwidget - Object Widget

A widget to display IObject instances in forms.

class waeup.kofa.widgets.objectwidget.KofaObjectDisplayWidget(context, request, factory, **kw)[source]

Bases: waeup.kofa.widgets.objectwidget.KofaObjectWidget

__doc__ = None
__implemented__ = <implementedBy waeup.kofa.widgets.objectwidget.KofaObjectDisplayWidget>
__module__ = 'waeup.kofa.widgets.objectwidget'
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
_setUpDisplayWidgets()[source]
_setUpWidgets()[source]
display = True
class waeup.kofa.widgets.objectwidget.KofaObjectWidget(context, request, factory, **kw)[source]

Bases: zope.formlib.objectwidget.ObjectWidget

__doc__ = None
__implemented__ = <implementedBy waeup.kofa.widgets.objectwidget.KofaObjectWidget>
__init__(context, request, factory, **kw)[source]
__module__ = 'waeup.kofa.widgets.objectwidget'
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
_getView(request)[source]
_setUpWidgets()[source]
display = False
subwidgets()[source]
class waeup.kofa.widgets.objectwidget.KofaObjectWidgetView(context, request)[source]

Bases: zope.formlib.objectwidget.ObjectWidgetView

__doc__ = None
__module__ = 'waeup.kofa.widgets.objectwidget'
template = <BoundPageTemplateFile of None>