Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.mainResponder.news.newsSiteUpdate
on newsSiteUpdate (adrmsg) { <<Changes <<3/17/1999; 4:41:53 PM by DW <<New script. The message has been updated, schedule a static page build if one is required. <<3/16/1999; 9:29:03 AM by DW <<Rewritten , now can handle static pages that are named index, index.html, default, default.html, or foo.xyz.htm. <<Wed, 26 May 1999 18:56:33 GMT by AR <<Bug fix: We now check whether the news site actually has a staticPage table. if defined (adrmsg^.inNewsSite) { local (adrroot = mainResponder.news.openRoot (adrmsg^.inNewsSite)); local (adrstatictable = @adrroot^.staticPage); if defined (adrstatictable^) and (typeOf (adrstatictable^) == tableType) { local ( ct = sizeof (adrstatictable^), i, adritem); for i = 1 to ct { adritem = @adrstatictable^ [i]; if not (nameof (adritem^) beginswith '#') { local (adrtemptable = @system.temp.mainresponder.backgroundPagesToBuild); if not defined (adrtemptable^) { new (tabletype, adrtemptable)}; while defined (adrtemptable^.[clock.ticks ()]) {}; //don't want to overwrite the item if it exists adrtemptable^.[clock.ticks ()] = adritem}}}}}
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.