from Products.Archetypes.atapi import *
from Products.Archetypes.utils import capitalize
from Products.CMFCore import DirectoryView
from Products.CMFCore import permissions as cmfpermissions
from Products.CMFCore import utils as cmfutils
from Products.CMFPlone.utils import ToolInit
from config import *

DirectoryView.registerDirectory('skins', product_globals)


##code-section custom-init-head #fill in your manual code here
try:
    from Products.Marshall.handlers.atxml import registerNamespace
    from Products.CompoundField.cfns import CompoundFieldNS
    registerNamespace( CompoundFieldNS )
    HAS_MARSHALLER=True

except ImportError:
    HAS_MARSHALLER=False



##/code-section custom-init-head


def initialize(context):
    """initialize product (called by zope)"""
    ##code-section custom-init-top #fill in your manual code here
    from AccessControl import allow_module
    allow_module('Products.CompoundField.utils')
Esempio n. 2
0
from Products.Archetypes import listTypes
from Products.Archetypes.atapi import *
from Products.Archetypes.utils import capitalize
from Products.CMFCore import DirectoryView
from Products.CMFCore import permissions as cmfpermissions
from Products.CMFCore import utils as cmfutils
from Products.CMFPlone.utils import ToolInit
from config import *

DirectoryView.registerDirectory('skins', product_globals)

##code-section custom-init-head #fill in your manual code here
try:
    from Products.Marshall.handlers.atxml import registerNamespace
    from Products.CompoundField.cfns import CompoundFieldNS
    registerNamespace(CompoundFieldNS)
    HAS_MARSHALLER = True

except ImportError:
    HAS_MARSHALLER = False

##/code-section custom-init-head


def initialize(context):
    """initialize product (called by zope)"""
    ##code-section custom-init-top #fill in your manual code here
    from AccessControl import allow_module
    allow_module('Products.CompoundField.utils')
    ##/code-section custom-init-top
Esempio n. 3
0
from Products.Marshall.handlers.atxml import registerNamespace

from adobens import AdobeXMP
from atns import Archetypes
from dcns import DublinCore
from cmfns import CMF

registerNamespace( DublinCore )
registerNamespace( AdobeXMP )
registerNamespace( Archetypes )
registerNamespace( CMF ) 

# we do cmf last because workflow might other get reset
# by a set id (manage_afterAdd hook) value change

Esempio n. 4
0
from Products.Marshall.handlers.atxml import registerNamespace

from adobens import AdobeXMP
from atns import Archetypes
from dcns import DublinCore
from cmfns import CMF

registerNamespace(DublinCore)
registerNamespace(AdobeXMP)
registerNamespace(Archetypes)
registerNamespace(CMF)

# we do cmf last because workflow might other get reset
# by a set id (manage_afterAdd hook) value change