Back to index

plone3  3.1.7
atapi.py
Go to the documentation of this file.
00001 ################################################################################
00002 #
00003 # Copyright (c) 2002-2005, Benjamin Saller <bcsaller@ideasuite.com>, and
00004 #                              the respective authors. All rights reserved.
00005 # For a list of Archetypes contributors see docs/CREDITS.txt.
00006 #
00007 # Redistribution and use in source and binary forms, with or without
00008 # modification, are permitted provided that the following conditions are met:
00009 #
00010 # * Redistributions of source code must retain the above copyright notice, this
00011 #   list of conditions and the following disclaimer.
00012 # * Redistributions in binary form must reproduce the above copyright notice,
00013 #   this list of conditions and the following disclaimer in the documentation
00014 #   and/or other materials provided with the distribution.
00015 # * Neither the name of the author nor the names of its contributors may be used
00016 #   to endorse or promote products derived from this software without specific
00017 #   prior written permission.
00018 #
00019 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00020 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00021 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00022 # FOR A PARTICULAR PURPOSE.
00023 #
00024 ################################################################################
00025 
00026 # registering and type processing
00027 from Products.Archetypes.ArchetypeTool import registerType
00028 from Products.Archetypes.ArchetypeTool import process_types
00029 from Products.Archetypes.ArchetypeTool import listTypes
00030 from Products.Archetypes.ArchetypeTool import registerClasses
00031 # base classes
00032 from Products.Archetypes.BaseObject import BaseObject
00033 from Products.Archetypes.BaseContent import BaseContent
00034 from Products.Archetypes.BaseContent import BaseContentMixin
00035 from Products.Archetypes.BaseFolder import BaseFolder
00036 from Products.Archetypes.BaseFolder import BaseFolderMixin
00037 from Products.Archetypes.BaseBTreeFolder import BaseBTreeFolder
00038 from Products.Archetypes.OrderedBaseFolder import OrderedBaseFolder
00039 from Products.Archetypes.ExtensibleMetadata import ExtensibleMetadata
00040 # base class schemata instances
00041 from Products.Archetypes.BaseObject import MinimalSchema
00042 from Products.Archetypes.BaseContent import BaseSchema
00043 from Products.Archetypes.BaseFolder import BaseFolderSchema
00044 from Products.Archetypes.BaseBTreeFolder import BaseBTreeFolderSchema
00045 from Products.Archetypes.OrderedBaseFolder import OrderedBaseFolderSchema
00046 from Products.Archetypes.ExtensibleMetadata import ExtensibleMetadataSchema
00047 # schemata classes
00048 from Products.Archetypes.Schema import BasicSchema
00049 from Products.Archetypes.Schema import Schema
00050 from Products.Archetypes.Schema import MetadataSchema
00051 from Products.Archetypes.Schema import ManagedSchema
00052 from Products.Archetypes.TemplateMixin import TemplateMixinSchema
00053 from Products.Archetypes.Schema.Composite import CompositeSchema
00054 from Products.Archetypes.Schema.Facade import FacadeMetadataSchema
00055 from Products.Archetypes.VariableSchemaSupport import VariableSchemaSupport
00056 # marshaller
00057 from Products.Archetypes.Marshall import PrimaryFieldMarshaller
00058 from Products.Archetypes.Marshall import RFC822Marshaller
00059 # fields
00060 from Products.Archetypes.Field import *
00061 # widgets
00062 from Products.Archetypes.Widget import *
00063 # storage
00064 from Products.Archetypes.Storage import *
00065 from Products.Archetypes.Storage.annotation import AnnotationStorage
00066 from Products.Archetypes.Storage.annotation import MetadataAnnotationStorage 
00067 from Products.Archetypes.AggregatedStorage import AggregatedStorage
00068 from Products.Archetypes.SQLStorage import BaseSQLStorage
00069 from Products.Archetypes.SQLStorage import GadflySQLStorage
00070 from Products.Archetypes.SQLStorage import MySQLSQLStorage
00071 from Products.Archetypes.SQLStorage import PostgreSQLStorage
00072 from Products.Archetypes.SQLStorage import SQLServerStorage
00073 # annotation
00074 from Products.Archetypes.annotations import getAnnotation
00075 from Products.Archetypes.annotations import AT_ANN_STORAGE
00076 from Products.Archetypes.annotations import AT_MD_STORAGE
00077 from Products.Archetypes.annotations import AT_FIELD_MD
00078 from Products.Archetypes.annotations import AT_REF
00079 # misc
00080 from Products.Archetypes.utils import DisplayList
00081 from Products.Archetypes.utils import IntDisplayList
00082 from Products.Archetypes.utils import Vocabulary
00083 from Products.Archetypes.ClassGen import AT_GENERATE_METHOD
00084 from Products.Archetypes.BaseUnit import BaseUnit
00085 from Products.Archetypes.TemplateMixin import TemplateMixin
00086 from Products.Archetypes.debug import log
00087 from Products.Archetypes.debug import log_exc
00088 from Products.Archetypes.BaseObject import AttributeValidator
00089 from Products.Archetypes.athistoryaware import ATHistoryAwareMixin
00090 from Products.Archetypes.fieldproperty import ATFieldProperty
00091 from Products.Archetypes.fieldproperty import ATReferenceFieldProperty
00092 from Products.Archetypes.fieldproperty import ATDateTimeFieldProperty
00093 
00094 # dynamicly calculate which modules should be exported
00095 import sys
00096 skipExports = ('skipExports', 'sys',)
00097 __all__ = tuple([ export
00098                   for export in dir(sys.modules[__name__])
00099                   if export not in skipExports and not export.startswith('_')
00100                 ])
00101 
00102