mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
@@ -3622,6 +3622,8 @@ def doCancelPrintJob():
|
||||
print('Print Job %s cancelled' % job)
|
||||
|
||||
def checkCloudPrintResult(result):
|
||||
if isinstance(result, bytes):
|
||||
result = result.decode(UTF8)
|
||||
if isinstance(result, str):
|
||||
try:
|
||||
result = json.loads(result)
|
||||
@@ -5741,7 +5743,8 @@ def addSmime(users):
|
||||
myarg = sys.argv[i].lower()
|
||||
if myarg == 'file':
|
||||
smimefile = sys.argv[i+1]
|
||||
body['pkcs12'] = base64.urlsafe_b64encode(readFile(smimefile, mode='rb'))
|
||||
smimeData = readFile(smimefile, mode='rb')
|
||||
body['pkcs12'] = base64.urlsafe_b64encode(smimeData).decode(UTF8)
|
||||
i += 2
|
||||
elif myarg == 'password':
|
||||
body['encryptedKeyPassword'] = sys.argv[i+1]
|
||||
|
||||
Reference in New Issue
Block a user