Re: setuptools, ez_setup over http proxy

2005-10-13 Thread ray223

yoda wrote:
> I've recently configured my network such that I use squid as a http
> proxy.  I'd now like to be able to use setuptools and ez_setup via this
> proxy.  Is this possible? If so, how do I do it?
>
> The most that the setuptools documentation says is
> (http://peak.telecommunity.com/DevCenter/setuptools):
>
> "If you are behind an NTLM-based firewall that prevents Python
> programs from accessing the net directly, you may wish to first install
> and use the APS proxy server, which lets you get past such firewalls in
> the same way that your web browser(s) do."
>
> ps. I'm not sure that this is the right forum for this question.  If it
> isn't feel free to point me to the right place.

Hi,

This is really an urllib2 question ...

setup an environment variable "HTTP_PROXY" that points to your proxy
server, of the form:

user:[EMAIL PROTECTED]:port

urllib2 doco will probably have more details

Ray Smith

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to delete a directory tree in FTP

2006-08-16 Thread ray223
T wrote:
> I connect to a FTP server which can be either unix or windows server.
> Once in the FTP session, I would like to delete a directory tree on the
> server.  Is there a command that will do this?  If not, can someone
> point me to a right direction?
>
> Thanks!

Have a look at rmtree in ftputil.

http://ftputil.sschwarzer.net/

Regards,

Ray Smith
http://RaymondSmith.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Py2exe make wxPython window looks bad

2006-06-30 Thread ray223

zdp wrote:
> Dear all:
>
> I made a window program by wxPython. Split windows, treectrl, listctrl
> and textctrl are used. When I program in python, the look & feel of the
> window controls are like the windos XP look & feel, with thin and flat
> border (My os is window XP). It's natural because, as I know,  wxPython
> use native look and feel.
[snip]

http://wiki.wxpython.org/index.cgi/FAQ#head-4cc058aed6216dd200d55a6e4c077ccbe82bd142

Regards,

Ray Smith
http://RaymondSmith.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How can I create a linked list in Python?

2007-01-16 Thread ray223

Dongsheng Ruan wrote:
> with a cell class like this:
>
> #!/usr/bin/python
>
> import sys
>
> class Cell:
>
>  def __init__( self, data, next=None ):
>   self.data = data
>   self.next = next
>
>  def __str__( self ):
>   return str( self.data )
>
>  def echo( self ):
>   print self.__str__()


Hi,

The "How to Think Like a Computer Scientist" free book has a chapter
just for this topic:

http://greenteapress.com/thinkpython/html/chap17.html

Regards,

Ray Smith
http://RaymondSmith.com

-- 
http://mail.python.org/mailman/listinfo/python-list