Re: Shipping Executables

2010-02-17 Thread rodmc
> > Hi Rod, > > The user's ability to hack into the code is usually considered one of > > the strengths of Python & open source software in general. Since most > > Python software that's distributed  is open source, you're doing > > something different than most. It'd help if you explain how you w

Shipping Executables

2010-02-16 Thread rodmc
Hi, I have been merrily programming away in Python now for a few years and have a couple of applications I would like to possibly publish at some point - with the exception of certain libraries they are more or less 100% Python. However I have read elsewhere online that Python due to it's architec

FTP via web browser

2008-10-27 Thread rodmc
Hi, I have posted elsewhere about a related topic. But I an curious is it possible to set up a web form which people select a file for upload which is then upload it via FTP protocol to the web server - the entire process must be web based and not require an external FTP client. The reason for ask

Re: File Upload Size

2008-10-24 Thread rodmc
Hi Diez, Thanks, I will look on Google again, to date though all examples I have used come up against similar problems. As for HTTP framework and libraries, I will see what is currently supported. At present I am using standard Python libraries. Best, rod -- http://mail.python.org/mailman/listi

Re: File Upload Size

2008-10-24 Thread rodmc
On Oct 13, 11:55 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > rodmc wrote: > > On 13 Oct, 00:10, Mike Driscoll <[EMAIL PROTECTED]> wrote: > >> On Oct 12, 9:34 am, rodmc <[EMAIL PROTECTED]> wrote: > > >> > Hi, > > >>

Re: File Upload Size

2008-10-13 Thread rodmc
On 13 Oct, 00:10, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Oct 12, 9:34 am, rodmc <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Is there a way to get the size of a file on a remote machine before it > > is uploaded? I would like to write some form of statu

File Upload Size

2008-10-12 Thread rodmc
Hi, Is there a way to get the size of a file on a remote machine before it is uploaded? I would like to write some form of status counter which is updated as a fie is uploaded, and also to use this feature to prevent files which are too big from being uploaded. Best, rod -- http://mail.python.or

Download CGI

2008-10-12 Thread rodmc
Hi, I am trying to figure out how to create a Python script which will open a file from a folder outwith the public_html path and serve it directly to the user for downloading. The aim being so that the users cannot see where the file is served from. Is there an easy way to do this, or an HTML hea

Re: Mobile Devices

2008-06-26 Thread rodmc
Thanks for your reply, I may dig out my really old Symbian phone and try it out. rod -- http://mail.python.org/mailman/listinfo/python-list

Mobile Devices

2008-06-25 Thread rodmc
Hi, I have been scouting around online for information on how to use Python and a GUI toolikit to develop mobile devices. At present I am using wxPython for desktop apps and would like to continue using that if possible. Anyway, I would like to know what people would recommend for developing mobil

OS.remove and threads

2008-03-20 Thread rodmc
Hi, I am writing a small application which uploads files in a thread via an ftp connection. However anytime I use the os.remove(filename) command to delete files the thread crashes, even if the file being removed has nothing to do with the one being uploaded. Are the OS commands incompatible with

Re: Need Help Starting Out

2008-03-19 Thread rodmc
> Your best bets are probably Django, Pylons or web.py. But you should > learn enough of the core language itself before jumping in web stuff IMHO. Yes, a good point. If you are looking for general info then then "Dive Into Python" (a link is on the Python website) is a good start for people who

Re: Need Help Starting Out

2008-03-18 Thread rodmc
> Hi, I would like to start using Python, but am unsure where to begin. > I know how to look up a tutorial and learn the language, but not what > all technologies to use. I saw references to plain Python, Django, > and other things. Hi, For database stuff you can plug directly into either MySQL

Re: Python CGI & Webpage with an Image

2008-03-08 Thread rodmc
> Is the cgi script in the same directory? The user's browser looks > for the jpg relative to the URL it used to get the page, which in > the case of the CGI script is the path to the script, not the > path to the html file. No the CGI script is in a different folder, I could move everything to

Re: Python CGI & Webpage with an Image

