Last change
on this file since 3526 was
3526,
checked in by vmaksymiv, 12 years ago
|
register import step, handler
|
File size:
405 bytes
|
Line | |
---|
1 | from Products.CMFCore.utils import getToolByName |
---|
2 | from quintagroup.mailer.config import GROUP_ID |
---|
3 | |
---|
4 | |
---|
5 | def setupVarious(context): |
---|
6 | if context.readDataFile('quintagroup.mailer_various.txt') is None: |
---|
7 | return |
---|
8 | site = context.getSite() |
---|
9 | |
---|
10 | # setup 'Alert subscribers' group |
---|
11 | gtool = getToolByName(site, "portal_groups") |
---|
12 | if GROUP_ID not in gtool.getGroupIds(): |
---|
13 | gtool.addGroup(GROUP_ID) |
---|
Note: See
TracBrowser
for help on using the repository browser.