accesscodes.catalog – AC Catalog Components

Cataloging and searching components for access codes.

class waeup.kofa.accesscodes.catalog.AccessCodeQueryResultItem(context, view)[source]

Bases: object

__dict__ = dict_proxy({'__providedBy__': <_interface_coptimizations.ObjectSpecificationDescriptor object at 0x2ba7d007e2b0>, '__module__': 'waeup.kofa.accesscodes.catalog', 'description': u'Some access code found in a search', 'title': u'Access Code Query Item', '__provides__': <zope.interface.declarations.ClassProvides object at 0x2ba7d58228d0>, '__dict__': <attribute '__dict__' of 'AccessCodeQueryResultItem' objects>, '__implemented__': <implementedBy waeup.kofa.accesscodes.catalog.AccessCodeQueryResultItem>, '__weakref__': <attribute '__weakref__' of 'AccessCodeQueryResultItem' objects>, '__doc__': None, '__init__': <function __init__ at 0x2ba7d5820b90>})
__doc__ = None
__implemented__ = <implementedBy waeup.kofa.accesscodes.catalog.AccessCodeQueryResultItem>
__init__(context, view)[source]
__module__ = 'waeup.kofa.accesscodes.catalog'
__providedBy__

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']
__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']
__weakref__

list of weak references to the object (if defined)

description = u'Some access code found in a search'
title = u'Access Code Query Item'
waeup.kofa.accesscodes.catalog.search(query=None, searchtype=None, view=None)[source]