Re: [Gug-devel] Gug-install
Status: Planning
Brought to you by:
szferi
From: Zsombor N. <zs...@ni...> - 2007-09-05 12:53:20
|
On 2007.09.04., at 22:39, Zsombor wrote: > File "/home/scythe/gug/gug/client/soap.py", line 168, in __call__ > exc =3D import_class_from_string(exception) > File "/home/scythe/gug/gug/common/share.py", line 21, in > import_class_from_string > cl =3D __import__(module) # import module > ImportError: No module named <class 'gug.common.exception ha ez megis csak a head ag, akkor ket helyen kellene most beleirni a =20 kodba debugollas celzattal: gug/host/handler/soap.py: 103 except Exception, e: 104 # if there is any exception, first write it to the =20= log 105 log.error() # or maybe not 106 # get the string representation of the Exception =20 class 107 # use cgi.escape not to interfere with the xml =20 syntax of the SOAP message 108 fail =3D cgi.escape(str(e.__class__)) ide---> log.error("\n\n\n****", fail, "****\n\n\n") 109 if not e.args: 110 # if the exception has no arguments, use the =20 string representation of it 111 args =3D cgi.escape(str((str(e),))) 112 else: gug/client/soap.py: 162 except FaultException, e: 163 if self.unwrap: 164 exception, arguments, traceback =3D eval=20 (e.fault.string) 165 #print exception 166 #print arguments 167 #print traceback meg ide--> log.error("\n\n\n***", exception, "***\n\n\n") 168 exc =3D import_class_from_string(exception) 169 args =3D eval(arguments) 170 raise exc, args azt=E1n megn=E9zni, hogy mit ir ki a logba. zs= |