Changeset 12537


Ignore:
Timestamp:
1 Feb 2015, 07:38:12 (10 years ago)
Author:
Henrik Bettermann
Message:

Email address must be required.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/interfaces.py

    r12523 r12537  
    128128    email = TextLineChoice(
    129129        title = _(u'Email'),
    130         required = False,
     130        required = True,
    131131        constraint=validate_email,
    132132        source = contextual_email_source,
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/sample_customer_data.csv

    r12521 r12537  
    1 customer_id,firstname,lastname,reg_number,date_of_birth,,phone,sex,state
     1customer_id,firstname,lastname,reg_number,date_of_birth,email,phone,sex,state
    22X666666,Aaren,Pieri,1,1990-01-02,aa@aa.ng,1234,M,requested
    33Y777777,Claus,Finau,2,1990-01-03,bb@aa.ng,1234,m,requested
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py

    r12521 r12537  
    137137        customer.lastname = u'Tester'
    138138        customer.middlename = u'M.'
     139        customer.email = u'bb@bb.bb'
    139140        customer.date_of_birth = datetime.date(1981, 2, 4)
    140141        #customer.sex = 'f'
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12533 r12537  
    351351        # Managers can contact customer
    352352        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    353         self.customer.email = None
    354353        self.browser.open(self.customer_path)
    355354        self.browser.getLink("Send email").click()
    356355        self.browser.getControl(name="form.subject").value = 'Important subject'
    357356        self.browser.getControl(name="form.body").value = 'Hello!'
    358         self.browser.getControl("Send message now").click()
    359         self.assertTrue('An smtp server error occurred' in self.browser.contents)
    360         self.customer.email = u'xx@yy.zz'
    361357        self.browser.getControl("Send message now").click()
    362358        self.assertTrue('Your message has been sent' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.