Compare commits

..

7 Commits
nov12 ... main

Author SHA1 Message Date
paveenpaul f0c76bd05b Update kitchen_counter/lpp/certificate/createCertificate.py
moved create certificated from beta direct
2024-11-16 11:12:57 +00:00
paveenpaul 3670741456 Update kitchen_counter/lpp/templates/lpp/blockchainCertificate.html
moved blk certificated from beta direct
2024-11-16 11:11:54 +00:00
paveenpaul 0375427040 Update kitchen_counter/scriptAudit/views.py
added script_json["screenplay_name"] = str(screenplay_name) in views
2024-11-16 10:41:34 +00:00
paveenpaul aafd5edaf0 Update kitchen_counter/conversion/management/commands/custom_runserver.py
added script_json["screenplay_name"] = str(name_script) in custom_runserver
2024-11-16 10:36:11 +00:00
paveenpaul e88cbae28e Update kitchen_counter/conversion/translation/external_conversion.py
added script_json["screenplay_name"] = str(self.name_script) in external COnversion
2024-11-16 10:34:05 +00:00
paveenpaul 3c462882b2 Add kitchen_counter/media/lpptaskfolder/sdf.txt 2024-11-16 06:47:00 +00:00
paveenpaul 5b5d350be0 Merge pull request 'mnfqueue changed' (#1) from nov12 into main
Reviewed-on: #1
2024-11-12 12:37:21 +00:00
6 changed files with 727 additions and 721 deletions

View File

@ -314,6 +314,7 @@ def lpp_audit(msg):
script_json["script_file_path"] = script_path1 script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2 script_json["script_file"] = hash2
script_json["type"] = "script-json" script_json["type"] = "script-json"
script_json["screenplay_name"] = str(name_script)
scriptconversion["script-json"] = script_json scriptconversion["script-json"] = script_json
print("blockchain script conversion 5.2") print("blockchain script conversion 5.2")

View File

@ -610,6 +610,7 @@ class Conversion:
script_json["script_file_path"] = script_path1 script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2 script_json["script_file"] = hash2
script_json["type"] = "script-json" script_json["type"] = "script-json"
script_json["screenplay_name"] = str(self.name_script)
scriptconversion["script-json"] = script_json scriptconversion["script-json"] = script_json
print("blockchain script conversion 5.2") print("blockchain script conversion 5.2")

View File

@ -45,13 +45,15 @@ def certificateGenrate(name,file_from,Hash,projectname="NAN",matic="0"):
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html') f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
html = template.render(context) html = template.render(context)
options = { options = {
'page-size': 'A5', 'page-size': 'A4',
'zoom': 3.5, 'zoom': 12.5,
'margin-top': '0.0in', 'margin-top': '0.0in',
'margin-right': '0.0in', 'margin-right': '0.0in',
'margin-bottom': '0.0in', 'margin-bottom': '0.0in',
'margin-left': '0.0in', 'margin-left': '0.0in',
'enable-local-file-access': '', 'enable-local-file-access': '',
'orientation': 'Landscape',
'page-height': '11in',
} }
pdfkit.from_string( pdfkit.from_string(
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options) html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)

View File

@ -15,28 +15,28 @@
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px; "> <body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px; ">
<div style="box-shadow: 0px 4px 27px 0px #00000040;"> <div style="box-shadow: 0px 4px 27px 0px #00000040;">
<img src={{basepath}}/static/media/HeaderImageCertificate.png style="width: 100%;"> <img src={{basepath}}/static/media/HeaderImageCertificate.png style="width: 100%; height: 240px;" >
<table style="border-collapse: collapse; <table style="border-collapse: collapse;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 0px 0 50px 0px"> margin: 0px 0 50px 0px;height: 720px;">
<tr> <tr>
<td rowspan="4" style="text-align: center;"> <td rowspan="4" style="text-align: center;">
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 300px; <img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 600px;
width: 30px; width: 30px;
position: relative; position: relative;
top: -70px; padding: 0 20px;"> top: -70px; padding: 0 20px;">
</td> </td>
<td> <td>
<h2 style="font-family: Poppins; <h2 style="font-family: Poppins;
font-size: 18px; font-size: 26px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: #252525;">Blockchain Protection Certificate no.{{id}} color: #252525;">Blockchain Protection Certificate no.{{id}}
</h2> </h2>
</td> </td>
<td rowspan="4" style="text-align: center;"> <td rowspan="4" style="text-align: center;">
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 300px; <img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 600px;
width: 30px; width: 30px;
position: relative; position: relative;
top: 70px; padding: 0 20px;"> top: 70px; padding: 0 20px;">
@ -44,28 +44,28 @@
</tr> </tr>
<tr> <tr>
<td style="font-family: Poppins; <td style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 400; font-weight: 400;
text-align: center; text-align: left;
color: #252525; color: #252525;
line-height: 32px; line-height: 50px;
">This is to certify that ">This is to certify that
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;">{{File_Name}} color: 252525;">{{File_name}}
</span> </span>
uploaded by uploaded by
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;">{{name}} color: 252525;">{{name}}
</span> </span>
/ created by / created by
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;"> color: 252525;">
@ -74,7 +74,7 @@
has been has been
uploaded on Polygon Blockchain on uploaded on Polygon Blockchain on
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;"> color: 252525;">
@ -82,23 +82,22 @@
</span> </span>
for which My Next Film has paid for which My Next Film has paid
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;"> {{Matic}} color: 252525;"> {{Matic}}
</span> MATIC. This is </span> MATIC. <br>This is also to certify that the above file is stored and can be accessed using the
also to certify that the above file is accessible at the
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;"> color: 252525;">
transaction {{hash}} transaction id {{hash}}
</span> </span>
Only Through the only through the
combination of Public Key and Private Key exclusively known to the combination of Public Key and Private Key exclusively known to the
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 16px; font-size: 24px;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
color: 252525;"> color: 252525;">
@ -109,18 +108,18 @@
<tr> <tr>
<td> <td>
<p style="font-family: Poppins; <p style="font-family: Poppins;
font-size: 12px; font-size: 20px;
font-weight: 500; font-weight: 500;
text-align: left; text-align: left;
color: #252525; color: #252525;
margin-bottom: -10px; margin-bottom: -10px;
">Note:</p> ">Note:</p>
<p style="font-family: Poppins; <p style="font-family: Poppins;
font-size: 10px; font-size: 18px;
font-weight: 400; font-weight: 400;
text-align: left; text-align: left;
color: #616161; color: #616161;
line-height:22px; line-height:44px;
">The file resides on Decentralized Inter Planetary File System Storage. The location of the file ">The file resides on Decentralized Inter Planetary File System Storage. The location of the file
is encrypted and stored on Polygon Blockchain forever. The content is Transparent, is encrypted and stored on Polygon Blockchain forever. The content is Transparent,
Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and
@ -135,21 +134,21 @@
</div> </div>
<div> <div>
<p style="font-family: Poppins; <p style="font-family: Poppins;
font-size: 12px; font-size: 20px;
font-weight: 600; font-weight: 600;
text-align: left; text-align: left;
color: #EE3C4D; color: #EE3C4D;
line-height: 0px; line-height: 0px;
">Disclaimer:-</p> ">Disclaimer:-</p>
<p style="font-family: Poppins; <p style="font-family: Poppins;
font-size: 10px; font-size: 18px;
font-weight: 400; font-weight: 400;
text-align: left; text-align: left;
color: #616161; color: #616161;
line-height: 22px; line-height: 44px;
"> ">
<span style="font-family: Poppins; <span style="font-family: Poppins;
font-size: 12px; font-size: 20px;
font-weight: 600; font-weight: 600;
text-align: left; text-align: left;
color: #252525; color: #252525;
@ -168,7 +167,7 @@
<div style="width: 100%; background: #33B0CA; height: 15px;"></div> <div style="width: 100%; background: #33B0CA; height: 19px;"></div>
</div> </div>
</body> </body>

View File

@ -0,0 +1 @@
dfdf

View File

@ -338,6 +338,7 @@ def run_audit_in_counter(msg):
script_json["script_file_path"] = script_path1 script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2 script_json["script_file"] = hash2
script_json["type"] = "script-json" script_json["type"] = "script-json"
script_json["screenplay_name"] = str(screenplay_name)
audit_data["script-json"] = script_json audit_data["script-json"] = script_json
print("data_uploaded") print("data_uploaded")
except Exception as exp: except Exception as exp:
@ -488,6 +489,7 @@ def run_audit_in_counter(msg):
script_json["script_file_path"] = script_path1 script_json["script_file_path"] = script_path1
script_json["script_file"] = hash2 script_json["script_file"] = hash2
script_json["type"] = "script-json" script_json["type"] = "script-json"
script_json["screenplay_name"] = str(screenplay_name)
audit_data["script-json"] = script_json audit_data["script-json"] = script_json
print("data_uploaded") print("data_uploaded")
except Exception as exp: except Exception as exp: