--{N_P}--
15th July 2008, 14:52
As a Python for S60 developer using 3rd edition of the S60 platform I'm using the Open Signed Online service a lot to allow my scripts to access some of the more advanced features of the platform. The process involves uploading of a Symbian Installation File via a web-based form (including a captcha), confirming using a link sent via an e-mail and then waiting for a second e-mail with a link to a signed version of the uploaded file.
During the development, when you have a new version to install on your phone every 5 minutes, this process can be cumbersome at least. To improve it a bit, I've written a Python script called opensignsis that does almost all of this automatically.
Your attention is only needed when specifying command line parameters and (unfortunatelly) right after starting, when you are asked to solve the captcha.
> opensignsis.py --imei=123456789012345 --email=foo.bar@gmail.com --server=pop.gmail.com --ssl PythonScriptShell_1_4_4_3rdEd_unsigned_testrange.S IS PythonScriptShell_1_4_4_3rdEd_imei_123456789012345 .sis
warning: no caps specified, using 'ALL'
Processing security code...
Sending request to Open Signed Online...
warning: no login specified, using 'foo.bar'
warning: no passwd specified, prompting for one now
Password for 'foo.bar':
Waiting for request confirmation...
Waiting for signed file...
Done
The security code dialog (displayed after the "Processing security code..." line) uses wxPython so you have to install it too.
OpenSignSIS update (http://arkadiusz-wahlig.blogspot.com/2008/07/opensignsis-update.html)
The Open Signed Online automation script introduced in my previous post has been slightly updated.
The new version creates an empty config file on the first run which can be filled with values later (using a text editor). This was added since most of the arguments passed to the previous version stayed the same for every SIS file and had to be repeated every time.
The config file is called opensignsis.config and is placed in the directory where the script is. Here's how it could look like:
[device]
imei = 123456789012345
[email]
email = foo.bar@gmail.com
server = pop.gmail.com
login = foo.bar
passwd = spam
ssl = yes
If you provide all this information in a config file then all you need to specify in arguments during the execution are the names of input and output SIS files. The values from the config file act as default values for the arguments so you can still provide all options in arguments if you want. You may omit any of the options in the config file if you always want to provide them in arguments.
latest update
In the new version (0.53), the IMEI used during the sign process is displayed in output so even if it comes from a config file, you know which one you're using. You may also include it in the output file by putting "{imei}" in the output filename.
During the development, when you have a new version to install on your phone every 5 minutes, this process can be cumbersome at least. To improve it a bit, I've written a Python script called opensignsis that does almost all of this automatically.
Your attention is only needed when specifying command line parameters and (unfortunatelly) right after starting, when you are asked to solve the captcha.
> opensignsis.py --imei=123456789012345 --email=foo.bar@gmail.com --server=pop.gmail.com --ssl PythonScriptShell_1_4_4_3rdEd_unsigned_testrange.S IS PythonScriptShell_1_4_4_3rdEd_imei_123456789012345 .sis
warning: no caps specified, using 'ALL'
Processing security code...
Sending request to Open Signed Online...
warning: no login specified, using 'foo.bar'
warning: no passwd specified, prompting for one now
Password for 'foo.bar':
Waiting for request confirmation...
Waiting for signed file...
Done
The security code dialog (displayed after the "Processing security code..." line) uses wxPython so you have to install it too.
OpenSignSIS update (http://arkadiusz-wahlig.blogspot.com/2008/07/opensignsis-update.html)
The Open Signed Online automation script introduced in my previous post has been slightly updated.
The new version creates an empty config file on the first run which can be filled with values later (using a text editor). This was added since most of the arguments passed to the previous version stayed the same for every SIS file and had to be repeated every time.
The config file is called opensignsis.config and is placed in the directory where the script is. Here's how it could look like:
[device]
imei = 123456789012345
[email]
email = foo.bar@gmail.com
server = pop.gmail.com
login = foo.bar
passwd = spam
ssl = yes
If you provide all this information in a config file then all you need to specify in arguments during the execution are the names of input and output SIS files. The values from the config file act as default values for the arguments so you can still provide all options in arguments if you want. You may omit any of the options in the config file if you always want to provide them in arguments.
latest update
In the new version (0.53), the IMEI used during the sign process is displayed in output so even if it comes from a config file, you know which one you're using. You may also include it in the output file by putting "{imei}" in the output filename.