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 0x7f402dea22c0>, '__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 0x7f40277c5350>, '__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 0x7f40277c46e0>})
__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]