Wednesday, February 16, 2011 at 12:00 AM.
river2Suite.static.buildOpml
on buildOpml (adruser) {
<<Changes
<<11/9/10; 10:25:44 AM by DW
<<Replace call to file.writewholefile with river2Suite.static.writeFile.
<<5/4/10; 10:16:02 AM by DW
<<If adruser is nil, export the OPML for the main user.
<<4/27/10; 10:16:08 AM by DW
<<Save the static OPML file for the indicated user.
local (adrdata = river2suite.init (), nameuser, title = "Subscription list", path);
if adruser != nil {
nameuser = nameof (adruser^);
title = title + " for user \"" + nameuser + "\"";
path = nameuser + ".opml"}
else {
path = "index.opml"};
local (opmltext = river2Suite.opmlBuild (title, adruser));
river2Suite.static.writeFile (path, opmltext, adruser)};
bundle { //test code
buildOpml (nil)}
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.