Changeset 7515 for main/waeup.sirp
- Timestamp:
- 26 Jan 2012, 08:59:05 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/sample_student_data_migration.csv
r7513 r7515 1 1 student_id,firstname,lastname,reg_number,date_of_birth,matric_number,email,phone,password,reg_state 2 A123456,Aaren,Pieri,1,1990-01-02 ,100000,aa@aa.ng,1234,mypw1,school fee paid2 A123456,Aaren,Pieri,1,1990-01-02#,100000,aa@aa.ng,1234,mypw1,school fee paid 3 3 B123456,Aaren,Finau,2,1990-01-03,100001,aa@aa.ng,1234,mypw1,cleared 4 4 C123456,Aaren,Berson,3,1990-01-04,100002,aa@aa.ng,1234,mypw1,admitted -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_batching.py
r7513 r7515 22 22 import tempfile 23 23 import unittest 24 import datetime 24 25 from zope.component import createObject 25 26 from zope.component.hooks import setSite, clearSite … … 200 201 self.assertTrue('A123456' in self.app['students'].keys()) 201 202 self.assertEqual(self.app['students']['A123456'].state,'school fee paid') 203 self.assertEqual(self.app['students']['A123456'].date_of_birth, 204 datetime.date(1990, 1, 2)) 205 self.assertEqual(self.app['students']['B123456'].state,'cleared') 206 self.assertEqual(self.app['students']['B123456'].date_of_birth, 207 datetime.date(1990, 1, 3)) 202 208 shutil.rmtree(os.path.dirname(fin_file)) 203 209 -
main/waeup.sirp/trunk/src/waeup/sirp/widgets/datewidget.py
r7196 r7515 39 39 else: 40 40 try: 41 # In import files we can use the hash symbol at the end of a 42 # date string to avoid annoying automatic date transformation 43 # by Excel or Calc 44 input = input.strip('#') 41 45 value = datetime.strptime(input, self.date_format) 42 46 except (ValueError, IndexError), v:
Note: See TracChangeset for help on using the changeset viewer.