Last change
on this file since 3127 was
3120,
checked in by kroman0, 13 years ago
|
Pyflakes and pep8 fixes #7
|
File size:
694 bytes
|
Rev | Line | |
---|
[832] | 1 | ######################################################### |
---|
| 2 | ## Helper methods for testing Mail sending ## |
---|
| 3 | ######################################################### |
---|
| 4 | |
---|
[3120] | 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 | ] |
---|
[832] | 11 | |
---|
[3120] | 12 | |
---|
[832] | 13 | def setProperties(prop_sheet, *props): |
---|
| 14 | for p in ALL_PROPS: |
---|
| 15 | prop_sheet._updateProperty(p, p in props) |
---|
| 16 | |
---|
[3120] | 17 | |
---|
[1633] | 18 | def testMailExistance(sel): |
---|
| 19 | mailhost = sel.portal.MailHost |
---|
[3119] | 20 | if mailhost.messages: |
---|
[1633] | 21 | return True |
---|
[832] | 22 | return False |
---|
Note: See
TracBrowser
for help on using the repository browser.