Last change
on this file since 1241 was
594,
checked in by piv, 18 years ago
|
fixed collectEntries method
|
File size:
838 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", |
---|
| 12 | title="quintagroup.transmogrifier.simpleblog2quills", |
---|
| 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.