Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.outliner.read
on read (url, adroutline) {
<<Changes:
<<3/27/02; 2:10:46 AM by JES
<<Add the cloudInfo to the subscription table, if the cache has a cloud table.
<<3/24/02; 12:35:06 AM by JES
<<Call through Frontier.tools.windowTypes.commands.openUrl to get the outline, instead of converting the outline using op.xmlToOutline here.
<<Old code:
<<local (xmltext = tcp.httpreadurl (url))
<<op.xmltooutline (xmltext, adroutline)
local (oldtarget = target.set (adroutline));
Frontier.tools.windowTypes.commands.openUrl (url, adroutline:adroutline);
local (adrdata = radio.outliner.init ());
local (adrsub = @adrdata^.subscriptions.[url]);
radio.outliner.initSubscription (adrsub);
bundle { //get cloud info
local (adrcloud);
if radio.outliner.getCloudInfoFromCache (url, @adrcloud) {
adrdata^.subscriptions.[url].cloudInfo = adrcloud^}};
try {target.set (oldtarget)};
return (true)};
bundle { //test code
read ("http://radio.weblogs.com/0001000/instantOutliner/jakeSavin.opml", @workspace.o)}
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.