Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Get the courses from modulestore
  2. from xmodule.modulestore.django import modulestore
  3.  
  4. courses = modulestore().get_courses()
  5.  
  6. # Loop through the ids and print the IDs and types
  7. for course in courses:
  8. print "{}, {}".format(course.id, type(course.id))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement