Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Properties
plone.app.controlpanel.mail.MailControlPanelAdapter Class Reference
Inheritance diagram for plone.app.controlpanel.mail.MailControlPanelAdapter:
Inheritance graph
[legend]
Collaboration diagram for plone.app.controlpanel.mail.MailControlPanelAdapter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_smtp_userid
def set_smtp_userid
def get_smtp_pass
def set_smtp_pass
def get_email_from_name
def set_email_from_name
def get_email_from_address
def set_email_from_address

Public Attributes

 context

Static Public Attributes

tuple smtp_host = ProxyFieldProperty(IMailSchema['smtp_host'])
tuple smtp_port = ProxyFieldProperty(IMailSchema['smtp_port'])

Properties

 smtp_userid = property(get_smtp_userid, set_smtp_userid)
 smtp_pass = property(get_smtp_pass, set_smtp_pass)
 email_from_name = property(get_email_from_name, set_email_from_name)
 email_from_address

Detailed Description

Definition at line 79 of file mail.py.


Constructor & Destructor Documentation

Definition at line 84 of file mail.py.

00084 
00085     def __init__(self, context):
00086         super(MailControlPanelAdapter, self).__init__(context)
00087         self.context = getToolByName(context, 'MailHost')

Here is the caller graph for this function:


Member Function Documentation

Definition at line 131 of file mail.py.

00131 
00132     def get_email_from_address(self):
00133         return getUtility(ISiteRoot).email_from_address

Definition at line 123 of file mail.py.

00123 
00124     def get_email_from_name(self):
00125         return getUtility(ISiteRoot).email_from_name

Definition at line 106 of file mail.py.

00106 
00107     def get_smtp_pass(self):
00108         return getattr(self.context, 'smtp_pass',
00109                        getattr(self.context, 'smtp_pwd', None))

Definition at line 91 of file mail.py.

00091 
00092     def get_smtp_userid(self):
00093         return getattr(self.context, 'smtp_userid',
00094                        getattr(self.context, 'smtp_uid', None))

Definition at line 134 of file mail.py.

00134 
00135     def set_email_from_address(self, value):
00136         getUtility(ISiteRoot).email_from_address = value

Definition at line 126 of file mail.py.

00126 
00127     def set_email_from_name(self, value):
00128         getUtility(ISiteRoot).email_from_name = value

Definition at line 110 of file mail.py.

00110 
00111     def set_smtp_pass(self, value):
00112         # Don't update the value, if we don't get a new one
00113         if value is not None:
00114             if safe_hasattr(self.context, 'smtp_pass'):
00115                 self.context.smtp_pass = value
00116                 #SecureMailhost 1.x also uses this:
00117                 if safe_hasattr(self.context, '_smtp_pass'):
00118                     self.context._smtp_pass = value
00119             elif safe_hasattr(self.context, 'smtp_pwd'):
00120                 self.context.smtp_pwd = value

Here is the call graph for this function:

Definition at line 95 of file mail.py.

00095 
00096     def set_smtp_userid(self, value):
00097         if safe_hasattr(self.context, 'smtp_userid'):
00098             self.context.smtp_userid = value
00099             #SecureMailhost 1.x also uses this:
00100             if safe_hasattr(self.context, '_smtp_userid'):
00101                 self.context._smtp_userid = value
00102         elif safe_hasattr(self.context, 'smtp_uid'):
00103             self.context.smtp_uid = value

Here is the call graph for this function:


Member Data Documentation

Definition at line 86 of file mail.py.

Definition at line 88 of file mail.py.

Definition at line 89 of file mail.py.


Property Documentation

Initial value:
property(get_email_from_address,
                                  set_email_from_address)

Definition at line 137 of file mail.py.

Definition at line 129 of file mail.py.

Definition at line 121 of file mail.py.

Definition at line 104 of file mail.py.


The documentation for this class was generated from the following file: