Re: [BangPypers] Https and http difference in behaviour urllib2

2012-02-29 Thread Anand Chitipothu
2012/2/29 Senthil Kumaran : > On Tue, Feb 28, 2012 at 03:17:53PM +0530, Anand Balachandran Pillai wrote: >> For any kind of client side HTTP coding, I suggest the new requests library. >> I myself have been a heavy user of urllib2/urllib but these libraries are >> developer unfriendly and doesnt lo

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Amit Sethi
@ Balachandran Sivakumar The name parameter itself is base64 encoded , I did not notice that . I think that solves so many of my problems. Thanks -- A-M-I-T S|S ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listin

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Balachandran Sivakumar
Hi, On Wed, Feb 29, 2012 at 10:54 PM, Gora Mohanty wrote: >> is base64 encoded and says PURCHASE ORDER_Reliance.doc. So, probably >> that's how your client reads it and interprets it. May be it uses the >> Content-Transfer-Encoding header. Thanks > > Must be part of the L33T Blackberry encryption

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Gora Mohanty
On 29 February 2012 22:35, Balachandran Sivakumar wrote: > Hi, > > On Wed, Feb 29, 2012 at 10:10 PM, Amit Sethi > wrote: >> Well interestingly in case of blackberry devices the header is >> name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" >> Content-Disposition: attachment >> > >      Ok,

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Balachandran Sivakumar
Hi, On Wed, Feb 29, 2012 at 10:10 PM, Amit Sethi wrote: > Well interestingly in case of blackberry devices the header is > name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" > Content-Disposition: attachment > Ok, strange, but the name came as part of Content-Type. But it is base64 en

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Amit Sethi
Well interestingly in case of blackberry devices the header is Content-Type: application/octet-stream; name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" Content-Disposition: attachment so obviously thats not how it is happening ___ BangPypers mai

Re: [BangPypers] Https and http difference in behaviour urllib2

2012-02-29 Thread Senthil Kumaran
On Tue, Feb 28, 2012 at 03:17:53PM +0530, Anand Balachandran Pillai wrote: > For any kind of client side HTTP coding, I suggest the new requests library. > I myself have been a heavy user of urllib2/urllib but these libraries are > developer unfriendly and doesnt look like their problems are going

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Balachandran Sivakumar
Hi, On Wed, Feb 29, 2012 at 5:20 PM, Amit Sethi wrote: > > However I am still curious as to how other mail servers and clients > deducing the name of the original file. > There is a standard SMTP header named Content-Disposition, that has a filename attribute. That contains the original

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread s|s
The filename is included in the header. On Wed, Feb 29, 2012 at 5:20 PM, Amit Sethi wrote: > python-magic works like a charm ... > > However I am still curious as to how other mail servers and clients > deducing the name of the original file. > > Thanks > Amit > > -- > A-M-I-T S|S > _

Re: [BangPypers] something similar to file command for python

2012-02-29 Thread Amit Sethi
python-magic works like a charm ... However I am still curious as to how other mail servers and clients deducing the name of the original file. Thanks Amit -- A-M-I-T S|S ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman

Re: [BangPypers] class inheritance query

2012-02-29 Thread alind sharma
I think that X, Y, Z all inheriting from A will solve your problem. Alind Sharma From: Nitin Kumar To: Bangalore Python Users Group - India Sent: Wednesday, 29 February 2012 12:38 PM Subject: [BangPypers] class inheritance query Hi All, Let say I have som