Ignore:
Timestamp:
20/11/08 15:36:44 (12 years ago)
Author:
cbyrom
Message:

Strip out code not relevant to MILK - mainly WCS and WMS stuff - also including the CSML server code + trackback code
Also tidy up structure of 'public' dir - setting up new 'style' dir and
centralising icons in icons dir + remove all unused icons, javascript and stylesheets.
Also strip out testcase code and populate new test directory structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/lib/mailer.py

    r2868 r4469  
    5353    except Exception,e: 
    5454        return 0, 'Error sending mail [%s]'%e 
    55          
    56          
    57 if __name__=="__main__": 
    58      
    59     server='outbox.rl.ac.uk' 
    60     recipients=['s.j.pepler@rl.ac.uk',] 
    61      
    62     import unittest 
    63      
    64     class TestCase(unittest.TestCase): 
    65          
    66         def testNormal(self): 
    67             ''' test sending a normal email message ''' 
    68             body='test body' 
    69             subject='mailer test' 
    70             status,message=mailHandler(recipients,subject,body,server=server) 
    71             self.assertEqual(message,'ok') 
    72              
    73         def testMime(self): 
    74             '''test sending an xml attachment ''' 
    75             body='test body' 
    76             subject='mailer mime test' 
    77             a=('<xml><something>blah</something></blah>','trackback.xml') 
    78             att=[a,] 
    79             status,message=mailHandler(recipients,subject,body,xmlAttachments=att,server=server) 
    80             self.assertEqual(message,'ok') 
    81              
    82          
    83     unittest.main() 
    84          
Note: See TracChangeset for help on using the changeset viewer.