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

river2Suite.myRss.newTweet

on newTweet (s) {
	<<Changes
		<<12/29/09; 7:09:57 PM by DW
			<<Created. 
	local (adrdata = river2suite.init (), now = clock.now ());
	local (adrday = mainresponder.calendar.getdayaddress (@adrdata^.myRss.calendar, now));
	local (adrtweet = @adrday^.[string.padwithzeros (++adrdata^.myRss.stats.serialnum, 5)]);
	new (tabletype, adrtweet);
	adrtweet^.text = s;
	adrtweet^.when = now;
	adrtweet^.guid = clock.ticks ();
	return (adrtweet)};
bundle { //test code
	s = states.nthstate (random (1, 50));
	edit (newTweet (s))}



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.