Datasource Configuration?

Ontje Lünsdorf The_COM at gmx.de
Wed Aug 5 20:30:30 CEST 2009


hi all,

my testfest applet is progressing slowly. it's dataengine will currently watch 
a source code directory for changes and spawns a process to perform a 
unittest. the process output is parsed with a regex. finally the output and 
parsed testresults are published using setData().

there's lots of stuff to be configured (test name, directory to watch, test 
command, test timeout, regex) which i'm currently encoding as json and pass 
into connectSource(). 

this works but produces unreadable and long source names. but more importantly 
the configuration is currently stored in the applet. this makes it quite 
troublesome to setup multiple applets to watch different projects in different 
languages and test frameworks.

i thought it would be nice if the configurations could be stored as user-
definable presets in the dataengine. this would also allow for humanreadable 
source names like <preset-name>:<directory-to-watch>.

is such a scheme feasible (in python)? or is there a better approach?

thanks,
ontje


More information about the Plasma-devel mailing list