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


on openUrl (url) {
	<<7/13/01; 5:08:35 PM by JES
		<<Open a Manila site message URL for editing. The url should be like this:$40.opml
	<<Get the siteUrl and msgNum.
	local (discussUrl = string.popSuffix (url, '/'));
	local (siteUrl = string.popSuffix (discussUrl, '/'));
	siteUrl = siteUrl + "/";
	local (lastField = string.countFields (url, '$'));
	local (msgNum = string.nthField (url, '$', lastField));
	msgNum = string.popSuffix (msgNum);
	<<Open the message.
	local (adrtype = parentOf (this^));
	return (adrtype^.openMessage (siteUrl, msgNum))}; //open message

bundle { //debugging
	openUrl ("$1.opml")}

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.