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

system.verbs.apps.Manila.nodeTypes.addSitePrefsToAtts

on addSitePrefsToAtts (adrinfo, adrAtts) {
	<<Add prefs like rpc server, rpc port, to an atts table. This allows an item to stand alone.
		<<Wed, Aug 23, 2000 at 4:34:00 PM by PBS
	
	if not defined (adrAtts^.siteName) {
		adrAtts^.canonicalSiteName = adrinfo^.siteName};
	if not defined (adrAtts^.displaySiteName) {
		adrAtts^.displaySiteName = adrinfo^.displaySiteName};
	if not defined (adrAtts^.rpcServer) {
		adrAtts^.rpcServer = adrinfo^.host};
	if not defined (adrAtts^.rpcPort) {
		adrAtts^.rpcPort = adrinfo^.port};
	if not defined (adrAtts^.rpcPath) {
		adrAtts^.rpcPath = adrinfo^.rpcPath};
	if not defined (adrAtts^.protocol) {
		adrAtts^.protocol = adrinfo^.protocol};
	if not defined (adrAtts^.siteUrl) {
		adrAtts^.siteUrl = siteUrl};
	
	return (true)}



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.