change to popen for python 2.6 support
This commit is contained in:
parent
4d8b0b77c9
commit
04bfd40c11
@ -19,8 +19,8 @@ PR_EC_WEBACCESS_SETTINGS_JSON = PROP_TAG(PT_STRING8, PR_EC_BASE + 0x72)
|
|||||||
|
|
||||||
|
|
||||||
def encode(value):
|
def encode(value):
|
||||||
output = subprocess.check_output(["php", "deencode.php", "encode", value])
|
proc = subprocess.Popen(["php", "deencode.php", "encode", value], stdout=subprocess.PIPE)
|
||||||
return output.strip()
|
return proc.communicate()[0]
|
||||||
|
|
||||||
|
|
||||||
def opt_args():
|
def opt_args():
|
||||||
@ -117,7 +117,7 @@ def files(options):
|
|||||||
encode(configfile['setting']['server_address']), configfile['setting']['server_ssl'],
|
encode(configfile['setting']['server_address']), configfile['setting']['server_ssl'],
|
||||||
encode('d4cacda458a2a26c301f2b7d75ada530'), configfile['setting']['use_zarafa_credentials'],
|
encode('d4cacda458a2a26c301f2b7d75ada530'), configfile['setting']['use_zarafa_credentials'],
|
||||||
encode(username), encode(configfile['setting']['default_password']),
|
encode(username), encode(configfile['setting']['default_password']),
|
||||||
encode('443'), configfile['setting']['name'], id, configfile['setting']['type'])
|
encode(configfile['setting']['server_port']), configfile['setting']['name'], id, configfile['setting']['type'])
|
||||||
num += 1
|
num += 1
|
||||||
|
|
||||||
filesjson += '''
|
filesjson += '''
|
||||||
|
Loading…
Reference in New Issue
Block a user