CV /
from Globals import package_home
try: # New CMF
    from Products.CMFCore import permissions as CMFCorePermissions
except: # Old CMF
    from Products.CMFCore import CMFCorePermissions
from Products.CMFCore import utils, DirectoryView
from Products.CMFPlone.utils import ToolInit
from Products.Archetypes.public import *
from Products.Archetypes import listTypes
from Products.Archetypes.utils import capitalize

import os, os.path, sys, content

# Get configuration data, permissions
from Products.CV.config import *

# Register skin directories so they can be added to portal_skins
DirectoryView.registerDirectory('skins', product_globals)
DirectoryView.registerDirectory('skins/cv_images', product_globals)
DirectoryView.registerDirectory('skins/cv_styles', product_globals)
DirectoryView.registerDirectory('skins/cv_templates', product_globals)

def initialize(context):

    # Import the type, which results in registerType() being called
    from content import CV, Employment, Education, Publication, Skill

    # initialize the content, including types and add permissions
    content_types, constructors, ftis = process_types(

        PROJECTNAME + ' Content',
        content_types      = content_types,
        permission         = DEFAULT_ADD_CONTENT_PERMISSION,
        extra_constructors = constructors,
        fti                = ftis,