2008-03-06 Thread rodmc
quot;. The actual page displays ok except for the image - so it has the same problem as before. However when the same page is displayed without running through a CGI it displays perfectly. Kind regards, rod On Mar 6, 11:46 am, Bryan Olson <[EMAIL PROTECTED]> wrote: > rodmc wrote: &g

Re: Python CGI & Webpage with an Image

2008-03-06 Thread rodmc
Hi, Good point, some code samples is probably required. Please note that for reasons of integration with another system I am not using a templating system. Anyway I have copied them below: Python: f = open("finish.html") doc = f.read() f.close() print doc HTML:

Python CGI & Webpage with an Image

2008-03-05 Thread rodmc
Hi, I have a set of CGI scripts set up and in one page (which is stored in an HTML file then printed via a python CGI) there is an image. However the image never displays, can anyone recommend a way round this problem? Kind regards, rod -- http://mail.python.org/mailman/listinfo/python-list

URLlib2?

2008-02-28 Thread rodmc
Hi, Probably a silly question but I am writing a CGI script which need to check the referring URL, can anyone provide any pointers? I have looked at URLLib2 and a couple of other libraries, but am slightly confused. Thanks in advance, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: Running CGI from within CGI

2008-02-14 Thread rodmc
it also means I learn a little more Python :-) Cheers, rod On Feb 14, 3:26 pm, Bruno Desthuilliers wrote: > rodmc a écrit : > > > > > I am new to using Python as a CGI platform, so please excuse me if > > this is a dumb question. > > > Anyway I have written a

Running CGI from within CGI

2008-02-14 Thread rodmc
I am new to using Python as a CGI platform, so please excuse me if this is a dumb question. Anyway I have written a series of web forms (with Python scripts) which allow the user input but also retrieve data from a database. The data entry stage works fine however retrieving data is a little more

Re: CGI with URL problem

2008-02-14 Thread rodmc
Thanks for your reply, no one is running locally on my PC and the other as the default user which occurs when the script is run through a browser. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

CGI with URL problem

2008-02-11 Thread rodmc
-- sorry if this has shown up twice, but my browser crashed and ended up posting the message when I hit the space bar for some odd reason. Also it was not quite ready. Hi, I am writing a small CGI app which tests if another webpage exists, the pages are on a Wiki system. Anyway when I run the sam

URL in CGI problems

2008-02-11 Thread rodmc
Hi, I am writing a small CGI app which tests if another webpage exists, the pages are on a Wiki system. Anyway when I run the same function (see below) from within IDLE it is ok, however when it is run from within the CGI script I get a socket error:: "URLError: reason = " I am not quite s

Re: Server side cookie problems

2008-02-07 Thread rodmc
On Feb 7, 1:06 pm, rodmc <[EMAIL PROTECTED]> wrote: > On Feb 6, 8:00 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > > En Wed, 06 Feb 2008 15:27:53 -0200, rodmc <[EMAIL PROTECTED]> > > escribi�: > > > > Hi, I am trying to

Re: Server side cookie problems

2008-02-07 Thread rodmc
On Feb 6, 8:00 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 06 Feb 2008 15:27:53 -0200, rodmc <[EMAIL PROTECTED]> > escribi�: > > > Hi, I am trying to set a cookie on a client computer using the Cookie > > module however all I get is the t

Server side cookie problems

2008-02-06 Thread rodmc
Hi, I am trying to set a cookie on a client computer using the Cookie module however all I get is the text being printed in the browser window. Can anyone point me in the right direction so that the cookie data is set without it appearing in the browser? A shortened version of the code is below, in

Multi form CGI examples?

2008-01-09 Thread rodmc
Hi, I have been looking online for some examples of how to create multi form CGI scripts using Python. I have come across a few but am still a little confused - being new to CGI on Python. Can anyone provide me with some pointers to useful tutorials or advice on the best way to go about it? I thin

email libraries and threads

2007-10-13 Thread rodmc
Hi, I am writing a threaded application, part of which relies on sending messages to users. However I cannot get the smtplib and some other email related libraries to work inside threads (they work ok when not in threads). Is there a problem with using threads and email? If so is there a solution

