Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.outliner.unsubscribe
on unsubscribe () {
<<Changes
<<3/26/02; 6:11:04 PM by JES
<<Added a confirmation dialog.
<<3/21/02; 8:00:11 AM by DW
<<Created. Assume the bar cursor is on a headline in the buddy list. Unsubscribe from the outline.
local (atts);
op.attributes.getall (@atts);
<<scratchpad.atts = atts; edit (@scratchpad.atts)
local (adrdata = radio.outliner.init ());
local (adrsub = @adrdata^.subscriptions.[atts.url]);
local (author = adrsub^.author);
if dialog.confirm ("Are you sure you want to unsubscribe from " + author + "'s outline?") {
if defined (adrsub^) {
delete (adrsub)};
op.deleteline ()}}
<<bundle //test code
<<unsubscribe ("http://radio.weblogs.com/0100688/gems/interests.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.