Last change
on this file since 2807 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
761 bytes
|
Rev | Line | |
---|
[1] | 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 repository browser.