[Kommander-devel] New parser bugs?

Eric Laffoon eric at kdewebdev.org
Thu Mar 31 21:23:00 EST 2005


Hi,
I'm trying to read in an address...
Obviously this won't work right
dataLocation.setText(readSetting(dataloc,"$HOME/.kde/share/apps/quanta/sqlcreator"))
Obviously this produces a similar result of just a string
dataLocation.setText(readSetting(dataloc,"env(HOME)/.kde/share/apps/quanta/sqlcreator"))
but this produces a crash
dataLocation.setText(readSetting(dataloc,env(HOME)+"/.kde/share/apps/quanta/sqlcreator"))

So I'm trying this...
dataLocation.setText(readSetting(dataloc,"~/.kde/share/apps/quanta/sqlcreator"))
fdat = dataLocation.text+"/connections"
debug(fdat)
debug(file_read(fdat))
TreeConnections.setText(file_read(fdat))
// adding the following works but the above does not
fdat2 = "/home/eric/.kde/share/apps/quanta/sqlcreator/connections"
debug(file_read(fdat2))
TreeConnections.setText(file_read(fdat2))

Conclusions
1) env() does not seem to be working
2) relative addressing does not seem to work reading files

In general this seems pretty buggy.

BTW were we going to add a calendar widget at some time? Not that I don't 
prefer we fix the bugs first. ;-)
-- 
Eric Laffoon
Project Lead - kdewebdev module



More information about the Kommander-devel mailing list