root/qPloneEditorGroup/tags/0.2/__init__.py

Revision 801 (checked in by crchemist, 2 years ago)

Added compatibility with plone-2.1

  • Property svn:eol-style set to native
Line 
1 try:
2     from Products.CMFPlone.interfaces import IPloneSiteRoot
3     from Products.GenericSetup import EXTENSION
4     from Products.GenericSetup import profile_registry
5     has_profiles = True
6 except ImportError:
7     has_profiles = False
8
9 def initialize(context):
10     if has_profiles:
11         profile_desc = "Installs Editor role & group."
12         profile_registry.registerProfile('default',
13                                          'EditorProfile',
14                                          profile_desc,
15                                          'profiles/default',
16                                          'EditorProfile',
17                                          EXTENSION,
18                                          for_=IPloneSiteRoot)
19     else:
20         pass
21
Note: See TracBrowser for help on using the browser.