Re: lmlx & & caracter

2009-10-27 Thread Toff
reg;|bul;|rsquo;)', '&', data) ) o.close() shutil.move ("output.txt",filename) xml = etree.parse(filename) xml = ET.parse(filename) it's dirty but works On 27 oct, 09:36, Stefan Behnel wrote: > Toff, 27.10.2009 09:15: &g

lmlx & & caracter

2009-10-27 Thread Toff
hello i can't parse a file with lxml http://download.mozilla.org/? product=firefox-3.5&os=win&lang=fr" /> = i know that & is a special caracte

Re: help to convert c++ fonction in python

2009-10-17 Thread Toff
On 18 oct, 02:13, geremy condra wrote: > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: > >> For the love of baby kittens, please, please, please tell me that > >> you do not believe this securely encrypts your data. > >  Yeah, I t

help to convert c++ fonction in python

2009-10-17 Thread Toff
hello I'm trying to convert 2 c++ functions in python they come from wpkg client https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp they are CString CXmlSettings::Crypt(CString str) CString CXmlSettings::Decrypt(CString str) CAn someone help me? i

win32 wins settings

2009-04-14 Thread Toff
hello I don't understand why this doesn't woks. def setwins(self): from win32com.client import GetObject objWMIService = GetObject("winmgmts: {impersonationLevel=impersonate}!.\\root\\cimv2") colNicConfigs = objWMIService.ExecQuery ("SELECT * FROM Win32_NetworkAdapterC

Re: join a samba domain

2008-12-23 Thread Toff
Or maybe could I try with LoadLibrary("netapi32.dll"); and the netjoindomain function ? but it doesn't look very easy -- http://mail.python.org/mailman/listinfo/python-list

Re: join a samba domain

2008-12-23 Thread Toff
On 22 déc, 19:37, Toff wrote: > On 22 déc, 18:59, Jens Henrik Leonhard Jensen > > wrote: > > Toff wrote: > > >    d = c.Win32_ComputerSystem > > >    d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") >

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 18:59, Jens Henrik Leonhard Jensen wrote: > Toff wrote: > >    d = c.Win32_ComputerSystem > >    d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") > > Shouldn't r"admin\\mydom" be "admin\\

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:57, Tim Golden wrote: > Toff wrote: > > On 22 déc, 17:02, Tim Golden wrote: > >> Toff wrote: > >>> hi, > >>> I 'm trying to write a script to make my computer join a samba. > >>> domeone have any idea ?? > >> Um

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:02, Tim Golden wrote: > Toff wrote: > > hi, > > > I 'm trying to write a script to make my computer join a samba. > > > domeone have any idea ?? > > Ummm. It's not clear if you're saying that your code doesn't > work, or ask

join a samba domain

2008-12-22 Thread Toff
hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? thanks regards, * # -*- coding: iso-8859-1 *-* import win32com.client import os,sys import win32api import impers import socket