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

system.verbs.builtins.odbServer.commandEncode

on commandEncode (name, atts) {
	odbServer.addToLog ("outgoing", name, atts);
	local (commandtext, i, att);
	on add (s) {
		commandtext = commandtext + s};
	
	add (name + "\r");
	for i = 1 to sizeof (atts^) {
		att = @atts^ [i];
		add ("#" + nameOf (att^) + " \"" + base64.encode (string (att^), 0) + "\"\r")};
	
	return (commandtext)}



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.