Re: Is python for me?

2006-11-15 Thread rodmc
[EMAIL PROTECTED] wrote: > By large I mean an application with intensive operations, such as a > fancy GUI maybe a couple of threads, accessing a database, etc. I am still fairly new to Python, I only started using it at the start of this year and then stopped for a while. However the project I u

Re: CORBA: Fnorb Problems

2006-11-15 Thread rodmc
Thanks the fix you provided me with workds perfectly. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: CORBA: Fnorb Problems

2006-11-14 Thread rodmc
> > > > Traceback (most recent call last): > > File "C:\Python24\Lib\site-packages\Fnorb\script\cpp.py", line 53, in > > -toplevel- > > raise "No C/C++ pre-processor found in your PATH!" > > No C/C++ pre-processor found in your PATH! > > You don't say *when* this error occurs, i.e. what is th

Re: CORBA: Fnorb Problems

2006-11-13 Thread rodmc
> > I used omniorb, and have been very satisfied with it. You might consider > switching. > > Diez Thanks, I have just downloaded that plus omniORBpy as well. I have the binary version of omniORB but need to build omniORBpy, from what I can see the build process is aimed at GCC and not VC++. Anywa

CORBA: Fnorb Problems

2006-11-13 Thread rodmc
Hi, I have installed Fnorb and everything seems to have gone ok. However I keep getting the error message below. This is despite the fact that the MS CL c++ preprocessor seems to be in PATH. I can type "cl" and although I get nothing back in the DOS window, there is also no error message. Traceba

Re: Python and CORBA

2006-09-21 Thread rodmc
Thanks to everyone for their help. I had tried OmniORB and while the base library worked ok, the Python bit OmniORBpy seems to dislike working... Perhaps there is something wrong with my settings. I will also try the Python only suggestion. cheers, rod -- http://mail.python.org/mailman/listinf

Python and CORBA

2006-09-21 Thread rodmc
Can anyone recommend an easy to install COBRA implementation which works with Python? I am using Windows XP. Thanks in advance. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Python and Prolog

2006-08-29 Thread rodmc
Can anyone recommend a library which will let me bridge between Python and Prolog? I have looked around but as yet have had no luck. Either the libraries are no longer being updated or the links do not work. FYI: I am using Python 2.4 and SWI Prolog, I would also like to make sure it can run on Mac

Re: Help req: Problems with MySQLdb

2006-06-22 Thread rodmc
= MySQLdb.connect(host=DBSERVERIP, user="user", passwd="password", db="nuke") except: print "A database connection error has occurred" return False else: #The rest of the program Sybren Stuvel wrote: > rodmc enlightened us with: > >

Help req: Problems with MySQLdb

2006-06-22 Thread rodmc
I have written an application that connects to a database on a remote machine which uses MySQLdb 1.2.0. The application works perfectly when connecting to the database from a remote machine, however when it attempts to connect to a database on the same machine a connection error is generated. I hav

Re: USB support

2006-06-20 Thread rodmc
Thanks, well if what you say is true then it would make sense. Cheers, rod Tim Roberts wrote: > "rodmc" <[EMAIL PROTECTED]> wrote: > > > >Thanks for this, I have managed to build PyUSB and install it in the > >relevant directory. However I get bus errors

Re: USB support

2006-06-18 Thread rodmc
advance. Rod Tim Roberts wrote: > "rodmc" <[EMAIL PROTECTED]> wrote: > > > >I need to write a program which can access the USB ports on Mac and > >Linux, is there a library available for Python? > > The "stable" version of Libusb includes a Pytho

USB support

2006-06-13 Thread rodmc
Hi, I need to write a program which can access the USB ports on Mac and Linux, is there a library available for Python? Thanks in advance. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32: Detecting when system is locked or sleeping

2006-05-23 Thread rodmc
Further to my last post, I will try some of the tips presented above. Also the app writes to the screen display (or Active Desktop). As someone suggested, that could be where the problem is. Best. rod -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32: Detecting when system is locked or sleeping

