Exemplo n.º 1
0
import mimetypes
from AccessControl.Permissions import manage_users as ManageUsers
from Products.PluggableAuthService.PluggableAuthService \
        import registerMultiPlugin
from euphorie.client import authentication

mimetypes.add_type('image/svg+xml', '.svg')

from zope.i18nmessageid import MessageFactory as mf
MessageFactory = mf('euphorie')
del mf

#: Version number for terms and conditions. Updating this version will
#: require all users to (re)confirm their acceptance of the terms and
#: conditions
CONDITIONS_VERSION = 1


def initialize(context):
    registerMultiPlugin(authentication.EuphorieAccountPlugin.meta_type)
    context.registerClass(authentication.EuphorieAccountPlugin,
            permission=ManageUsers,
            constructors=(authentication.manage_addEuphorieAccountPlugin,
                          authentication.addEuphorieAccountPlugin),
            visibility=None)

    # Instruct the email module to use quoted printable for UT8
    import email.Charset
    email.Charset.add_charset('utf-8', email.Charset.QP, email.Charset.QP,
            'utf-8')
Exemplo n.º 2
0
from zope.i18nmessageid import MessageFactory as mf
MessageFactory = mf("tno.euphorie")
del mf

__all__ = ["MessageFactory"]
Exemplo n.º 3
0
from zope.i18nmessageid import MessageFactory as mf

MessageFactory = mf('euphorie')

__all__ = ['MessageFactory']
Exemplo n.º 4
0
from euphorie import patches  # noqa: F401
from zope.i18nmessageid import MessageFactory as mf

MessageFactory = mf("euphorie")

__all__ = ["MessageFactory"]
Exemplo n.º 5
0
from zope.i18nmessageid import MessageFactory as mf
MessageFactory = mf("euphorie")
del mf

from Products.CMFCore.permissions import setDefaultRoles

setDefaultRoles("Euphorie: Manage country", ("Manager",))
setDefaultRoles("Euphorie: Add new RIE Content", ("Manager",))
setDefaultRoles("Euphorie: Delete published content", ("Manager",))
Exemplo n.º 6
0
##############################################################################
"""
$Id: _field.py 12604 2010-06-10 17:39:18Z davisagli $
"""

from zope.i18nmessageid import MessageFactory as mf
import types
from AccessControl import ClassSecurityInfo
from OFS.DTMLMethod import DTMLMethod
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate

from Products.Archetypes.public import ObjectField, TextAreaWidget
from Products.Archetypes.Registry import registerField
from Products.TemplateFields import config

_ = mf("plone")


_marker = []

class DTMLField(ObjectField):

    _properties = ObjectField._properties.copy()
    _properties.update({
        'type' : 'dtml',
        'default': '<dtml-var title_or_id>',
        'default_content_type' : 'text/plain',
        'required': True,
        'widget': TextAreaWidget(visible={'view': 'invisible',
                                          'edit': 'visible'}),
        'validators': ('dtmlvalidator',)
Exemplo n.º 7
0
from zope.i18nmessageid import MessageFactory as mf

MessageFactory = mf("nuplone")
del mf
Exemplo n.º 8
0
from zope.i18nmessageid import MessageFactory as mf
MessageFactory = mf("nuplone")
del mf

Exemplo n.º 9
0
from zope.i18nmessageid import MessageFactory as mf

MessageFactory = mf("tno.euphorie")
del mf

__all__ = ["MessageFactory"]