Last change
on this file since 1244 was
1244,
checked in by koval, 15 years ago
|
changed behaviour of manifest importer and maked more descriptive product name
|
File size:
867 bytes
|
Rev | Line | |
---|
[594] | 1 | # register our extension profile if we have GenericSetup (Plone 2.5 or later) |
---|
| 2 | try: |
---|
| 3 | # if we have GenericSetup product we don't need to register steps in python |
---|
| 4 | import os |
---|
| 5 | from Products.GenericSetup import EXTENSION |
---|
| 6 | from Products.GenericSetup import profile_registry |
---|
| 7 | from Products.CMFPlone.interfaces import IPloneSiteRoot |
---|
| 8 | |
---|
| 9 | profile_path = os.path.join(os.path.split(__file__)[0], 'profiles/default') |
---|
| 10 | profile_registry.registerProfile( |
---|
| 11 | name="default", |
---|
[1244] | 12 | title="quintagroup.transmogrifier.simpleblog2quills (enables Large Plone Folder)", |
---|
[594] | 13 | description="Extension profile for applying settings needed to migrate blog.", |
---|
| 14 | path=profile_path, |
---|
| 15 | product="quintagroup.transmogrifier.simpleblog2quills", # this is required |
---|
| 16 | profile_type=EXTENSION, |
---|
| 17 | for_=IPloneSiteRoot |
---|
| 18 | ) |
---|
| 19 | |
---|
| 20 | except ImportError: |
---|
| 21 | pass |
---|
Note: See
TracBrowser
for help on using the repository browser.