From abra9823 at mail.usyd.edu.au Fri Oct 1 01:17:21 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Fri Oct 1 01:17:29 2004 Subject: [PythonCE] [ANN} PyOpenSSL In-Reply-To: References: <1096523814.415ba026130c3@www-mail.usyd.edu.au> Message-ID: <1096586241.415c940180665@www-mail.usyd.edu.au> Quoting Mark Eichin : > Is that enough to make urllib.urlopen work with https urls, or is it > lower level than that? i don't know how urllib works so cant answer that one. But you can use PyOpenSSL to open a socket connection to the server and then write a request to the server. So your code may be something like from OpenSSL.SSL import * import socket import rand #create context ctx = Context(SSLv23_METHOD) #load certificate, certificate chain and keys #you will also need to seed the PRNG,WinCE devices dont have any source for #random events, so you can specify a file with random data rand.load_file("foo.rnd") #create socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn = Connection(ctx, sock) conn.connect(("https://www.verisign.com", xxx)) conn.send("GET......") i dont remember the syntax off my head, so the above code may be syntactically wrong. but that is one way to go about opening a HTTPS connection. cheers > > > On Thu, 30 Sep 2004 15:56:54 +1000, Ajay > wrote: > > hi! > > > > i have built PyOpenSSL for a Toshiba e740 (it uses XScale, but i think > > thats compatible with a StrongArm). > > i have put up the binaries along with a quick HOWTO for anyone who > wants to > > build from source on my webpage at > > http://www.cs.usyd.edu.au/~abrar1/resources.html > > > > cheers > > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > > PythonCE mailing list > > PythonCE@python.org > > http://mail.python.org/mailman/listinfo/pythonce > > > > > > -- > _Mark_ > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From lagdotcom at gmail.com Fri Oct 1 17:27:53 2004 From: lagdotcom at gmail.com (Paul Davies) Date: Fri Oct 1 17:28:00 2004 Subject: [PythonCE] [ANN} PyOpenSSL In-Reply-To: <1096523814.415ba026130c3@www-mail.usyd.edu.au> References: <1096523814.415ba026130c3@www-mail.usyd.edu.au> Message-ID: Looking at the PythonCE sourceforge project, I only see releases for the Armstrong processor... I have a HP Jornada 420 which uses a Hitachi SH3 processor, and I'm wondering if I could do any work necessary to port it onto this platform. - Lag From abra9823 at mail.usyd.edu.au Sat Oct 2 01:58:45 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Oct 2 01:58:52 2004 Subject: [PythonCE] [ANN} PyOpenSSL In-Reply-To: References: <1096523814.415ba026130c3@www-mail.usyd.edu.au> Message-ID: <1096675125.415def3569c3f@www-mail.usyd.edu.au> Quoting Paul Davies : > Looking at the PythonCE sourceforge project, I only see releases for > the Armstrong processor... I have a HP Jornada 420 which uses a > Hitachi SH3 processor, and I'm wondering if I could do any work > necessary to port it onto this platform. i think someone may have done this. look through the list archives, i remember seeing posts about python port for Jornada. > - Lag > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From lagdotcom at gmail.com Sat Oct 2 14:17:27 2004 From: lagdotcom at gmail.com (Paul Davies) Date: Sat Oct 2 14:17:32 2004 Subject: Fwd: [PythonCE] [ANN} PyOpenSSL In-Reply-To: References: <1096523814.415ba026130c3@www-mail.usyd.edu.au> <1096675125.415def3569c3f@www-mail.usyd.edu.au> Message-ID: On Sat, 2 Oct 2004 09:58:45 +1000, Ajay wrote: > > i think someone may have done this. look through the list archives, i > remember seeing posts about python port for Jornada. > I'm having serious trouble finding it, does anyone else have any info? From anthony.tuininga at gmail.com Wed Oct 20 17:22:27 2004 From: anthony.tuininga at gmail.com (Anthony Tuininga) Date: Wed Oct 20 17:22:29 2004 Subject: [PythonCE] xml on PocketPC Message-ID: <703ae56b04102008221d929347@mail.gmail.com> I had a need for a Pocket PC device to communicate with a server via a web service. I have successfully done so after a few modifications to source that I thought might be of interest to those on this list. Attached are the small patches required to get it to compile. With these changes I was able to get the module to import and successfully parse an XML stream sent by a web service. If you have questions, I'd be happy to answer them. I'm not sure if there is some repository for patches required for the Windows CE platform but if there is I'd be happy to have these included so that I don't have to maintain them.... :-) Hope this helps someone. -------------- next part -------------- A non-text attachment was scrubbed... Name: xmlparse.c.diff Type: text/x-patch Size: 866 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonce/attachments/20041020/fc9f8e56/xmlparse.c.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: xmltok.c.diff Type: text/x-patch Size: 307 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonce/attachments/20041020/fc9f8e56/xmltok.c.bin From bkc at murkworks.com Wed Oct 20 17:42:45 2004 From: bkc at murkworks.com (Brad Clements) Date: Wed Oct 20 17:30:23 2004 Subject: [PythonCE] xml on PocketPC In-Reply-To: <703ae56b04102008221d929347@mail.gmail.com> Message-ID: <41764F26.16912.1A1D853A@coal.murkworks.com> On 20 Oct 2004 at 9:22, Anthony Tuininga wrote: > Attached are the small patches required to get it to compile. With > these changes I was able to get the module to import and successfully > parse an XML stream sent by a web service. If you have questions, I'd > be happy to answer them. I'm not sure if there is some repository for > patches required for the Windows CE platform but if there is I'd be > happy to have these included so that I don't have to maintain them.... :-) Thanks for the patches. In looking at xmlparse.c, I wonder why that patch just wouldn't go into the core distribution. I'm not familiar with this module or the offsetof C macro, but I'd think that other non x86 platforms might have the same issues, regardless of OS. -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From marc_schmidt_fl at yahoo.com Fri Oct 22 15:21:47 2004 From: marc_schmidt_fl at yahoo.com (Marc Schmidt) Date: Fri Oct 22 15:21:51 2004 Subject: [PythonCE] command line parameters Message-ID: <20041022132148.85422.qmail@web90106.mail.scd.yahoo.com> Hi, I'd like to know how I can get the command line parameters in my script. What I've tried is using sys.argv, but I only got the script path in a list. Been looking through the archives but couldn't find an answer. Marc http://home.pages.at/refnamski/refnam/index.html _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From johnny at debris.demon.nl Fri Oct 22 23:02:16 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Fri Oct 22 23:02:11 2004 Subject: [PythonCE] Re: please help In-Reply-To: <4177696A.6070602@debris.demon.nl> References: <6BE417C96732934A83E4BBBB3B7FF2F40248F915@haydn.cti.depaul.edu> <4177696A.6070602@debris.demon.nl> Message-ID: <41797558.2040303@debris.demon.nl> Johnny deBris wrote: > This mail got sent to me personally instead of to the list, hope > someone can answer this... > > Cheers, > > Guido > > DiPierro, Massimo wrote: > >> Hi everybody... first of all thank you for your work on Python for >> Windows CE. >> >> I am trying to install Tkinter in a Pocket PC (axim X30). I am very >> familiar with Unix but not with windows CE. >> Hope I can get some help. >> I got pyhton and Tkinter from http://fore.validus.com/~kashtan/ and I >> installed as instructed. Python works fine. I can inport any modules >> but not "import Tkinter". I get the error: ImportError: No module >> named Tkinter. >> >> Actually the module is in the file /Program >> Files/Python/Lib/Python23.zip (where all the other modules are). >> >> tcl is installed in /tcl8.4.3 and the dlls are under /Windows >> >> yes, I did the python registry setup. >> >> What am I doing wrong? >> >> Thank you, >> >> Massimo >> >> >> >> >> > > From abra9823 at mail.usyd.edu.au Sat Oct 23 04:09:01 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Oct 23 04:09:06 2004 Subject: [PythonCE] Re: please help In-Reply-To: <41797558.2040303@debris.demon.nl> References: <6BE417C96732934A83E4BBBB3B7FF2F40248F915@haydn.cti.depaul.edu> <4177696A.6070602@debris.demon.nl> <41797558.2040303@debris.demon.nl> Message-ID: <1098497341.4179bd3dc69ff@www-mail.usyd.edu.au> Quoting Johnny deBris : > Johnny deBris wrote: > > > This mail got sent to me personally instead of to the list, hope > > someone can answer this... > > > > Cheers, > > > > Guido > > > > DiPierro, Massimo wrote: > > > >> Hi everybody... first of all thank you for your work on Python for > >> Windows CE. > >> > >> I am trying to install Tkinter in a Pocket PC (axim X30). I am very > >> familiar with Unix but not with windows CE. > >> Hope I can get some help. > >> I got pyhton and Tkinter from http://fore.validus.com/~kashtan/ and I > >> installed as instructed. Python works fine. I can inport any modules > >> but not "import Tkinter". I get the error: ImportError: No module > >> named Tkinter. > >> > >> Actually the module is in the file /Program > >> Files/Python/Lib/Python23.zip (where all the other modules are). > >> > >> tcl is installed in /tcl8.4.3 and the dlls are under /Windows > >> > >> yes, I did the python registry setup. > >> > >> What am I doing wrong? > >> > >> Thank you, > >> > >> Massimo > >> > >> > >> this may sound trivial and you may have already tried this but have you got this at the start of your script sys.path.append('\\Program Files\\Python\\Lib\\python23.zip\\lib-tk') > >> > >> > > > > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.