Windows Messaging Service and Python

2003-03-01 Thread A
Hi ALL, Can you tell me ( if it is possible from Python) how I can send a message to a computer by using Windows Messaging Service? Thanks for help Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http

Cookies module

2003-01-18 Thread A
Hi all, Is there a cookie module that handles cookies on a client side and would work with httplib module? For example: Server returns the following cookies: Set-Cookie: compid=1342; expires= Set-Cookie: password=BMA; expires= Set-Cookie: company=BMA TRADING s.r.o.; expires= Set-Cookie: [EMAIL

Is there a bright future for open software projects?

2002-11-30 Thread A
Hi all, For some time I am thinking about what firms or programmers can afford to develop open/free software. I myself have been using free programming languages ( Perl and now Python) for about 4 years.But it seems to me very difficult to develop free software because either I can program on

How to call a procedure in an exe file

2002-09-23 Thread A
Hi, I know that it is possible to call a function in DLL library( even though I have never tried it) from Python but is it possible to call a procedure in an exe program? I have a program that downloads some files( that was written in Delphi, we bought that program compiled already in exe). I

Is there a widget or program for a database browsing

2002-09-20 Thread A
Hi, In my program users will search a database and I need to display choosen record(s ) in a nice graphical way. Is there a module( program), that I could use together with Python, that could easily show the database record(s) and take care of all thinks during browsing? Thanks for help

What database should I use

2002-09-05 Thread A
Hello, I am going to program a small application (in Python and wxPython) which consists about 2000 - 3000 records . Can you please recommend which database is the best for that. I use Windows. Maybe MS Access or FoxPro or MySQL or better? I want to keep the program as small as possible

Problem - how to solve it ?

2002-07-31 Thread A
Hi, I have a program that I compiled( with Installer) into exe for using on Win32 systems. It works well on Windows Me, Windows 9x but on some computers with Windows 2000 it causes General Protection Error and the programs is finished. It would be nice if the program wrote a line number or

How to redirect output to browser - second request for help

2002-07-29 Thread A
Hi, Is it possible to send output continuously to a web browser?. For example I have the following code >>> import httplib >>> h = httplib.HTTP('www.cwi.nl') >>> h.putrequest('GET', '/index.html') >>> h.putheader('Accept&

How to grab a part of web page?

2002-07-09 Thread A
Hi, Is it possible to download only a part of web page? Say I need to find out an information about a customer that starts at 1500 byte position and ends at 2000 byte position. If the whole page has about 100 kb it seems to me waste of time to load all the page. What is the best, yet easy

How to find out DNS ?

2002-06-27 Thread A
Hi, Is there a way how to find out, from Python , what primary or secondary DNS I use when connecting to internet? Thanks for help Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

How to find out operating system

2002-06-26 Thread A
Hi, What is the best way of finding out the kind operating system? I can use os.name but if the system is Windows I would like also know if the system is Windows98 or Windows ME or W2K or Windows XP. Thanks for help. Ladislav ___ ActivePython mailin

What webhosting

2002-04-17 Thread A
Hi, Does anybody know about a webhosting provider ( with Python and Telnet access) that does not remove a user's account if the user sends occasionally some unsolicited emails? Thanks for reply Ladislav ___ ActivePython mailing list [EMAIL PROT

How to remove a newline character

2002-04-06 Thread A
Hi, Can you please let me know if it is possible to replace new line characters( '\n') in a list in one step? I have list like MyList=['272580\n', '23232432\n'] and I would like to have ,MyList=['272580', '23232432'] so I tried re.sub(&

How to get a key from dictionary?

2002-03-25 Thread A
Hi, Is there a possibility to get, from a dictionary, a key according to a value ? For example I have a dictionary dict={'aa':1,'bb':2} and dict['aa'] is 1 But how can I for value 1 find out key? (That is here 

Is it possible in Python too?

2002-02-25 Thread A
Hi, Is possible to set up a proxy name (address) in MS Explorer browser from a running Python program? Thank you for your help. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman

Is it possible in Python too?

2002-02-25 Thread A
Hi, Is possible to set up a proxy name (address) in MS Explorer browser from a running Python program? Thank you for your help. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Is it possible in Python too?

2002-02-25 Thread A
Hi, Is possible to set up a proxy name (address) in MS Explorer browser from a running Python program? Thank you for your help. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Is anyone capable of explaining ?

2002-02-05 Thread A
Can anybody please answer the following question? Question: How does web browser know what cookies should be sent to server as a response? For example I found out that a server sets 2 cookies __cookie_client_data__=Uglv3rXE+d73YaYUuxoh/sDKsJ t98itBb/hg2fFwFvHeEabkpKICibilujHZm and

Why it does NOT work on Linux ?

2002-02-01 Thread A
I have the following part of program that finds ItemID numbers. Here, for example, are two 146759 and 146700 . This program works well under windows but on Linux it does not find any number. Can you please help? Thanks. Ladislav import re Text=""" [CN]

Nobody knows? But why?

2002-01-29 Thread A
Hi, For already some time I am trying to use modules, HTTPLIB or URLLIB to get a page through proxy but so far I have not been successfull I also browsed Python group but the samples given there did not work. Can anybody give me a WORKING example how I can grab a web page through proxy? I

URLLIB and PROXY

2002-01-28 Thread A
Hi, Is there anybody who has ever used URLLIB together with PROXY successfully? I tried import os,urllib os.environ["http_proxy"]='http://209.242.141.249:8080' RUR=urllib.urlretrieve('http://www.seznam.cz/index.html','Saved.htm' ) but I do not think it does work. I will get the page but it d

Httplib and Proxy

2002-01-26 Thread A
Can anybody please give me a working example how I can use httplib with a proxy if I use POST method? Thank you very much for help Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

What are security holes?

2002-01-26 Thread A
We are going to install Python on our Linux server. Are there any security holes for hackers? What would we be careful about and how we should set it up? Are there any guidelines for installing Python? Thank you for help. Ladislav ___ ActivePython

How to avoid socket timeout

2002-01-24 Thread A
Hi, I use httplib modul and sometimes, if my dial up connection is slow, receive error: (10060, 'Operation timed out') How can I increase the timeout? Thank you for help. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveS

How to compare to time strings?

2002-01-19 Thread A
Hello, I have two time strings like Mon, 31 Dec 2001 15 and Sat, 19 Jan 2002 21 How can I compare them and find out that Mon, 31 Dec 2001 15 is before Sat, 19 Jan 2002 21 ? I can not use strptime function , to convert it first,because I use windows and there is not that function. Thanks

RE: HTTPLib and POST problem with '?'

2002-01-14 Thread A
On 14 Jan 2002, at 0:56, Jason Orendorff wrote: > > it works well but only if the script is like > > http://www.musi-cal.com/cgi-bin/script.cgi > > but if the script is like > > http://www.musi-cal.com/cgi-bin/script.cgi?name=Paul > > (note a part after ? ) it m

RE: HTTPLib and POST problem with '?'

2002-01-13 Thread A
>In the light of the meta-principle "be conservative in what you generate, and >liberal in what you accept", I think a server should probably accept a >(probably-incorrect) mix of both, and try to do something sensible; but a >client (e.g., httplib) should never gene

HTTPLib and POST problem with '?'

2002-01-12 Thread A
h.send(params) reply, msg, hdrs = h.getreply() print reply # should be 200 data = h.getfile().read() # get the raw HTML it works well but only if the script is like http://www.musi-cal.com/cgi-bin/script.cgi but if the script is like http://www.musi-cal.com/cgi-bin/script.cgi?name

How to update file?

2002-01-11 Thread A
Hello, I need to update a local file from a web server if the file on this web server is newer then that on my local hard disk. Do you have any idea how it can be done? thank you. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http

How can handle exception?

2002-01-10 Thread A
Hello, My program sometimes raise the exception socket.error: (10061, 'Connection refused') How can I handle this kind of exception? Thank you for help. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/l

How can handle exception?

2002-01-05 Thread A
Hello, My program sometimes raise the exception socket.error: (10061, 'Connection refused') How can I handle this kind of exception? Thank you for help. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman

How to solve a problem?

2001-12-26 Thread A
Hi, My program downloads regularly some files and it takes some time so I need to shorten this downloading time. As most of these files are the same, many times when the program downloads these files, I would like to download only those that are not the same or are newer. What is the best s

How to compare text?

2001-12-03 Thread A
Hello, How can I compare of one parragraph of text with another paragraph?Each paragraph can have about 100 words. For example I have the first paragraph I want to be very good at Python programming. Better than in Perl. THe second paragraph might look loke this: She works all day long to mas

KOMODO not working properly

2001-11-28 Thread A
Does anyone use KOMODO by ActiveState to write programs together with Python and particularly with wxPython? What experience do you have? It does not work properly for me. Thanks for reply Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http:/

Default DNS

2001-11-20 Thread A
Hi, Is there any possibility in Python to find out my primary or secondary DNS when using Dial Up connection from Windows? Thank you for help. Ladislav I look forward to hearing from you soon. Best Regards, Ladislav Blazek( Mr.) BMA TRADING Ltd. email: [EMAIL PROTECTED] email2: [EMAIL PROTECT

Is it a job for Thread or Process?

2001-11-15 Thread A
Hello, In my Python script I would like to start one function of this script in a different thread or process? That function sends an email. Can you please give me an example how I can start a new thread or process under Win32 systems? Is it better to use a new thread or a new process for

Is it a job for Thread or Process?

2001-11-15 Thread A
Hello, In my Python script I would like to start one function of this script in a different thread or process? That function sends an email. Can you please give me an example how I can start a new thread or process under Win32 systems? Is it better to use a new thread or a new process for

Mimetools and how to use it

2001-11-14 Thread A
Hi, >From a web server I receive headers that is an instance of the class MIMETOOLS.MESSAGE. How can decode it to get something like this Date: Wed, 14 Nov 2001 10:02:17 GMT Server: Apache/1.3.6 (Unix) PHP/3.0.14 X-Powered-By: PHP/3.0.14 Set-Cookie: PHPSESSID=000741aaa06ae3645ff0106145f84

Re:Python script engine - Thanks

2001-10-21 Thread A
I would like to thank you all that answered my question. Execfile() will do all that I need. Thanks. Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Smtplib module

2001-10-21 Thread A
Hi, I want to use smtplib module for sending emails. Is there any way how I can test a return code, generated by this module, to see if an email was accepting for delivery, for example? Thank you for help. ___ ActivePython mailing list [EMAIL PROTECTED

Python script engine

2001-10-18 Thread A
Hello, In my application I would like to allow users to add/use basic python commands but I do not want users to change my code of application directly. For example my program expects telephone. number in format +442076812563 but a user sometimes may want to supply 0044 207 681 2563

DNS module or how to ... ?

2001-10-08 Thread A
Hello, Is there a DNS module available for Python ? Or is there a method how I can , from my python program, find out an email server for a particular domain? For example for email [EMAIL PROTECTED] I find out that email server mail.contactel.cz serves for domain sendme.cz Thank you for

How can I access a variable outside a class definition?

2001-09-29 Thread A
Hi, How can I access a variable defined in one class outside this class ? For example I have two classes like below # class Complex: def __init__(self, realpart1,imagpart1,realpart2,imagpart2): self.r1 = realpart1 self.i1 = imagpart1 self.r2 = realpart2

SMTPLIB module - how to add subject ?

2001-09-15 Thread A
Hi, I tried 11.11.2 SMTP Example from Python docs. Does anyone know how I can add subject to an email send by this example? Thank you very much for help Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/li

Is Python powerful enough for this?

2001-08-30 Thread A
Hi, I have some webpages that contain FORMS. Each form has input fields and also some hidden fields. How can I easily get urlencoded string from all these fields like Key1=Value1&Key2=Value2&Key3=Value3 For example: I have a following web page >From the abo

Py2exe and wxPython

2001-08-28 Thread A
Hi, Does anyone have any experience with Py2exe converting python source into exe if there is wxPython used in source? Thanks for reply Ladislav ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepy

Questions about threads

2001-08-28 Thread A
Hi, Can anybody please answer my questions? 1. In my application I need one function to run in threads. The number of threads is chosen by user and numbers of threads can not be higher at one time. This function writes to a file also.How can I prevent other threads from writting to this

How to extract cookies?

2001-08-24 Thread A
Hi, I use httplib module to POST to a website.From the response( header) I need to extract cookies. Can you advise me how I can do that please? The header I receive looks like Server: Microsoft-IIS/5.0 Date: Thu, 23 Aug 2001 12:24:33 GMT Location: MemberPortfolio.asp Connection: Keep

How to extract cookies?

2001-08-23 Thread A
Hi, I use httplib module to POST to a website.From the response( header) I need to extract cookies. Can you advise me how I can do that please? The header I receive looks like Server: Microsoft-IIS/5.0 Date: Thu, 23 Aug 2001 12:24:33 GMT Location: MemberPortfolio.asp Connection: Keep-Alive

Source Reformatter?

2001-08-13 Thread David A. Fuess
I put this request out on the news group also, but ... I am looking for a Python source reformatter to correct indentation differences in a collection of functions. Dave From the Desk of ... David A. Fuess [EMAIL PROTECTED], http://www.Fuess.Net

Threads

2001-08-13 Thread A
Hi, I am a newbie with Python.I want to use threads in my application. Can you please let me know what is the best way of programming threads under Win32 systems? What modules shall I use? Is it better to use the thread module or the threading module or the stackless Python? What are

Re: problem using ODBC cursor.description with sql View?

2001-07-02 Thread M.-A. Lemburg
this really needed with mxODBC ? I think I have added a workaround for this in mxODBC 2.0.x. > These sort of platform-level bugs are horrifying. Does anyone know > which ODBC library doesn't have this bug, or what the plan is for > fixing it in the core library? (I'm afraid I do

Pythonwin annoyance

2001-06-18 Thread David A. Fuess
Has anyone else noticed that sometimes Pythonwin will ignore the indentation settings under View/Options/Tabs and Whitespace and revert to an indentation of 4 spaces? Sure makes life difficult when working in a source setup for 3 spaces. Dave From the Desk of ... David A. Fuess [EMAIL

ActiveX Scripting in 2.1.0.210

2001-05-26 Thread David A. Fuess
I submitted this to ActiveState as a potential bug in the install. But it's a long weekend, so perhaps one of the list members can provide some quicker insight? The version of ActivePython: ActivePython 2.1 The Operating System: Windows 2000 Had to rebuild a server yesterday. Bummer, b

Re: ANNOUNCE: python-win32 mailing list

2001-04-03 Thread M.-A. Lemburg
Itamar Shtull-Trauring wrote: > > Since there seems to be no public forum for discussion on Windows specific > issues relating to Python, I've created the python-win32 mailing list. > > While currently there exist two lists in this area, one is a private one, > and the