Changeset 14637 for main/waeup.kofa/trunk
- Timestamp:
- 20 Mar 2017, 09:35:50 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_webservices.py
r12110 r14637 435 435 self.assertEqual(result, True) 436 436 stored_file = getUtility(IExtFileStore).getFileByContext( 437 self.student, attr=" 1.fpm")437 self.student, attr="finger1.fpm") 438 438 self.assertEqual(stored_file.read(), 'FP1faked_fpm') 439 439 … … 449 449 self.assertEqual(result, True) 450 450 stored_file1 = getUtility(IExtFileStore).getFileByContext( 451 self.student, attr=" 1.fpm")451 self.student, attr="finger1.fpm") 452 452 stored_file2 = getUtility(IExtFileStore).getFileByContext( 453 self.student, attr=" 3.fpm")453 self.student, attr="finger3.fpm") 454 454 self.assertEqual(stored_file1.read(), 'FP1faked_fpm1') 455 455 self.assertEqual(stored_file2.read(), 'FP1faked_fpm2') … … 490 490 server = ServerProxy('http://mgr:mgrpw@localhost/app') 491 491 self.setup_student(self.student) 492 self.create_fpm_file(self.student, ' 1')492 self.create_fpm_file(self.student, 'finger1') 493 493 result = server.get_student_fingerprints(self.student.student_id) 494 494 self.assertTrue('1' in result['fingerprints'].keys()) -
main/waeup.kofa/trunk/src/waeup/kofa/students/webservices.py
r11674 r14637 292 292 file_store = getUtility(IExtFileStore) 293 293 file_id = IFileStoreNameChooser(student).chooseName( 294 attr=' %s.fpm' % num)294 attr='finger%s.fpm' % num) 295 295 file_store.createFile(file_id, StringIO(val.data)) 296 296 result = True … … 334 334 for num in [str(x + 1) for x in range(10)]: 335 335 fp_file = file_store.getFileByContext( 336 student, attr=' %s.fpm' % num)336 student, attr='finger%s.fpm' % num) 337 337 if fp_file is not None: 338 338 result['fingerprints'][num] = xmlrpclib.Binary(fp_file.read())
Note: See TracChangeset for help on using the changeset viewer.