learning-credentials 0.4.1rc2__py3-none-any.whl → 0.4.1rc4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- learning_credentials/generators.py +4 -4
- {learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/METADATA +1 -1
- {learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/RECORD +7 -7
- {learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/WHEEL +0 -0
- {learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/entry_points.txt +0 -0
- {learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/licenses/LICENSE.txt +0 -0
- {learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/top_level.txt +0 -0
|
@@ -338,7 +338,7 @@ def generate_pdf_credential(
|
|
|
338
338
|
Options:
|
|
339
339
|
|
|
340
340
|
- template (required): The slug of the PDF template asset.
|
|
341
|
-
- template_multiline: Alternative template for multiline context names (when using '\n'
|
|
341
|
+
- template_multiline: Alternative template for multiline context names (when using '\n').
|
|
342
342
|
- defaults: Global defaults for all text elements.
|
|
343
343
|
- font: Font name (asset slug). Default: Helvetica.
|
|
344
344
|
- color: Hex color code. Default: #000.
|
|
@@ -376,11 +376,11 @@ def generate_pdf_credential(
|
|
|
376
376
|
|
|
377
377
|
username = _get_user_name(user)
|
|
378
378
|
|
|
379
|
-
# Handle multiline context name
|
|
380
|
-
context_name = get_learning_context_name(learning_context_key)
|
|
379
|
+
# Handle multiline context name.
|
|
380
|
+
context_name = get_learning_context_name(learning_context_key)
|
|
381
381
|
custom_context_text_element = options.get('text_elements', {}).get('context', {})
|
|
382
382
|
if isinstance(custom_context_text_element, dict):
|
|
383
|
-
context_name = custom_context_text_element.get('text', '')
|
|
383
|
+
context_name = custom_context_text_element.get('text', '') or context_name
|
|
384
384
|
|
|
385
385
|
template_path = options.get('template')
|
|
386
386
|
if '\n' in context_name:
|
|
@@ -3,7 +3,7 @@ learning_credentials/admin.py,sha256=ynK3tVJwLsIeV7Jk66t1FAVyVsU1G-KRIAdRkycVTmA
|
|
|
3
3
|
learning_credentials/apps.py,sha256=trdQxe-JRhUdUaOQoQWiGL1sn6I1sfDiTvdCwy8yGuw,1037
|
|
4
4
|
learning_credentials/compat.py,sha256=bTAB6bTh99ZyhUqOsDtM_BuIPzFxCjySFtfvc-_fCd4,4731
|
|
5
5
|
learning_credentials/exceptions.py,sha256=UaqBVXFMWR2Iob7_LMb3j4NNVmWQFAgLi_MNMRUvGsI,290
|
|
6
|
-
learning_credentials/generators.py,sha256=
|
|
6
|
+
learning_credentials/generators.py,sha256=uvKcrajX-41X4ITOEmndTWnyjefh7FL8RocRGgHrEdg,14844
|
|
7
7
|
learning_credentials/models.py,sha256=J_SCNiu42yhdi12eDMLsxNCTkJK7_vqneQjyGYG5KJ4,16048
|
|
8
8
|
learning_credentials/processors.py,sha256=LkdjmkLBnXc9qeMcksB1T8AQ5ZhYaECyQO__KfHB_aU,15212
|
|
9
9
|
learning_credentials/tasks.py,sha256=byoFEUvN_ayVaU5K5SlEiA7vu9BRPaSSmKnB9g5toec,1927
|
|
@@ -32,9 +32,9 @@ learning_credentials/templates/learning_credentials/edx_ace/certificate_generate
|
|
|
32
32
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/from_name.txt,sha256=-n8tjPSwfwAfeOSZ1WhcCTrpOah4VswzMZ5mh63Pxow,20
|
|
33
33
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/head.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
learning_credentials/templates/learning_credentials/edx_ace/certificate_generated/email/subject.txt,sha256=S7Hc5T_sZSsSBXm5_H5HBNNv16Ohl0oZn0nVqqeWL0g,132
|
|
35
|
-
learning_credentials-0.4.
|
|
36
|
-
learning_credentials-0.4.
|
|
37
|
-
learning_credentials-0.4.
|
|
38
|
-
learning_credentials-0.4.
|
|
39
|
-
learning_credentials-0.4.
|
|
40
|
-
learning_credentials-0.4.
|
|
35
|
+
learning_credentials-0.4.1rc4.dist-info/licenses/LICENSE.txt,sha256=GDpsPnW_1NKhPvZpZL9imz25P2nIpbwJPEhrlq4vPAU,34523
|
|
36
|
+
learning_credentials-0.4.1rc4.dist-info/METADATA,sha256=DshEeYEYBQ0pmlImz4TjzPDsEdhCdyE3Z3Lv-rWRTzI,8258
|
|
37
|
+
learning_credentials-0.4.1rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
learning_credentials-0.4.1rc4.dist-info/entry_points.txt,sha256=hHqqLUEdzAN24v5OGBX9Fr-wh3ATDPjQjByKz03eC2Y,91
|
|
39
|
+
learning_credentials-0.4.1rc4.dist-info/top_level.txt,sha256=Ce-4_leZe_nny7CpmkeRiemcDV6jIHpIvLjlcQBuf18,21
|
|
40
|
+
learning_credentials-0.4.1rc4.dist-info/RECORD,,
|
|
File without changes
|
{learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{learning_credentials-0.4.1rc2.dist-info → learning_credentials-0.4.1rc4.dist-info}/top_level.txt
RENAMED
|
File without changes
|