Monday, November 08, 2010 at 12:00 AM.
river2Suite.opmlUpload
on opmlUpload (opmltext) { <<Changes <<9/6/09; 8:01:23 PM by DW <<Upload the user's OPML to a centralized server for mashups. The Twitter username/password identifies the user, but is not stored on server. To enable the feature see the new preference. local (adrdata = river2suite.init (), startticks = clock.ticks ()); local (server = adrdata^.prefs.opmlShareServer); local (username = user.twitter.prefs.username); local (password = string (user.twitter.prefs.password)); if (sizeof (username) > 0) and (sizeof (password) > 0) { try { [server].opmlshare.saveopml (username, password, opmltext); log2.add (river2Info.name, "OPML", "Shared OPML with the community server (" + sizeof (opmltext) + " characters).", startticks)} else { log2.add (river2Info.name, "OPML", "Error sharing OPML with the community server: \"" + tryerror + "\"", startticks)}; return (true)}}; bundle { //test code opmlUpload ("Oh the buzzing")}
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.