Daniel Veillard | 31 Mar 19:26
Picon
Favicon
Gravatar

Re: python saveResultToFile

On Sun, Mar 31, 2002 at 06:24:30AM -0500, Sam Brauer wrote:
> out = cStringIO.StringIO()
> style.saveResultToFile(out, result)

  This gives the following at the wrapper level:

Breakpoint 3, libxslt_xsltSaveResultToFile (self=0x0, args=0x80e65b8)
    at libxslt-py.c:1257
warning: Source file is more recent than executable.

1257	    PyObject *pyobj_style;
(gdb) n
1259	    if (!PyArg_ParseTuple(args, (char *)"OOO:xsltSaveResultToFile", &pyobj_file,
&pyobj_result, &pyobj_style))
(gdb) 
1260	        return(NULL);
(gdb) 
1261	    file = (FILE *) PyFile_Get(pyobj_file);
(gdb) 
1263	    style = (xsltStylesheetPtr) Pystylesheet_Get(pyobj_style);
(gdb) 
1264	
(gdb) 
1265	    c_retval = xsltSaveResultToFile(file, result, style);
(gdb) p file
$1 = (FILE *) 0x0
(gdb) n 
1266	    py_retval = libxml_intWrap((int) c_retval);
(gdb) p c_retval
$2 = -1
(Continue reading)


Gmane