source: products/quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/helperNotify.py @ 2138

Last change on this file since 2138 was 2137, checked in by kroman0, 14 years ago

PEP8 fixes

File size: 698 bytes
Line 
1#########################################################
2##      Helper methods for testing Mail sending        ##
3#########################################################
4
5ALL_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
13def setProperties(prop_sheet, *props):
14    for p in ALL_PROPS:
15        prop_sheet._updateProperty(p, p in props)
16
17
18def 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.