Back to index

plone3  3.1.7
Private Member Functions
CMFCore.exportimport.tests.test_mailhost._MailHostSetup Class Reference
Inheritance diagram for CMFCore.exportimport.tests.test_mailhost._MailHostSetup:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.exportimport.tests.test_mailhost._MailHostSetup:
Collaboration graph
[legend]

List of all members.

Private Member Functions

def _initSite

Detailed Description

Definition at line 45 of file test_mailhost.py.


Member Function Documentation

def CMFCore.exportimport.tests.test_mailhost._MailHostSetup._initSite (   self,
  use_changed = False 
) [private]

Definition at line 47 of file test_mailhost.py.

00047 
00048     def _initSite(self, use_changed=False):
00049         from Products.MailHost.MailHost import MailHost
00050 
00051         self.root.site = Folder(id='site')
00052         site = self.root.site
00053         mh = site.MailHost = MailHost('MailHost')
00054         sm = getSiteManager()
00055         sm.registerUtility(site.MailHost, IMailHost)
00056  
00057         if use_changed:
00058            mh.smtp_port='1'
00059            mh.smtp_pwd="value1"
00060            mh.smtp_host="value2"
00061            mh.smtp_uid="value3"
00062 
00063         return site
00064 


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