2006-05-22 Thread rodmc
Yes, I mean just a good old fashioned screen lock (for security) initiated by the user. 'Sadly' there has been nothing as exciting as a blue-screen of death as yet, not even when the app swells to 400MB. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Win32: Detecting when system is locked or sleeping

2006-05-22 Thread rodmc
I have written an application which works perfectly when the machine is operating under normal conditions, however when the screen becomes locked it imediately starts to fill up several hundred MB's of memory. Is there a way to detect when the system is locked? Best, rod -- http://mail.python

Strange Memory Leaks

2006-05-19 Thread rodmc
I have written an application which seems to work fine most of the time and takes up about 26k when run. However when the PC (Windows 2k) is put to sleep/locked and the application is left to run it starts eating up memory, indeed about 400mb was the recent record. Is there any automated way of fi

Creating an Active Desktop Window

2006-05-12 Thread rodmc
Hi, Does anyone know how I can create an Active Desktop window from within a Python script? It would also be good to know how to refresh that window and nothing else. At present I have an application which writes to a file which is read by the Active Desktop (embeded IE), then a refresh command

Re: Strange Threads Behaviour...

2006-05-05 Thread rodmc
Hi Diez, No this occurs when the client is executed. Basically it runs as you see above then terminates. It should be noted that the errors involving the /xmpp libraries seem to change each time. I have no doubt it is connected to that, but the error does not happen at all when I run the client th

Strange Threads Behaviour...

2006-05-03 Thread rodmc
I have written an application which uses threads and the XMPP library - this is a library which supports the jabber instant messaging protocol. The application works fine when run from Idle, however I get thread errors when I try to run it as an EXE created with Py2Exe or when it is run within othe

Windows Services

2006-04-04 Thread rodmc
Hello, I am trying to figure out how to write a windows service, I am totally new to it. I have written a simple test case, however it doesn't appear to do anything. Although it installs and appears to start, when I run a query of its status (using another app) it says it is not running. As a not

Re: Server applications - avoiding sleep

2006-03-23 Thread rodmc
Hi Lev, Sounds interesting. As I am quite new to Python an example program would be most welcome. My email address is contained in the message. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Refreshing Active Desktop Window

2006-03-22 Thread rodmc
I have written a small program which updates and HTML page in an active desktop (Internet Explorer) window. At present whenever it is refreshed it redraws the whole screen, I am using a very basic script from a Win32 example I found a while ago. Is there a way I can refresh the Window only and not

Re: Server applications - avoiding sleep

2006-03-15 Thread rodmc
Hi, Thanks to both of you for your help. cheers, rod -- http://mail.python.org/mailman/listinfo/python-list

Server applications - avoiding sleep

2006-03-15 Thread rodmc
I have written a small server application (for Windows) which handles sending and receiving information from an instant messaging client and a database. This server needs to run 24/7, however it stops when the computer screen is locked. I assume there is a way to make it run in the background 24/7

Re: MySQL

2006-02-16 Thread rodmc
Hi Wolfram, Thanks for the tip, after some server issues I am pleased to say the library appears to work perfectly with MySQL 5. Best, rod -- http://mail.python.org/mailman/listinfo/python-list

MySQL

2006-02-16 Thread rodmc
I need to write a Python application which connects to a MySQL 5.0 database. Can anyone point me in the right direction or a compatible library? Best, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding an Application in a Web browser

2006-02-14 Thread rodmc
Thanks for all the comments. I will elaborate slightly to give everyone an idea of what is going on. Basically I need to create a dynamic visualisation which sits in the active desktop, basically behind the desktop icons and in front of the windows wallpaper. Windows lets you define a web page whi

Embedding an Application in a Web browser

2006-02-14 Thread rodmc
Is it possible to embed a Python application within Internet explorer? If so how do people recommend going about it. As for the application it has to be able display simple animated graphics such as circles, lines and squares. However if someone clicks on a shape it should open up another applicat

Re: Curios issues with Editors

2006-02-09 Thread rodmc
As I said I am most likely to have made an error, being a newbie and all that. Here is the offending function. I said i would not post source code but there you go... As I said I plan to change this function, so it will no doubt be out of date quite soon. def senddata(msg): host = "localhost"

