1
##############################################################################
3
# Copyright (c) 2002 Zope Corporation and Contributors.
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE.
13
##############################################################################
14
"""Content Type convenience lookup functions
16
$Id: __init__.py 67630 2006-04-27 00:54:03Z jim $
18
__docformat__ = 'restructuredtext'
19
from zope.interface import classProvides
20
from zope.schema.interfaces import IVocabularyFactory
21
from zope.app.interface import queryType
22
from zope.app.content.interfaces import IContentType
23
from zope.app.component.vocabulary import UtilityVocabulary
25
def queryContentType(object):
26
"""Returns the interface implemented by object which implements
28
return queryType(object, IContentType)
30
class ContentTypesVocabulary(UtilityVocabulary):
31
classProvides(IVocabularyFactory)
32
interface = IContentType