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


on newPost (username, title, adratts) {
		<<7/3/10; 8:35:20 AM by DW
	local (adrdata = scripting2suite.inituser (username), now = ());
	local (tokenval = string.hashmd5 (username + title + now));
	new (tabletype, adratts);
	adratts^.newPostToken = tokenval;
	adratts^.versionServer = scripting2Info.version;
	adrdata^.stats.newPostTokens.[tokenval] = now;
	return (true)};
bundle { //test code
	<<string.hashmd5 ("davewiner" + "Oh the buzzing" + ())
	newPost ("davewiner", "Oh the buzzing", @scratchpad.tokenatts);
	edit (@scratchpad.tokenatts)}

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.