Unclear datetime.date type when using isinstance

2010-10-02 Thread Mailing List
Was including a input check on a function argument which is expecting a datetime.date. When running unittest no exception was raised when a datetime.datetime instance was used as argument. Some playing with the console lead to this: import datetime dt1 = datetime.datetime(2010, 10, 2)

Re: round() function

2010-02-25 Thread mailing list
On 25.2.2010. 16:39, Tracubik wrote: hi all, i've this sample code: n = 4.499 str(round(n,2)) '4.5' that's right, but what i want is '4.50' to be displayed instead of '4.5'. Off course i know that 4.5 = 4.50, still i'ld like to have 4.50. How can I solve this? Thanks in

HTTPSConnection: client certificate auth

2009-01-31 Thread Mailing List SVR
Hi all, I have a soap client using ZSI, the other end is oracle soa 10.1.3.1.0 all works fine since some months. The last week oracle soa was configured to accept client certificate authentication over https. If I try to use the standard python httplib.HTTPSConnection library it fails with the

Re: SHA1withRSA in python

2008-11-18 Thread Mailing List SVR
/MIME messenger for Zope. M2Crypto can also be used to provide SSL for Twisted. http://chandlerproject.org/Projects/MeTooCrypto Cheers, PN 2008/11/12 Mailing List SVR [EMAIL PROTECTED]: Hi all, in java there are several libraries for sha1withrsa, there is something similar

SHA1withRSA in python

2008-11-11 Thread Mailing List SVR
Hi all, in java there are several libraries for sha1withrsa, there is something similar in python? thanks Nicola -- http://mail.python.org/mailman/listinfo/python-list

Re: Zsi interoperability

2008-10-01 Thread Mailing List SVR
Il giorno mar, 16/09/2008 alle 08.31 +0200, Mailing List SVR ha scritto: Il giorno lun, 15/09/2008 alle 20.26 +0200, Marco Bizzarri ha scritto: On Mon, Sep 15, 2008 at 8:15 PM, Stefan Behnel [EMAIL PROTECTED] wrote: Mailing List SVR wrote: I have to implement a soap web services from wsdl

Re: Distinguish file and folder on ftp site

2008-08-21 Thread Mailing List SVR
Il giorno gio, 14/08/2008 alle 10.08 +0200, Fredrik Lundh ha scritto: Mailing List SVR wrote: is there a simple way to do this? ftplib seems unable to distinguish between files and dir, a mimetype check would be good, the FTP protocol doesn't specify the format for the output from

Distinguish file and folder on ftp site

2008-08-14 Thread Mailing List SVR
Hi, is there a simple way to do this? ftplib seems unable to distinguish between files and dir, a mimetype check would be good, regards Nicola -- http://mail.python.org/mailman/listinfo/python-list

Python treeview and recursion: help needed

2008-05-23 Thread Mailing List SVR
Hi, I have a database with the following structure: idname sublevel for example 1 Node1 None 2 Node2 1 3 Node3 2 4 Node4 None 5 Node5 1 6 Node6 5 where Node1 and Node4 are treeview's master nodes, Node2 is a subnode of Node1,

Re: Python treeview and recursion: help needed

2008-05-23 Thread Mailing List SVR
Il giorno ven, 23/05/2008 alle 09.20 +0200, Mailing List SVR ha scritto: Hi, I have a database with the following structure: idname sublevel for example 1 Node1 None 2 Node2 1 3 Node3 2 4 Node4 None 5 Node5 1 6 Node6 5