# -*- coding: utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory from collective.cdn.coral import config from Products.CMFCore import utils MessageFactory = BaseMessageFactory('collective.cdn.coral')
from Products.CMFCore import utils from Products.CMFCore.DirectoryView import registerDirectory from Products.Archetypes.public import process_types, listTypes from Products.Archetypes.atapi import * from Products.validation.config import validation from config import * registerDirectory(SKINS_DIR, GLOBALS) from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('wres.brfields') from wres.brfields import validators def initialize(context): content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME) utils.ContentInit( PROJECTNAME + ' Content', content_types=content_types, permission=ADD_CONTENT_PERMISSION, extra_constructors=constructors, fti=ftis, ).initialize(context)
# -*- coding:utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('sc.contentrules.layout')
# -*- coding:utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('brasil.gov.barra')
# -*- coding: utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('medialog.xdvsubskins') def initialize(context): """Initializer called when used as a Zope 2 product."""
# -*- coding=utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('sc.contentrules.groupbydate')
# -*- coding: utf-8 -*- from Products.CMFCore import utils from Products.CMFCore.DirectoryView import registerDirectory from Products.Archetypes.public import process_types, listTypes from Products.BrFieldsAndWidgets.config import ADD_CONTENT_PERMISSION from Products.BrFieldsAndWidgets.config import GLOBALS from Products.BrFieldsAndWidgets.config import PROJECTNAME from Products.BrFieldsAndWidgets.config import SKINS_DIR registerDirectory(SKINS_DIR, GLOBALS) from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('Products.BrFieldsAndWidgets') from Products.BrFieldsAndWidgets import validators from Products.BrFieldsAndWidgets.content import BrFieldsAndWidgetsDemo def initialize(context): content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME) utils.ContentInit( PROJECTNAME + ' Content', content_types=content_types, permission=ADD_CONTENT_PERMISSION, extra_constructors=constructors, fti=ftis, ).initialize(context)
# -*- coding:utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('sc.contentrules.metadata')
# -*- coding: utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('lx.site.wilker') def initialize(context): """Initializer called when used as a Zope 2 product."""
#! -*- coding: UTF-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('sc.galleria.support')
# -*- coding: utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory from collective.cdn.multiplehostnames import config MessageFactory = BaseMessageFactory('collective.cdn.multiplehostnames')
# -*- coding: utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory from collective.cdn.alternatehostname import config from Products.CMFCore import utils MessageFactory = BaseMessageFactory('collective.cdn.alternatehostname')
# GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to the # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Initialize logger import os import logging from config import PROJECTNAME LOG = logging.getLogger(PROJECTNAME) if os.path.isfile(os.path.join(__path__[0], 'debug.txt')): class DebugFilter(logging.Filter): def filter(self, record): if record.levelno == logging.DEBUG: # raise level to allow going through zope logger record.levelno = 49 return True LOG.addFilter(DebugFilter(PROJECTNAME)) LOG.setLevel(logging.DEBUG) LOG.info("Logging level set to %s", logging.getLevelName(LOG.getEffectiveLevel())) from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory(PROJECTNAME)
# -*- coding: utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('collective.portlet.calendar')
# -*- coding:utf-8 -*- from zope.i18nmessageid import MessageFactory as BaseMessageFactory MessageFactory = BaseMessageFactory('brasil.gov.vcge')
# -*- coding:utf-8 -*- from Products.Archetypes.public import process_types, listTypes from Products.CMFCore import utils from zope.i18nmessageid import MessageFactory as BaseMessageFactory from sc.pfg.brazilianfields.config import PROJECTNAME from sc.pfg.brazilianfields.config import DEFAULT_ADD_CONTENT_PERMISSION MessageFactory = BaseMessageFactory('sc.pfg.brazilianfields') from sc.pfg.brazilianfields import fields def initialize(context): content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME) utils.ContentInit( PROJECTNAME + ' Content', content_types=content_types, permission=DEFAULT_ADD_CONTENT_PERMISSION, extra_constructors=constructors, fti=ftis, ).initialize(context)