Monday, November 08, 2010 at 12:04 AM.


netEvents.launch ();
if not defined (user.odbServer) {
	new (tabletype, @user.odbServer)};
if not defined (user.odbServer.log) {
	new (outlinetype, @user.odbServer.log)};
if not defined (user.odbServer.commandFilter) {
	new (scripttype, @user.odbServer.commandFilter);
	odbServer.targetSet (@user.odbServer.commandFilter);
	op.setLineText ("on commandFilter (adrAttributes)");
	op.insert ("Add your own code to filter all incoming messages", right);
	script.makeComment ();
	op.insert ("", down);
	op.insert ("return (true) <<return false to skip processing message", down);
	op.firstSummit ();
	odbServer.targetClear (@user.odbServer.commandFilter)};
bundle { <<set up user.odbServer.prefs
	if not defined (user.odbServer.prefs) {
		new (tabletype, @user.odbServer.prefs)};
	if not defined (user.odbServer.prefs.serverAddress) {
		user.odbServer.prefs.serverAddress = ""};
	if not defined (user.odbServer.prefs.timeoutSecs) {
		user.odbServer.prefs.timeoutSecs = 3}};
bundle { <<set up user.odbServer.commands
	if not defined (user.odbServer.commands) {
		new (tabletype, @user.odbServer.commands)}}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.