Last change
on this file since 3119 was
3119,
checked in by kroman0, 14 years ago
|
Pyflakes and pep8 fixes #6
|
File size:
707 bytes
|
Line | |
---|
1 | ######################################################### |
---|
2 | ## Helper methods for testing Mail sending ## |
---|
3 | ######################################################### |
---|
4 | |
---|
5 | ALL_PROPS = ['enable_approve_user_notification', 'enable_reply_user_notification', |
---|
6 | 'enable_rejected_user_notification','enable_moderation', |
---|
7 | 'require_email', 'enable_anonymous_commenting', |
---|
8 | 'enable_published_notification', 'enable_approve_notification'] |
---|
9 | |
---|
10 | def setProperties(prop_sheet, *props): |
---|
11 | for p in ALL_PROPS: |
---|
12 | prop_sheet._updateProperty(p, p in props) |
---|
13 | |
---|
14 | def testMailExistance(sel): |
---|
15 | mailhost = sel.portal.MailHost |
---|
16 | if mailhost.messages: |
---|
17 | return True |
---|
18 | return False |
---|
Note: See
TracBrowser
for help on using the repository browser.