source: products/qPloneEditorGroup/trunk/__init__.py @ 8

Last change on this file since 8 was 1, checked in by myroslav, 17 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 761 bytes
Line 
1try:
2    from Products.CMFPlone.interfaces import IPloneSiteRoot
3    from Products.GenericSetup import EXTENSION
4    from Products.GenericSetup import profile_registry
5    has_profiles = True
6except ImportError:
7    has_profiles = False
8
9def 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 repository browser.