Saturday, April 02, 2011 at 9:07 PM.

radio2Suite.findPost

on findPost (adrfeed, id, adradrpost) {
	<<Changes
		<<1/10/11; 5:59:44 PM by DW
			<<Add call to radio2Suite.initPost when the post is found.
		<<12/25/10; 12:43:21 PM by DW
			<<Created. 
	local (num = number (id), adrpost = nil);
	radio2suite.initfeed (adrfeed);
	on visit (adritem) {
		if number (nameof (adritem^)) == num {
			adrpost = adritem;
			radio2Suite.initPost (adrpost);
			return (false)};
		return (true)};
	mainresponder.calendar.visitReverseChronologic (@adrfeed^.calendar, @visit);
	if adrpost == nil {
		return (false)}
	else {
		adradrpost^ = adrpost;
		return (true)}};
bundle { //test code
	local (adrpost);
	findPost ("00012", @adrpost);
	edit (adrpost)}



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.