urllib2 ftp mirror
Hi, I need to be able to mirror a remote ftp site recursivly, but my access to the internet is through a http proxy server. From my search I can see that ftpmirror.py uses ftplib and ftplib does not support proxy servers, you need to use urllib2. Does anyone know of a simple way to get this done? recursive ft mirror using urllib? Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
ftp upload through proxy ?
Hi, I have been searching the groups for a way to upload a file using URLLIB (2) to a ftp site using a proxy server. I read the ftplib does not support proxy servers and I know that urllib does support it. I can download a file from a ftp site through the proxy - but now I need to be able to upload. There are some postings about file uploads using http_post but none mentioned ftp uploads using urllib2 over proxy server ... Has anyone done this ? Can it be done ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: best way to do this ...
hmm - but I want to store the data in memory eather than a filesystem ... it is not an issue if the program terminates - it is almost needed while running and does not need to remember where it is .. the dirctionary is detail = {} will try the list() function - thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: Tkinter and Text() widget interactivity ?
Many thanks for this - will give it a bash ;) Tonino -- http://mail.python.org/mailman/listinfo/python-list
Tkinter and Text() widget interactivity ?
Hi, I have a small Tkinter app that gets data from a socket connection to a server. The app has a Text() widget to display the info that it gets from the socket connection. I have the ability to stop the text at any point. What I want to be able todo is select a line from the Text() window and double click or whatever on it to open a new window with that selected text as a paramater to the new window. The app is a network sniffer and I want to be able to select a line from the Text() window and run a decode on the data from the sniffer. any help and pointers would help. I have no idea of what to search for ;) Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: gui scripting
hi, thanks - am already involved in a process to modify winguiauto.py - this is a GREAT start but we need more control and better handleing ;) Thanks for the WATSUP site - will check on this as well ;) Thanks T -- http://mail.python.org/mailman/listinfo/python-list
gui scripting
HI, I have a 2 phase question: Phase 1 is I am needing to automate a report generation from a proprietary product. Currently a person sits and input's the data into a GUI frontend and clicks's the appropriate buttons to start the report generation. What I am wanting todo is automate this, but since the GUI is from a proprietary product all I have is the GUI. This is done on a Linux Xfree server. Can anyone please point me in a direction to a pythonic gui scripting module ? Python is the best tool and we use it elsewhere - so it is the best option. Second phase will have this done on a Windows platform... but that is second priority ... Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: gui scripting
thanks - this helps ;)) will play with android ... -- http://mail.python.org/mailman/listinfo/python-list
Re: tkinter socket client ?
great - thanks ;) Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: tkinter socket client ?
Hi, thanks for this info - I had to abandon the createfilehandler() method as it is not supported in windows and the GUI might be used there at some time ... So - I went the threading route - works well - for now - so I will stick to it ... BUT - the next question: In the Text() widget - why - when the text scrolls off the screen - does the window not follow it ? I have added a scrollbar to it : self.center_frame = Frame(self.top_frame, background=tan, relief=RIDGE) self.text=Text(self.center_frame,background='white') scroll=Scrollbar(self.center_frame) self.text.configure(yscrollcommand=scroll.set) self.text.pack(side=LEFT, fill=BOTH, expand=YES) scroll.pack(side=RIGHT,fill=Y) self.center_frame.pack(side=RIGHT, expand=YES, fill=BOTH) but the window does not scroll to follow the text ? Any ideas ? Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: tkinter socket client ?
thanks for the info - but I really do not want to learn twisted before I can understand Tkinter ;) another thread seems the way - will try that ... Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: tkinter socket client ?
hi there , yeah - had a look at createfilehandler() - was a bit confusing - but your example helps ;) Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
tkinter socket client ?
I have been looking through the previous posts - but with my lack of knowledge on the whole tkinter subject - I have no clue what to look for ... SO - can anyone please help with this ...? I have a python server that when it gets a connection from a client - it sends data back - quite a bit of it - in discreet parts - around 1024 byte chunks ... I have created a tkinter client that makes a simple connect to the server. What I have a problem with is I need the client to write all the data to the Text() widget created in the GUI client - the Text() widget is created as : self.text=Text(self.center_frame,background='white') scroll=Scrollbar(self.center_frame) self.text.configure(yscrollcommand=scroll.set) self.text.pack(side=LEFT, fill=BOTH, expand=YES) scroll.pack(side=RIGHT,fill=Y) self.center_frame.pack(side=RIGHT, expand=YES, fill=BOTH) I have a button with Connect written on it that connects to the server by calling : HOST = 'localhost' PORT = 9000 global s for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: s = socket.socket(af, socktype, proto) except socket.error, msg: s = None continue try: s.connect(sa) except socket.error, msg: s.close() s = None continue break if s is None: print 'could not open socket' self.quitButtonClick NOW - HOW do I get the server's sent data to continuiosly print in the Text() widget ? Many thank Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: Socket and Tkinter Problem
hi, was wondering if you ever got a reply ? Did you mannage to sort this out ? I am wanting todo the same thing - just have a window that connects to a port and displays the data it receives from that port in the window? Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
python intergration bus ?
Hi, Just an interested question - I friend is testing a few JAVA intergration bus's that will be used to intergrate his companies services - I was wondering if there was a python intergration bus ? other than maybe Pyro ? Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: mathmatical expressions evaluation
yes - this is what I have been doing - created a set of functions to handle the formula and they all calculate a section of the formula. Thanks for all the help ;) Tonino -- http://mail.python.org/mailman/listinfo/python-list
mathmatical expressions evaluation
Hi, I have a task of evaluating a complex series (sorta) of mathematical expressions and getting an answer ... I have looked at the numarray (not really suited??) and pythonica (too simple??) and even tried using eval() ... but wondered if there were other packages/modules that would enable me to to this a bit easier... The formula/equations are for investment calculations (Swap Yields). Is there a module/method that anyone can suggest ?? Many thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list
Re: mathmatical expressions evaluation
thanks all for the info - and yes - speed is not really an issue and no - it is not an implementation of a complete financial system - but rather a small subset of a investment portfolio management system developed by another company ... What I am trying to achieve is to parse a formula(s) and generate a result ... I will look into the pyparsing suggested and maybe even leave out numarrays for now - as it seems a bit overkill ... The formula are a bit complex and maybe even difficult to write out Thanks all - I will post my progress ;) -- http://mail.python.org/mailman/listinfo/python-list