Please add an "Content-Length" entry in front of
the "Content-Type" entry.
Sukram
- Original Message -
From: "Jeremy Aiyadurai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 4:18 AM
Subject: HTTP headers problem
> hi all
>
> here is a barebone webserver. I a
Please replace my line
R = [[0]*(7+1)]*(8145060+1)
with
R = [[None]*(7+1) for x in xrange(8145060+1)]
Else you get an list with 8145061 references
of one (!) inner list.
sorry. Markus
___
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe:
Hi Ed,
I transformed the programm 1:1 to Python
without to use special Numeric-Extensions.
My K6-2 with 400 MHz show this result:
starting time
Tue Apr 09 12:27:33 2002
finished time
Tue Apr 09 12:30:13 2002
i = 8145060
8145060 40 41 42 43 44 45
import time
print "starting time"
print tim
Hello,
If Python do not support an API-Call directly
you can choose one of this ways:
1.) use the search-engine from Python.org and ActiveState.com
to find a module with your spezific capabilities.
2.) write a Python-Extension in C
3.) write an COM-Object in VBA or C++ (MFC or ATL)
4.) use
Sorry, I wrote "expose" but I meant "extend".
And to use the bandwidth useful, I will make a
workaround for Kári Harðarson public. He got
problems to profile the IIS via
import profile
profile.run()
One easy solution for IIS, WSH or IE is this:
# --- IIS-Code
def test():
do_anything_u
Volker Siepmann wrote:
> I'm unfortunately not a COM expert at all, so please keep it simple! ;-)
But for your task you should! For example it is absolutely not allowed to
expose or change an existing interface. And the IDispatch-Interface is
based on COM-technologie but part of the OLE2-techn
a quite different scope and there is no
easy way to fix it.
Markus
- Original Message -
From: "Kári Harðarson" <[EMAIL PROTECTED]>
To: "'Markus Daniel'" <[EMAIL PROTECTED]>
Sent: Friday, October 12, 2001 6:07 PM
Subject: RE: Using the p
> Note that for some reason adKeyPrimary didn't get exported by COM with
> the rest of the constants. Maybe the documentation has a misspelling in
> the name.
Run the "COM Makepy utility" for "Microsoft ADO Ext. 2.x for DLL and Security".
This will make known the constants for the "ADOX.Key" -
> Or is there a method how I can , from my python program, find out
> an email server for a particular domain?
There is an free ax-object:
http://www.internext.co.za/stefan/aspmx/
Markus
___
ActivePython mailing list
[EMAIL PROTECTED]
http://listse
Henry wrote:
> How do I make the python interpreter run a script upon startup?
Check the manual about environment variable "PYTHONSTARTUP".
Markus
___
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/act
import smtplib
fromaddr = '"MD-A" <[EMAIL PROTECTED]>'
toaddrs = '"MD-E" <[EMAIL PROTECTED]>'
subject = "HI"
msg = """
HI xxx,
have a nice day!
yyy.
"""
server = smtplib.SMTP('mail.bbb.com')
m = "From: %s\r\nTo: %s\r\nSubject: %s\r\nX-Mailer: My-Mail\r\n\r\n" % (fromaddr,
toaddrs, subject)
ser
> Does anyone have any experience with Py2exe converting python
> source into exe if there is wxPython used in source?
There are not any problem, for more information see
http://starship.python.net/crew/theller/py2exe/
Markus
___
ActivePython mailin
> I'm writing is supposes to prevent the user from using
> the system until they have pressed a button. Once this
> button is pressed the "client" sends a message to a
> "server". The "server" then replies and tells the client
> to unlock. The user can then use the windows machine,
> browse the
# > Does anyone know how I could get one window
# > with a button on it, to handle all mouse and
# > keyboard events. Thus preventing a user from
# > doing anything else but clicking on the button?
# First, there are modal and unmodal -dialogs. A modal
# dialog locks the GUI-thread and prevent
You can use (under Windows) the ASDI-Components.
http://www.microsoft.com/windows2000/techinfo/howitworks/activedirectory/adsilinks.asp
It is a very easy *generic* LDAP-API with Interfaces for C++ and Script-Programmers.
Markus Daniel
- Original Message -
From: <[EMAIL PROTECTED]&
aw_input("Aborded by User. Exit.")
sys.exit()
else:
raw_input("Invalid number. Exit.")
sys.exit()
else:
raw_input("No Number. Exit.")
sys.exit()
try:
adsComputer.Delete("service", lstServices[intChoose])
raw_input("Service deleted. Exit.&
I found an other way. Now it works with Python too:
>>> from win32com.client import Dispatch
>>> adoCon = Dispatch("ADODB.Connection")
>>> adoCon.Provider = "ADSDSOObject"
>>> adoCon.Open("", "cn=Administrator;cn=Users,dc=strebig,dc=de","AdminsPW")
>>> adoRec = Dispatch("ADODB.Recordset")
>>> ado
Bug 1:
Pythonwin.exe (Build 210, Win2k, no seperate TCL installation) crashes
when typing this:
>>> import sys
>>> sys.modules
Bug 2:
Installer installed "Advanced Developmend" - pack ,without permission.
Bug 3:
Python is not as an AX-Scripting-Language registered.
In the reality, I used on a apache this php-script to show
all of the transmitted VARs:
>>
>>POST-Vars:
>>>while (list($key, $val) = each($HTTP_POST_VARS))
>> echo ("$key: $val \n");
>>?>
>>
>>
>>GET-Vars:
>>>while (list($key, $val) = each($HTTP_GET_
Hi guys,
I tested the HTTP-POST-Example from the reference-manual:
import httplib, urllib
params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
h = httplib.HTTP("www.musi-cal.com:80")
h.putrequest("POST", "/cgi-bin/query")
h.putheader("Content-length", "%d" % len(params))
h.putheader('Ac
Hello!
First what you need is the MS-ScriptControl:
http://msdn.microsoft.com/scripting/scriptcontrol/default.htm
then this code is running without limitations:
01:
02:
03: sc=new ActiveXObject("ScriptControl");
04: sc.Language="Python";
05: sc.AddCode("from win32com.client import Dispatch\nd
21 matches
Mail list logo