Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.Manila.homepage.addToHomePage
on addToHomePage (username, password, siteUrl, text) { <<Add text to the top of a home page. This verb is different than the others: instead of the address of a prefs table, it takes the username, password, and URL of the site directly. <<02/19/00; 6:54:14 PM by PBS <<Changes <<06/22/00; 8:08:37 PM by JES <<Fixed error with manilaSiteUrl not being defined. <<9/6/01; 8:03:04 PM by JES <<Changed params from a list to a record of named parameters, for SOAP compatibility. <<If this is a mac, convert text from Mac to Latin text before sending. local (method = "manila.homePage.addToHomePage"); local (server, port = 80); local (urlParts = string.urlSplit (siteUrl)); //11/17/00 JES: siteUrl, not manilaSiteUrl server = urlParts [2]; local (ixPort = string.patternMatch (":", server)); if ixPort > 0 { server = string.mid (urlParts [2], 1, ixPort - 1); port = number (string.mid (urlParts [2], ixPort + 1, infinity))}; if system.environment.isMac { text = latinToMac.macToLatin (text)}; local (params); params = {"username":username, "password":password, "siteUrl":siteUrl, "text":text}; return (manila.callHandler (server, port, method, @params))}
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.