soap - sessions ?

2007-06-08 Thread gcmartijn
H! When I use php code nusoap everything works but with python I get everytime "Your session key does not exist or has expired" I use this code below: test = SOAPpy.SOAPProxy("http://secure.easynic.com/com/iomart/ easynicWSv2.cfc?wsdl") data = test.login(_id='test',_pass='pass')

Re: soap - sessions ?

2007-06-08 Thread gcmartijn
When I use SOAPpy.Config.dumpSOAPOut = 1 SOAPpy.Config.dumpSOAPIn = 1 will display: *** Outgoing SOAP ** http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsi="http://www.w3.org/19

BeautifulSoup - extract the

2007-06-18 Thread gcmartijn
t possible with BeautifulSoup to extract the object tag with his child param ? I have made everything in BeautifulSoup so I hope its possible :S Thanks anyway, GCMartijn -- http://mail.python.org/mailman/listinfo/python-list

BaseHTTPRequestHandler reading .html with python code

2007-04-06 Thread gcmartijn
H! I was wondering how I can do something like this. file.html - hello world print 'hello world' #or display str(time.localtime()[7]) webserver.py - def do_GET(self): try: if self.path.endswith(".html"): f = open(curdir + sep + self.path)

bin2chr("01110011") # = 15 function ?

2008-02-25 Thread gcmartijn
H! I'm searching for a simple bin2chr("01110011") function that can convert all my 8bit data to a chr so I can use something like this: def bin(i): l = ['', '0001', '0010', '0011', '0100', '0101', '0110', '0111', '1000', '1001', '1010', '1011', '1100', '1101', '1110', '']

print command don't work (subscripted) word[2:4]

2008-10-07 Thread gcmartijn
Why is this not working ? bla = 'hondenriem' print bla[0:4] # correct ! (= hond) print bla[3:2] # nothing ! (= en) print bla[6:3] # nothing ! (= riem) Why don't bla[3:2] and bla[6:3] won't work ? I use this version: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-05 Thread gcmartijn
H! I using a script that opens a internet page in a small window (what I can control) In XP everything was working fine, but now I'm using Vista with IE7 and this is what happends now: First a small window opens at the postion x0 y0 (like I want) but then IE thinks "Hey lets open a other main win

Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-06 Thread gcmartijn
On 5 jul, 15:27, Terry Reedy <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > H! > > > I using a script that opens a internet page in a small window (what I > > can control) > > In XP everything was working fine, but now I'm using Vista with IE7 > > and this is what happends now: > > > Fir

Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-06 Thread gcmartijn
On 5 jul, 14:14, "Méta-MCI \(MVP\)" <[EMAIL PROTECTED]> wrote: > Hi! > > Your code run OK for me (Vista Ultimate). > This other version run also OK : > > def webbrowser(url=None): >     import win32com.client, time > >     ie=win32com.client.Dispatch('InternetExplorer.Application')     >  

Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-07 Thread gcmartijn
od luck! > > Michel Claveau IE have many options, you say that the code is working so I was hoping that you could answer these questions: - Is your tabbed browsing on ? - Do you use the default 'securiy' settings ? - Do you use by privacy option: Medium ? - The advanced options are

re.findall(a patern,'function(dsf sdf sdf)')

2008-07-26 Thread gcmartijn
7;) # ('BlaObject','argh 1a') or # Blaobject("argh 1a", "argh 2a", "24", 24, 345) # BlaObject("argh 1b", "argh 2b", ""+(sv), ""+(2f), "4"); My simple idea was to a. the start position is the BlaObject b. the stop position is the character ) (not ); because its a javascript function) c. the output [a (everything between) b] Who knows the answer ? Thanks very much, GCMartijn -- http://mail.python.org/mailman/listinfo/python-list

Re: re.findall(a patern,'function(dsf sdf sdf)')

2008-07-26 Thread gcmartijn
> In short, the regular expression you used doesn't seem to be an effort > to solve the problem. In other words, you haven't read the regular > expression docs:http://docs.python.org/lib/module-re.html. In other > words, it's useless to talk with you until then. > Its a combination - I don't under

Re: re.findall(a patern,'function(dsf sdf sdf)')

2008-07-26 Thread gcmartijn
On 26 jul, 14:25, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > - For me its hard to learn the re , I will try to search again at > > google for examples and do some copy past things. > > this might be useful when figuring out how RE:s work: > >      http://kodos.sourcefor