Monday, November 08, 2010 at 12:00 AM.
scripting2Suite.server.getRssHeaderData
on getRssHeaderData (username, adrheaderdata) {
<<Changes
<<7/10/10; 7:20:57 AM by DW
<<Fill a table with data for a user's RSS file header items.
local (adrdata = scripting2Suite.initUser (username));
adrheaderdata^ = adrdata^.prefs.rssHeader;
if adrheaderdata^.copyrightHolder == "" {
adrheaderdata^.copyrightHolder = adrdata^.prefs.ownerName};
if adrheaderdata^.description == "" {
adrheaderdata^.description = adrdata^.prefs.tagline};
if adrheaderdata^.link == "" {
adrheaderdata^.link = scripting2Suite.server.getBaseUrl (username)};
if adrheaderdata^.managingEditor == "" {
adrheaderdata^.managingEditor = adrdata^.prefs.ownerEmail;
if (adrheaderdata^.managingEditor != "") and (adrdata^.prefs.ownerName != "") {
adrheaderdata^.managingEditor = adrheaderdata^.managingEditor + " (" + adrdata^.prefs.ownerName + ")"}};
if adrheaderdata^.webMaster == "" {
adrheaderdata^.managingEditor = adrheaderdata^.managingEditor};
if adrheaderdata^.title == "" {
adrheaderdata^.title = adrdata^.prefs.weblogName}}
<<bundle //test code
<<getRssHeaderData ("amyloo", @scratchpad.amyheaderdata)
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.