Back to index

plone3  3.1.7
Namespaces | Functions | Variables
ATContentTypes Namespace Reference

Namespaces

namespace  adapters
namespace  atct
namespace  browser
namespace  config
namespace  configuration
namespace  content
namespace  criteria
namespace  exportimport
namespace  interface
namespace  interfaces
namespace  lib
namespace  migration
namespace  modulealiases
namespace  permission
namespace  tests
namespace  tool
namespace  utils
namespace  z3

Functions

def initialize

Variables

string __author__ = 'Christian Heimes <tiran@cheimes.de>'
string __docformat__ = 'restructuredtext'
tuple logger = logging.getLogger('ATCT')
tuple ATCT_DIR = os.path.abspath(os.path.dirname(__file__))
tuple __version__ = open(os.path.join(__path__[0], 'version.txt'))
tuple ATCTMessageFactory = MessageFactory('atcontenttypes')

Function Documentation

def ATContentTypes.initialize (   context)

Definition at line 79 of file __init__.py.

00079 
00080 def initialize(context):
00081     # process our custom types
00082 
00083     ToolInit(
00084         'ATContentTypes tool',
00085         tools=(ATCTTool,),
00086         icon='tool.gif', ).initialize(context)
00087 
00088     listOfTypes = listTypes(PROJECTNAME)
00089 
00090     content_types, constructors, ftis = process_types(
00091         listOfTypes,
00092         PROJECTNAME)
00093 
00094     # Assign an own permission to all content types
00095     # Heavily based on Bricolite's code from Ben Saller
00096     from Products.ATContentTypes.permission import permissions
00097 
00098     allTypes = zip(content_types, constructors)
00099     for atype, constructor in allTypes:
00100         kind = "%s: %s" % (PROJECTNAME, atype.archetype_name)
00101         ContentInit(
00102             kind,
00103             content_types      = (atype,),
00104             permission         = permissions[atype.portal_type],
00105             extra_constructors = (constructor,),
00106             ).initialize(context)
00107 

Here is the call graph for this function:


Variable Documentation

string ATContentTypes.__author__ = 'Christian Heimes <tiran@cheimes.de>'

Definition at line 21 of file __init__.py.

string ATContentTypes.__docformat__ = 'restructuredtext'

Definition at line 22 of file __init__.py.

tuple ATContentTypes.__version__ = open(os.path.join(__path__[0], 'version.txt'))

Definition at line 33 of file __init__.py.

tuple ATContentTypes.ATCT_DIR = os.path.abspath(os.path.dirname(__file__))

Definition at line 30 of file __init__.py.

tuple ATContentTypes.ATCTMessageFactory = MessageFactory('atcontenttypes')

Definition at line 55 of file __init__.py.

tuple ATContentTypes.logger = logging.getLogger('ATCT')

Definition at line 28 of file __init__.py.