Curios issues with Editors

2006-02-09 Thread rodmc
I recently wrote a program in IDLE and it runs perfectly. However when the same application is executed within SPE I receive errors saying that certain socket items are not callable, in particular AF_INET. I am new to Python, is there a reason why somethings will run in IDLE and not SPE? I could

Re: PyGTK

2006-02-09 Thread rodmc
Well I have just started using Python and have found wxPython to be pretty good, it is built upon the WxWindows framework.It is also cross-platform. You can find it at www.wxpython.org. It appears to be easy to understand and there are a few GUI builder tools around for it as well. Rod -- http:

Re: Python and Flash

2006-02-08 Thread rodmc
Thanks for the help so far. There are two Python applications involved, one runs on a remote PC (server) and another on the users PC (client). The server at present merely receives and sends out messages via an instant messaging platform. Based on the information it receives via the IM platform i

Python and Flash

2006-02-06 Thread rodmc
Can anyone provide me with advice on how easy (or otherwise) it is to drive a Flash animation (stored locally but displaed in a browser) with a Python application. Basically information is getting streamed to a Python client and this is expected to update the Flash animation. It sounds odd, but it

Re: Python and Word

2006-01-16 Thread rodmc
Hi Tim. Thanks for the tips. As for VBA, well I am looking at that as well. Although for architectural reasons elsewhere in the project Python or C++ are the only options. While I could use several languages I am trying where possible to stick to one or at most two. cheers, rod -- http://ma

Re: Python and Word

2006-01-16 Thread rodmc
Hi Tim, Thanks for replying. It needs to be a small application/plug-in which can visualise data that is either within Word already or which is sent to it via a server on the localhost. The actual GUI will be very simple, for example and image and some buttons. What it actually has to do should

Python and Word

2006-01-16 Thread rodmc
Is there a way to write Word plug-ins in Python? I am using Python 2.3.5 and Word 2000, and need to be able to write a small network application with a basic GUI which can run inside Word. cheers, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: Sockets on Windows and Mac

2006-01-09 Thread rodmc
Hi Peter, I am currently importing the socket library when I write the programs, I have had no problems with it on my PC at work, but the Mac at home steadfastly refuses to work. As for existing libraries, I am new to Python so am kean to avoid re-inventing the wheel :-) Cheers, rod -- http://

Re: Sockets on Windows and Mac

2006-01-09 Thread rodmc
I am on 10.3, I keep getting exceptions when it hits lines like mySocket.bind (SERVER_IP, 2727 ) or mySocket = socket.socket(socket.AF_NET,socket.SOCK_STREAM) The code I am using is copied from a tutorial on a website somewhere. Cheers, rod -- http://mail.python.org/mailman/listinfo/python-li

Re: Sockets on Windows and Mac

2006-01-09 Thread rodmc
Hi Peter, I am currently importing the socket library when I write the programs, I have had no problems with it on my PC at work, but the Mac at home steadfastly refuses to work. As for existing libraries, I am new to Python so am kean to avoid re-inventing the wheel :-) Cheers, rod -- http://

Sockets on Windows and Mac

2006-01-08 Thread rodmc
I am new to Python and have been writing some socket based programmes on Windows (with some success), however I am unable to get them to work on Mac. Are there differences in the way the socket module works on Windows and Mac? I would appreciate any simple code samples people my have for creating

Re: Visualisation Engine for Python

2006-01-07 Thread rodmc
Thanks for all the help everyone. rod -- http://mail.python.org/mailman/listinfo/python-list

Visualisation Engine for Python

2006-01-03 Thread rodmc
I am looking for a 2D data visualisation or graphics library for Python. Can anyone point me in the right direction? Thanks in advance, rod -- http://mail.python.org/mailman/listinfo/python-list

New to Python, WxPython etc, etc

2006-01-03 Thread rodmc
I am totally new to Python and WxPython and need to write an application which can open up an external windows from a plug-in within GAIM (using pyGAIM). I have managed to hack some code together from what little I have covered so far, however GAIM refuses to open until I have closed the extra wind