From: Aldo B. <ald...@gm...> - 2010-08-31 03:08:47
|
OK, I found some docs in the new tutorial VAD ( thanks Ted for the hint ). The python_exec takes following arguments: code - a string containing the Python code function_name - a string containing the name of Python function to be executed param1 : a string containing first parameter param2 : a string containing second parameter as many parameters as Python function has The Python based function must return a single string value. * I noticed that it possible to connect via pyODBC back to Virtuoso. Not in process I assume... but still really cool. * If the python code contains comments, it will fail. ( this is common when reading a .py file via file_to_string_output() ) Regards, A On Sun, Aug 29, 2010 at 4:10 AM, Aldo Bucchi <ald...@gm...> wrote: > So far: > > python_exec( 'print "this will go to stdout. cool"', '?' ); > python_exec( file_to_string('python/test.py'), '?' ); > > :P > > Regards, > A > > 2010/8/29 Aldo Bucchi <ald...@gm...>: >> or a brief snippet ;) >> plz >> >> -- >> Aldo Bucchi >> @aldonline >> skype:aldo.bucchi >> http://aldobucchi.com/ >> > > > > -- > Aldo Bucchi > @aldonline > skype:aldo.bucchi > http://aldobucchi.com/ > -- Aldo Bucchi @aldonline skype:aldo.bucchi http://aldobucchi.com/ |