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