You shouldn't need to modify the code. Just add a line to config.ini, in the hmevlc section:
vlc = cvlc
(but give the full path). I don't think you should need dbus. (?)
I tried your suggestion but I think I need the dbus syntax. When I add vlc=/fullpath/cvlc it throws the following errors. My (very limited) understanding is the x11 error is due to this being run on a NAS
192.168.0.5:49832 - - [04/Mar/2012 00:12:13] Ending HME: hmevlc
192.168.0.5:50850 - - [04/Mar/2012 00:39:58] "GET /hmevlc/ HTTP/1.1" 200 -
192.168.0.5:50850 - - [04/Mar/2012 00:39:58] Starting HME: hmevlc
VLC media player 0.9.9a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i386-pc-linux-gnu' '--host=i686-linux-gnu' '--target=i686-linux-gnu' '--prefix=/opt' '--enable-v4l' '--disable-v4l2' '--enable-bonjour' '--enable-x264' '--enable-dvbpsi' '--enable-a52' '--enable-dvdnav' '--with-dvdnav-config-path=/home/slug/optware/syno-i686/staging/opt/bin' '--enable-faad' '--enable-flac' '--disable-gnutls' '--enable-mpc' '--enable-ncurses' '--enable-ogg' '--enable-png' '--disable-remoteosd' '--enable-shout' '--enable-speex' '--enable-vorbis' '--disable-alsa' '--disable-dca' '--disable-glx' '--disable-gnomevfs' '--disable-libcdio' '--disable-libcddb' '--disable-screen' '--disable-sdl' '--disable-wxwidgets' '--disable-skins2' '--disable-x11' '--disable-nls' '--disable-static' 'build_alias=i386-pc-linux-gnu' 'host_alias=i686-linux-gnu' 'target_alias=i686-linux-gnu' 'CC=/home/slug/optware/syno-i686/toolchain/gcc-4.2.1-glibc-2.3.6/i686-linux-gnu/bin/i686-linux-gnu-gcc' 'LDFLAGS= -L/home/slug/optware/syno-i686/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/syno-i686/staging/opt/lib ' 'CPPFLAGS=-O2 -O2 -pipe -I/home/slug/optware/syno-i686/staging/opt/include -I/home/slug/optware/syno-i686/staging/opt/include/ncurses' 'CPP=/home/slug/optware/syno-i686/toolchain/gcc-4.2.1-glibc-2.3.6/i686-linux-gnu/bin/i686-linux-gnu-gcc -E' 'CXX=/home/slug/optware/syno-i686/toolchain/gcc-4.2.1-glibc-2.3.6/i686-linux-gnu/bin/i686-linux-gnu-g++' 'PKG_CONFIG_PATH=/home/slug/optware/syno-i686/staging/opt/lib/pkgconfig'
[00000001] main libvlc debug: translation test: code is "C"
[00000298] inhibit interface error: Failed to connect to the D-Bus session daemon: /opt/bin/dbus-launch terminated abnormally with the following error: Autolaunch requested, but X11 support not compiled in.
Cannot continue.
[00000298] main interface error: no suitable interface module
[00000001] main libvlc error: interface "inhibit,none" initialization failed
[00000300] dummy interface: using the dummy interface module...
[00000306] main access out: creating httpd
[00000306] main access out error: socket bind error (Permission denied)
[00000306] main access out error: socket bind error (Permission denied)
[00000306] main access out error: cannot create socket(s) for HTTP host
[00000306] access_output_http access out error: cannot listen on port 9028
[00000305] stream_out_standard stream out error: no suitable sout access module for `http/ps://:9028'
[00000303] stream_out_transcode stream out error: cannot create chain
[00000302] main stream output error: stream chain failed for `transcode{vcodec=mp2v,vb=2048,acodec=a52,ab=384,audio-sync,samplerate=48000,fps=30}:std{access=http,dst=:9028,mux=ps}'
[00000301] main input error: cannot start stream output instance, aborting
Any suggestions on what I need to change in the python code in order to be able to use the dbus syntax (dbus-launch cvlc -I http://urltocall) in the call to cvlc ?