Advertisement
Guest User

Untitled

a guest
Jul 18th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1.  
  2. I've attached a script that will allow you to import grades using the XLS format you provided.
  3.  
  4. For the script to work you need to:
  5.  
  6. 1. Stop the schooltool service:
  7.  
  8. $ sudo service schooltool stop
  9.  
  10. 2. Download and make the script executable:
  11.  
  12. $ sudo chmod +x import_grades.py
  13.  
  14. 3. Run the script providing the spread sheet with your grades:
  15.  
  16. $ sudo import_grades.py /path/to/your/grades.xls
  17.  
  18. 4. After the script finishes running you may see either:
  19.  
  20. ***** THERE WERE ERRORS: ***** plus a list of the errors found
  21.  
  22. The errors will have a format like:
  23.  
  24. (SPREADSHEET_NAME, ROW, COLUMN, ERROR_MESSAGE)
  25.  
  26. for example:
  27.  
  28. (Grades, 4, 1, 'invalid school year')
  29.  
  30. and so on.
  31.  
  32. If everything goes well, you'll see:
  33.  
  34. ***** GRADES WERE IMPORTED SUCCESSFULLY *****
  35.  
  36. After running the script, you should restart the schooltool service:
  37.  
  38. $ sudo service schooltool start
  39.  
  40. Let me know if you have any trouble or questions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement