Skip to content

Instantly share code, notes, and snippets.

@antoviaque
Created May 29, 2015 13:34
Show Gist options
  • Select an option

  • Save antoviaque/aa7320cc14b0f7dfe3d9 to your computer and use it in GitHub Desktop.

Select an option

Save antoviaque/aa7320cc14b0f7dfe3d9 to your computer and use it in GitHub Desktop.
(edxapp)edxapp@sandbox:~/edx-platform$ ./manage.py lms --settings aws regenerate_user -u xavier+ob@antoviaque.org -c course-v1:TestX+TST-01+now --insecure
2015-05-29 09:28:02,207 INFO 2023 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
2015-05-29 09:28:03,017 INFO 2023 [certificates.management.commands.regenerate_user] regenerate_user.py:68 - Starting to create tasks to regenerate certificates with arguments () and options {'username': '<USERNAME>', 'template_file': None, 'settings': None, 'grade_value': None, 'pythonpath': None, 'verbosity': '1', 'traceback': None, 'course': 'course-v1:TestX+TST-01+now', 'noop': False, 'insecure': True}
2015-05-29 09:28:03,240 INFO 2023 [certificates.management.commands.regenerate_user] regenerate_user.py:106 - Adding task to the XQueue to generate a certificate for student 13 in course 'course-v1:TestX+TST-01+now'.
2015-05-29 09:28:03,244 INFO 2023 [certificates.queue] queue.py:138 - Found an existing certificate entry for student 13 in course 'course-v1:TestX+TST-01+now' with status 'downloadable' while regenerating certificates.
2015-05-29 09:28:03,385 INFO 2023 [certificates.models] models.py:680 - Badge already exists for this user on this course.
2015-05-29 09:28:03,385 INFO 2023 [certificates.queue] queue.py:151 - The certificate status for student 13 in course 'course-v1:TestX+TST-01+now' has been changed to 'unavailable'.
2015-05-29 09:28:03,413 INFO 2023 [certificates.queue] queue.py:269 - Regenerate certificate for user 13 in course course-v1:TestX+TST-01+now with status unavailable, download_uuid cd7cc377a0fc406ca6a3de945c2b8da9, and download_url http://localhost:18090/downloads/cd7cc377a0fc406ca6a3de945c2b8da9/Certificate.pdf
2015-05-29 09:28:03,448 INFO 2023 [certificates.models] models.py:680 - Badge already exists for this user on this course.
2015-05-29 09:28:03,451 INFO 2023 [requests.packages.urllib3.connectionpool] connectionpool.py:180 - Starting new HTTP connection (1): localhost
2015-05-29 09:28:04,067 INFO 2023 [certificates.queue] queue.py:371 - The certificate status has been set to 'f9d719da6d144fb4e8803f5058f9f4a9'. Sent a certificate grading task to the XQueue with the key 'generating'.
2015-05-29 09:28:04,110 INFO 2023 [certificates.management.commands.regenerate_user] regenerate_user.py:123 - Cleared badge for student 13.
2015-05-29 09:28:04,111 INFO 2023 [certificates.management.commands.regenerate_user] regenerate_user.py:135 - Added a certificate regeneration task to the XQueue for student 13 in course 'course-v1:TestX+TST-01+now'. The new certificate status is 'generating'.
2015-05-29 09:28:04,111 INFO 2023 [certificates.management.commands.regenerate_user] regenerate_user.py:155 - Finished regenerating certificates command for user 13 and course 'course-v1:TestX+TST-01+now'.
In [13]: [b.__dict__ for b in BadgeAssertion.objects.all()]
Out[13]:
[{'_state': <django.db.models.base.ModelState at 0x86e3790>,
'course_id': CourseLocator(u'TestX', u'TST-01', u'now', None, None),
'data': {"revoked": false, "created_at": "2015-05-23T00:30:58.944762Z", "created_by": "http://sandbox.opencraft.com:8005/user/staff", "email": "jonathan+badges@opencraft.com", "json": {"issuedOn": "2015-05-22T17:30:58.943933", "uid": "4d113699-ab17-41f5-9cf9-5a11d91d58b5", "verify": {"url": "http://sandbox.opencraft.com:8005/public/assertions/4d113699-ab17-41f5-9cf9-5a11d91d58b5", "type": "hosted"}, "image": "http://sandbox.opencraft.com:8005/public/assertions/4d113699-ab17-41f5-9cf9-5a11d91d58b5/image", "badge": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "type": "Assertion", "@context": "https://w3id.org/openbadges/v1", "recipient": {"salt": "90970f62-abe1-4964-bc91-c4418022c4d9", "type": "email", "hashed": true, "identity": "sha256$210414f5a51b1e9867ebae9ad829b224c1b87f2b383e199fa70b519e1da919ab"}, "id": "http://sandbox.opencraft.com:8005/public/assertions/4d113699-ab17-41f5-9cf9-5a11d91d58b5"}, "revocation_reason": null, "image": "http://sandbox.opencraft.com:8005/media/issued/3de95a4de2e564b8d3e7729f9e3fdca2.png", "badgeclass": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "slug": "4d113699-ab17-41f5-9cf9-5a11d91d58b5", "issuer": "http://sandbox.opencraft.com:8005/public/issuers/test-issuer"},
'id': 2L,
'mode': u'',
'user_id': 9L},
{'_state': <django.db.models.base.ModelState at 0x868d050>,
'course_id': CourseLocator(u'TestX', u'TST-01', u'now', None, None),
'data': {"revoked": false, "created_at": "2015-05-23T00:47:34.670722Z", "created_by": "http://sandbox.opencraft.com:8005/user/staff", "email": "kelketek@gmail.com", "json": {"issuedOn": "2015-05-22T17:47:34.669895", "uid": "a5c3f0c8-5375-4e27-9334-b76c142b1065", "verify": {"url": "http://sandbox.opencraft.com:8005/public/assertions/a5c3f0c8-5375-4e27-9334-b76c142b1065", "type": "hosted"}, "image": "http://sandbox.opencraft.com:8005/public/assertions/a5c3f0c8-5375-4e27-9334-b76c142b1065/image", "badge": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "type": "Assertion", "@context": "https://w3id.org/openbadges/v1", "recipient": {"salt": "383004ee-1995-4e09-9ef4-ef3b0517606c", "type": "email", "hashed": true, "identity": "sha256$1d1df248eaf02428c965e328473bf2c3c1a54747f364f75134cd5cf4fd324975"}, "id": "http://sandbox.opencraft.com:8005/public/assertions/a5c3f0c8-5375-4e27-9334-b76c142b1065"}, "revocation_reason": null, "image": "http://sandbox.opencraft.com:8005/media/issued/9727ca2201ef9332a90fc15338aad92d.png", "badgeclass": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "slug": "a5c3f0c8-5375-4e27-9334-b76c142b1065", "issuer": "http://sandbox.opencraft.com:8005/public/issuers/test-issuer"},
'id': 3L,
'mode': u'',
'user_id': 10L},
{'_state': <django.db.models.base.ModelState at 0x868d0d0>,
'course_id': CourseLocator(u'TestX', u'TST-01', u'now', None, None),
'data': {"revoked": false, "created_at": "2015-05-25T13:28:35.438964Z", "created_by": "http://sandbox.opencraft.com:8005/user/staff", "email": "xavier@antoviaque.org", "json": {"issuedOn": "2015-05-25T06:28:35.423787", "uid": "23bc1642-e7ab-4bae-8bbb-f53a1a349b76", "verify": {"url": "http://sandbox.opencraft.com:8005/public/assertions/23bc1642-e7ab-4bae-8bbb-f53a1a349b76", "type": "hosted"}, "image": "http://sandbox.opencraft.com:8005/public/assertions/23bc1642-e7ab-4bae-8bbb-f53a1a349b76/image", "badge": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "type": "Assertion", "@context": "https://w3id.org/openbadges/v1", "recipient": {"salt": "d609fb5f-6ee2-473d-a28e-12a12baa500d", "type": "email", "hashed": true, "identity": "sha256$e1da122a59112bfb9e97b85961998a6a2dc23b7a3297899c00ed8c8724262e47"}, "id": "http://sandbox.opencraft.com:8005/public/assertions/23bc1642-e7ab-4bae-8bbb-f53a1a349b76"}, "revocation_reason": null, "image": "http://sandbox.opencraft.com:8005/media/issued/e93e72162616bb0d70e3e1e8356cec69.png", "badgeclass": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "slug": "23bc1642-e7ab-4bae-8bbb-f53a1a349b76", "issuer": "http://sandbox.opencraft.com:8005/public/issuers/test-issuer"},
'id': 5L,
'mode': u'',
'user_id': 7L},
{'_state': <django.db.models.base.ModelState at 0x868d150>,
'course_id': CourseLocator(u'edX', u'DemoX', u'Demo_Course', None, None),
'data': {"revoked": false, "created_at": "2015-05-26T22:20:06.956157Z", "created_by": "http://sandbox.opencraft.com:8005/user/staff", "email": "honor@example.com", "json": {"issuedOn": "2015-05-26T15:20:06.955398", "uid": "3d1fd880-9038-43cd-9b53-350044beef0d", "verify": {"url": "http://sandbox.opencraft.com:8005/public/assertions/3d1fd880-9038-43cd-9b53-350044beef0d", "type": "hosted"}, "image": "http://sandbox.opencraft.com:8005/public/assertions/3d1fd880-9038-43cd-9b53-350044beef0d/image", "badge": "http://sandbox.opencraft.com:8005/public/badges/edxdemoxdemo_course_honor_9b72927", "type": "Assertion", "@context": "https://w3id.org/openbadges/v1", "recipient": {"salt": "d5c0a5be-4972-4d2f-9384-bc9b31d3de35", "type": "email", "hashed": true, "identity": "sha256$77418f6fd145bf3e7619167fa98a1526f0ab8c145e8fb8cf5f32363c3a8d02a3"}, "id": "http://sandbox.opencraft.com:8005/public/assertions/3d1fd880-9038-43cd-9b53-350044beef0d"}, "revocation_reason": null, "image": "http://sandbox.opencraft.com:8005/media/issued/2c42527205f63c4370ef4357baaaa5a7.png", "badgeclass": "http://sandbox.opencraft.com:8005/public/badges/edxdemoxdemo_course_honor_9b72927", "slug": "3d1fd880-9038-43cd-9b53-350044beef0d", "issuer": "http://sandbox.opencraft.com:8005/public/issuers/test-issuer"},
'id': 6L,
'mode': u'',
'user_id': 1L},
{'_state': <django.db.models.base.ModelState at 0x868d1d0>,
'course_id': CourseLocator(u'TestX', u'TST-01', u'now', None, None),
'data': {"revoked": false, "created_at": "2015-05-27T04:39:06.473333Z", "created_by": "http://sandbox.opencraft.com:8005/user/staff", "email": "partha@edx.org", "json": {"issuedOn": "2015-05-26T21:39:06.463485", "uid": "75616af2-74a7-4c46-b17f-54ad69ec420d", "verify": {"url": "http://sandbox.opencraft.com:8005/public/assertions/75616af2-74a7-4c46-b17f-54ad69ec420d", "type": "hosted"}, "image": "http://sandbox.opencraft.com:8005/public/assertions/75616af2-74a7-4c46-b17f-54ad69ec420d/image", "badge": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "type": "Assertion", "@context": "https://w3id.org/openbadges/v1", "recipient": {"salt": "2d2b49cf-f137-4c88-bce7-cc36c72cebed", "type": "email", "hashed": true, "identity": "sha256$ac7963748c87f191ac4b9cd1d27a3e353497f1cde858481f35124718eeb13a7b"}, "id": "http://sandbox.opencraft.com:8005/public/assertions/75616af2-74a7-4c46-b17f-54ad69ec420d"}, "revocation_reason": null, "image": "http://sandbox.opencraft.com:8005/media/issued/d461fc83f1e2c37f1496f74bc27380d0.png", "badgeclass": "http://sandbox.opencraft.com:8005/public/badges/course-v1testxtst-01now_honor_d1a00bd", "slug": "75616af2-74a7-4c46-b17f-54ad69ec420d", "issuer": "http://sandbox.opencraft.com:8005/public/issuers/test-issuer"},
'id': 7L,
'mode': u'',
'user_id': 11L}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment